diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-05 00:32:20 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-05 00:32:20 +0100 |
commit | ecbd872ce9afc47fab6a2ac5f01ded47cf1dc2be (patch) | |
tree | cc5466d4738e855948e8d013b212f417b26e5007 /main | |
parent | 2c21a920908a95341ae3b174f537d2f2076dcc70 (diff) | |
download | aports-ecbd872ce9afc47fab6a2ac5f01ded47cf1dc2be.tar.bz2 aports-ecbd872ce9afc47fab6a2ac5f01ded47cf1dc2be.tar.xz |
main/nfs-utils: fix build on eglibc
Diffstat (limited to 'main')
-rw-r--r-- | main/nfs-utils/APKBUILD | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/main/nfs-utils/APKBUILD b/main/nfs-utils/APKBUILD index fa0b9b49f9..62add782da 100644 --- a/main/nfs-utils/APKBUILD +++ b/main/nfs-utils/APKBUILD @@ -10,7 +10,9 @@ license="GPL" depends="rpcbind" makedepends="util-linux-dev libtirpc-dev libcap-dev libevent-dev libnfsidmap-dev keyutils-dev lvm2-dev" -subpackages="$pkgname-doc rpcgen" +subpackages="$pkgname-doc" +[ "$ALPINE_LIBC" != "eglibc" ] && subpackages="$subpackages rpcgen" + source="http://downloads.sourceforge.net/nfs/$pkgname-$pkgver.tar.bz2 nfs.initd nfsmount.initd @@ -32,13 +34,15 @@ prepare() { msg "Applying $i" patch -p0 -i "${i}" || return 1 done - sed -i -e '/^#include <libio.h>/d' support/include/sockaddr.h + # fix build on eglibc + sed -i -e '/^#include <libio.h>/d' \ + support/include/sockaddr.h || return 1 # busybox install fix sed -i 's/--mode 755/-m755/g' \ tools/nfs-iostat/Makefile.am \ tools/nfs-iostat/Makefile.in \ tools/mountstats/Makefile.am \ - tools/mountstats/Makefile.in + tools/mountstats/Makefile.in || return 1 } build() { |