diff options
author | Tuan Hoang <tmhoang@linux.ibm.com> | 2019-05-13 10:49:17 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-05-13 15:21:42 +0000 |
commit | f44c3abcf2e9fe9ac344fed19f3c6e4ebae79783 (patch) | |
tree | c5aacb3ec657ec8e4382ff9e96df38917a924328 | |
parent | 6c64dbd4d817bb1ec42e8d3577ed0bdf44aa1007 (diff) | |
download | aports-f44c3abcf2e9fe9ac344fed19f3c6e4ebae79783.tar.bz2 aports-f44c3abcf2e9fe9ac344fed19f3c6e4ebae79783.tar.xz |
community/libdwarf: dont build dwarfgen on s390x
There is no upstream support of dwarfgen on s390x yet.
Explicitly include zlib-dev for build time dependencies.
https://sourceforge.net/p/libdwarf/bugs/7/
-rw-r--r-- | community/libdwarf/APKBUILD | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/community/libdwarf/APKBUILD b/community/libdwarf/APKBUILD index 22b480175b..a99c6b018c 100644 --- a/community/libdwarf/APKBUILD +++ b/community/libdwarf/APKBUILD @@ -2,19 +2,20 @@ # Maintainer: Leo <thinkabit.ukim@gmail.com> pkgname=libdwarf pkgver=20190505 -pkgrel=0 +pkgrel=1 pkgdesc="Parsing library for DWARF2 and later debugging file format" url="http://www.prevanders.net/dwarf.html" arch="all" license="LGPL-2.1-or-later" -makedepends="elfutils-dev" +makedepends="elfutils-dev zlib-dev" subpackages="$pkgname-static $pkgname-dev dwarf-tools::noarch dwarf-tools-doc" source="http://www.prevanders.net/$pkgname-$pkgver.tar.gz" options="!check" build() { - ./configure --prefix=/usr --enable-shared - make && make -C dwarfgen + [ "$CARCH" != "s390x" ] && _enable_dwarfgen="--enable-dwarfgen" + ./configure --prefix=/usr --enable-shared $_enable_dwarfgen + make } package() { @@ -37,10 +38,15 @@ package() { cp dwarfdump.conf "$libdir" cp dwarfdump.1 "$man1dir" - cd "$builddir/dwarfgen" - cp dwarfgen "$bindir" - cp COPYING "$docdir/dwarfgen.COPYING" - cp dwarfgen.1 "$man1dir" + case "$CARCH" in + s390x) ;; + *) + cd "$builddir/dwarfgen" + cp dwarfgen "$bindir" + cp COPYING "$docdir/dwarfgen.COPYING" + cp dwarfgen.1 "$man1dir" + ;; + esac } tools() { |