diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-04 22:22:16 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-04 22:22:16 +0100 |
commit | 0ad11c34de82ee68825d6fa97cf5081e5cd59d34 (patch) | |
tree | 7b3b3d1c99580113ca29a18997a04e515921d933 /main/diffutils | |
parent | 7ff6220d016ae83f7c388c9f474b6d7f86c3fa69 (diff) | |
download | aports-0ad11c34de82ee68825d6fa97cf5081e5cd59d34.tar.bz2 aports-0ad11c34de82ee68825d6fa97cf5081e5cd59d34.tar.xz |
main/diffutils: fix build on eglibc
Diffstat (limited to 'main/diffutils')
-rw-r--r-- | main/diffutils/APKBUILD | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/main/diffutils/APKBUILD b/main/diffutils/APKBUILD index 7e9e5eb32..d0b8bea69 100644 --- a/main/diffutils/APKBUILD +++ b/main/diffutils/APKBUILD @@ -14,6 +14,19 @@ source="http://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz" _builddir=$srcdir/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + # fix eglibc-2.16 build issue + sed -i -e '/gets is a/d' \ + lib/stdio.in.h || return 1 +} + build() { cd "$_builddir" |