[arch-commits] Commit in elfutils/repos (4 files)

Laurent Carlier lcarlier at archlinux.org
Tue Sep 19 06:31:00 UTC 2017


    Date: Tuesday, September 19, 2017 @ 06:30:59
  Author: lcarlier
Revision: 305825

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  elfutils/repos/testing-i686/
  elfutils/repos/testing-i686/PKGBUILD
    (from rev 305824, elfutils/trunk/PKGBUILD)
  elfutils/repos/testing-x86_64/
  elfutils/repos/testing-x86_64/PKGBUILD
    (from rev 305824, elfutils/trunk/PKGBUILD)

-------------------------+
 testing-i686/PKGBUILD   |   54 ++++++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD |   54 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 108 insertions(+)

Copied: elfutils/repos/testing-i686/PKGBUILD (from rev 305824, elfutils/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2017-09-19 06:30:59 UTC (rev 305825)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Andrej Gelenberg <andrej.gelenberg at udo.edu>
+
+pkgbase=elfutils
+pkgname=(elfutils libelf)
+pkgver=0.170
+pkgrel=1
+pkgdesc="Utilities to handle ELF object files and DWARF debugging information"
+arch=('i686' 'x86_64')
+url="https://sourceware.org/elfutils/"
+license=('LGPL3' 'GPL' 'GPL3')
+depends=('gcc-libs' 'zlib' 'bzip2' 'xz')
+options=('staticlibs')
+source=(https://sourceware.org/elfutils/ftp/${pkgver}/elfutils-${pkgver}.tar.bz2{,.sig})
+sha1sums=('aff6feac0ff69eb7b240babdf2918f640eadb032'
+          'SKIP')
+validpgpkeys=('47CC0331081B8BC6D0FD4DA08370665B57816A6A')  # Mark J. Wielaard <mark at klomp.org>
+
+build() {
+  cd ${pkgbase}-${pkgver}
+
+  # fix make check with i686 
+  # https://sourceware.org/bugzilla/show_bug.cgi?id=22083
+  export CFLAGS=${CFLAGS/-fno-plt} # fix make check with i686 
+
+  CFLAGS+=" -g"  # required for test-suite success
+  ./configure --prefix=/usr --program-prefix="eu-" --enable-deterministic-archives
+
+  make
+}
+
+check() {
+  cd ${pkgbase}-${pkgver}
+
+  make check
+}
+
+package_elfutils() {
+  depends=("libelf=$pkgver-$pkgrel")
+
+  cd ${pkgbase}-${pkgver}
+
+  make DESTDIR="${pkgdir}" install
+
+  mkdir "${srcdir}"/libelf
+  mv "${pkgdir}"/usr/{lib,include} "${srcdir}/libelf"
+}
+
+package_libelf() {
+  pkgdesc="Libraries to handle ELF object files and DWARF debugging information"
+  mv libelf "${pkgdir}/usr"
+}

Copied: elfutils/repos/testing-x86_64/PKGBUILD (from rev 305824, elfutils/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2017-09-19 06:30:59 UTC (rev 305825)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Andrej Gelenberg <andrej.gelenberg at udo.edu>
+
+pkgbase=elfutils
+pkgname=(elfutils libelf)
+pkgver=0.170
+pkgrel=1
+pkgdesc="Utilities to handle ELF object files and DWARF debugging information"
+arch=('i686' 'x86_64')
+url="https://sourceware.org/elfutils/"
+license=('LGPL3' 'GPL' 'GPL3')
+depends=('gcc-libs' 'zlib' 'bzip2' 'xz')
+options=('staticlibs')
+source=(https://sourceware.org/elfutils/ftp/${pkgver}/elfutils-${pkgver}.tar.bz2{,.sig})
+sha1sums=('aff6feac0ff69eb7b240babdf2918f640eadb032'
+          'SKIP')
+validpgpkeys=('47CC0331081B8BC6D0FD4DA08370665B57816A6A')  # Mark J. Wielaard <mark at klomp.org>
+
+build() {
+  cd ${pkgbase}-${pkgver}
+
+  # fix make check with i686 
+  # https://sourceware.org/bugzilla/show_bug.cgi?id=22083
+  export CFLAGS=${CFLAGS/-fno-plt} # fix make check with i686 
+
+  CFLAGS+=" -g"  # required for test-suite success
+  ./configure --prefix=/usr --program-prefix="eu-" --enable-deterministic-archives
+
+  make
+}
+
+check() {
+  cd ${pkgbase}-${pkgver}
+
+  make check
+}
+
+package_elfutils() {
+  depends=("libelf=$pkgver-$pkgrel")
+
+  cd ${pkgbase}-${pkgver}
+
+  make DESTDIR="${pkgdir}" install
+
+  mkdir "${srcdir}"/libelf
+  mv "${pkgdir}"/usr/{lib,include} "${srcdir}/libelf"
+}
+
+package_libelf() {
+  pkgdesc="Libraries to handle ELF object files and DWARF debugging information"
+  mv libelf "${pkgdir}/usr"
+}



More information about the arch-commits mailing list