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

From: alpine-mips-patches <[email-masked]>
Date: Tue, 4 Dec 2018 17:42:25 +0000

./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 <[email-masked]>
 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:  [email-masked]
Help:         [email-masked]
---