nbd: Update to 3.19 and remove unneed patches
authorDaniel F. Dickinson <redacted>
Sat, 18 May 2019 06:52:13 +0000 (06:52 +0000)
committerDaniel F. Dickinson <redacted>
Fri, 31 May 2019 07:08:06 +0000 (07:08 +0000)
Current version in OpenWrt (3.16.2) fails against the Arch Linux
in System Rescue CD's NBD as rootfs (to allow sharing ISO across
network).  Based on resolved issues and web searching it seems
nbd had endianness issues (which affected my ath79 device).

This updates to 3.19 which allows System Rescue CD PXE boot with
NBD rootfs to work.

Removed patches no longer required due to upstream changes, and
added new configure option (--without-libnl) required to avoid
linking against full libnl and libnl-genl (if present in build).

Signed-off-by: Daniel F. Dickinson <redacted>
net/nbd/Makefile
net/nbd/patches/100-make-gnutls-test-optional.patch [deleted file]
net/nbd/patches/101-fix-build-without-gnutls.patch [deleted file]

index 4f726e2147cf25b34e73740a46c8a47a74b874d8..2523be473d5a12df0334b0a22293e2eaeb0985d5 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nbd
-PKG_VERSION:=3.16.2
+PKG_VERSION:=3.19
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@SF/nbd
-PKG_HASH:=422f62bdf6e6b973bd82083dc52b6577396fe00aa6607837ac464e476124155b
+PKG_HASH:=b4466412f13e057659f25d35e1e8e181afd62c7179bff22a6add81445ecb8690
 PKG_LICENSE:=GPL-2.0+
 PKG_MAINTAINER:=Marcin Jurkowski <marcin1j@gmail.com>
 
@@ -52,7 +52,9 @@ endef
 
 CONFIGURE_ARGS += \
        --disable-glibtest \
-       --without-gnutls
+       --without-gnutls \
+       --without-libnl \
+       --with-syslog
 
 TARGET_CFLAGS += --std=gnu99 -DNODAEMON
 
diff --git a/net/nbd/patches/100-make-gnutls-test-optional.patch b/net/nbd/patches/100-make-gnutls-test-optional.patch
deleted file mode 100644 (file)
index 29586ea..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
---- a/configure.ac
-+++ b/configure.ac
-@@ -210,7 +210,11 @@ dnl               ;;
- dnl   esac
- dnl fi
--PKG_CHECK_MODULES(GnuTLS, [gnutls >= 2.12.0],[HAVE_GNUTLS=1],[HAVE_GNUTLS=0])
-+AC_ARG_WITH([gnutls], AS_HELP_STRING([--with-gnutls], [Build with GnuTLS]))
-+AS_IF([test "x$with_gnutls" = "xyes"], [
-+      PKG_CHECK_MODULES(GnuTLS, [gnutls >= 2.12.0],[HAVE_GNUTLS=1],[HAVE_GNUTLS=0])
-+])
-+
- if test x$HAVE_GNUTLS = x1; then
-       AC_DEFINE(HAVE_GNUTLS, 1, [Define to 1 if you have a GnuTLS version of 2.12 or above])
- else
diff --git a/net/nbd/patches/101-fix-build-without-gnutls.patch b/net/nbd/patches/101-fix-build-without-gnutls.patch
deleted file mode 100644 (file)
index 44cbf4e..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -35,7 +35,7 @@ nbd_client_CFLAGS = $(client_flags) @Gnu
- nbd_client_LDADD = $(client_libs) @GnuTLS_LIBS@
- else
- nbd_client_SOURCES = $(client_srcs)
--nbd_client_CFLAGS = $(client_flags)
-+nbd_client_CFLAGS = $(client_flags) -DNOTLS -DPROG_NAME='"nbd-client"'
- nbd_client_LDADD = $(client_libs)
- endif
- endif
git clone https://git.99rst.org/PROJECT