Patches for aports can be sent to this list

[alpine-aports] [PATCH] community/nbd: fix build (bashisms)

alpine-mips-patches
Details
Message ID
<20181204175754.C024A54213@mx12.valuehost.ru>
Sender timestamp
1543945345
DKIM signature
missing
Download raw message
Patch: +2 -1
./configure tries to update CFLAGS/LIBS with LIBNL3_CFLAGS/LIBS using '+=':

checking for LIBNL3... yes
./configure: line 14545: CFLAGS+= -I/usr/include/libnl3 : not found
./configure: line 14546: LIBS+= -lnl-genl-3 -lnl-3 : not found

so later build fails without proper libnl3 flags:

nbd-client.c:51:10: fatal error: netlink/netlink.h: No such file or directory
 #include <netlink/netlink.h>

nbd-3.18 suffers from the same problem.
---
 community/nbd/APKBUILD | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/community/nbd/APKBUILD b/community/nbd/APKBUILD
index 71a32dd176..106db87e3f 100644
--- a/community/nbd/APKBUILD
+++ b/community/nbd/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Carlo Landmeter <clandmeter@gmail.com>
 pkgname=nbd
 pkgver=3.17
-pkgrel=2
+pkgrel=3
 pkgdesc="Tools for network block devices"
 url="http://nbd.sourceforge.net"
 arch="all"
@@ -17,6 +17,7 @@ builddir="$srcdir"/$pkgname-$pkgver
 
 build() {
 	cd "$builddir"
+	CONFIG_SHELL=/bin/bash \
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \
-- 
2.19.2




---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---