diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-09-20 14:15:43 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-09-20 14:15:43 +0000 |
commit | 0ab3384b14dcf0a80b48c88b48d3037b05a70f9d (patch) | |
tree | 6e3bba4f73f0fb82696c2e5e079ee42a827099f9 /main/strace/APKBUILD | |
parent | d2304eb98c8947460d9838720ad3ed8a6d48fb86 (diff) | |
download | aports-0ab3384b14dcf0a80b48c88b48d3037b05a70f9d.tar.bz2 aports-0ab3384b14dcf0a80b48c88b48d3037b05a70f9d.tar.xz |
main/strace: fix build against musl
Diffstat (limited to 'main/strace/APKBUILD')
-rw-r--r-- | main/strace/APKBUILD | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/main/strace/APKBUILD b/main/strace/APKBUILD index fab598ff39..786581f75c 100644 --- a/main/strace/APKBUILD +++ b/main/strace/APKBUILD @@ -1,22 +1,35 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=strace pkgver=4.8 -pkgrel=0 +pkgrel=1 pkgdesc="A useful diagnositic, instructional, and debugging tool" url="http://sourceforge.net/projects/strace/" arch="all" license="BSD" depends= makedepends= -source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.xz" subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.xz + strace-musl.patch + " -build () -{ - cd "$srcdir/$pkgname-$pkgver" - #changes in kernel headers in 2.6.32 +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg "$i"; patch -p1 -i "$srcdir"/$i || return 1 + esac + done sed -i -e 's/include <linux\/socket.h>/include <sys\/socket.h>/g' \ configure +} + +build() { + cd "$_builddir" + case "$CLIBC" in + musl) export CFLAGS="$CFLAGS -Dsigcontext_struct=sigcontext" ;; + esac ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -29,6 +42,9 @@ package() { cd "$srcdir/$pkgname-$pkgver" make -j1 DESTDIR="$pkgdir" install } -md5sums="c575ef43829586801f514fd91bfe7575 strace-4.8.tar.xz" -sha256sums="f492291f07a7c805c07a8395cce1ea054a6401ad414f4cc12185672215e1d7f8 strace-4.8.tar.xz" -sha512sums="c3316382f60cd4d02eec1eef46a0ef2d000afbccf2c176a6fec652e1b3391685f0e33f184497cb3ccf54d72d460471a4945d3a864fb5bce1f45f32fdf132cfe3 strace-4.8.tar.xz" +md5sums="c575ef43829586801f514fd91bfe7575 strace-4.8.tar.xz +7a27c8df5e5706da84cc245016d903a8 strace-musl.patch" +sha256sums="f492291f07a7c805c07a8395cce1ea054a6401ad414f4cc12185672215e1d7f8 strace-4.8.tar.xz +3bc11f19513abea2c21c71e89f715179e663d8ded7aaf84e0b926ac57478809d strace-musl.patch" +sha512sums="c3316382f60cd4d02eec1eef46a0ef2d000afbccf2c176a6fec652e1b3391685f0e33f184497cb3ccf54d72d460471a4945d3a864fb5bce1f45f32fdf132cfe3 strace-4.8.tar.xz +7cdb95e409bf7f2a16d5abc1a551dafed9d46dbed1b6bfaa4f6b6331eda98d119cc0c6b93072af1c97d4618737383a4da116111264ab4298ce47f13f575d5193 strace-musl.patch" |