summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-05-19 17:16:28 -0700
committerKhem Raj <raj.khem@gmail.com>2024-05-23 08:44:41 -0700
commit5762e4fd5590f73d19dee0d4abd46fe39d5b123b (patch)
tree0c0072cb7b821621c9c9f2132454cc37045b8d60 /meta-networking
parent8866910fddb510a9bc035e544c6ad5e371aa8026 (diff)
downloadmeta-openembedded-5762e4fd5590f73d19dee0d4abd46fe39d5b123b.tar.gz
nbd: Upgrade to 3.26.1
Backport a build fix when using --disable-manpages Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-support/nbd/nbd/f0418b0d8b54c21a1e5b0c6dce3277e938d07e7c.patch50
-rw-r--r--meta-networking/recipes-support/nbd/nbd_3.24.bb20
-rw-r--r--meta-networking/recipes-support/nbd/nbd_3.26.1.bb22
3 files changed, 72 insertions, 20 deletions
diff --git a/meta-networking/recipes-support/nbd/nbd/f0418b0d8b54c21a1e5b0c6dce3277e938d07e7c.patch b/meta-networking/recipes-support/nbd/nbd/f0418b0d8b54c21a1e5b0c6dce3277e938d07e7c.patch
new file mode 100644
index 0000000000..716ded55be
--- /dev/null
+++ b/meta-networking/recipes-support/nbd/nbd/f0418b0d8b54c21a1e5b0c6dce3277e938d07e7c.patch
@@ -0,0 +1,50 @@
1From f0418b0d8b54c21a1e5b0c6dce3277e938d07e7c Mon Sep 17 00:00:00 2001
2From: Dave Jones <dave.jones@canonical.com>
3Date: Thu, 14 Mar 2024 11:13:05 +0000
4Subject: [PATCH] Fix the check & no cases of enable_manpages
5
6Currently, running "configure --disable-manpages" while docbook2man *is*
7installed results in the error "don't know what to do here" when it
8should disable manpages.
9
10There also appears to be a missing conditional at the start of the line;
11there's closing un-matched ]) at the end of the line. Still, at this
12point the check can be done in pure shell; no need for AC macros. I've
13also removed the confusing m4_divert_text call on the check case. Not
14sure why that was there, but it appears unnecessary.
15
16Upstream-Status: Backport [https://github.com/NetworkBlockDevice/nbd/commit/f0418b0d8b54c21a1e5b0c6dce3277e938d07e7c]
17Signed-off-by: Khem Raj <raj.khem@gmail.com>
18---
19 configure.ac | 13 +++++++++----
20 1 file changed, 9 insertions(+), 4 deletions(-)
21
22--- a/configure.ac
23+++ b/configure.ac
24@@ -328,7 +328,7 @@ AC_MSG_CHECKING([whether man pages are r
25 AC_ARG_ENABLE([manpages],
26 AS_HELP_STRING([--disable-manpages], [Do not install man pages]),
27 [],
28- [: m4_divert_text([DEFAULTS], [enable_manpages=check])]
29+ [enable_manpages=check]
30 )
31 AC_MSG_RESULT([$enable_manpages])
32
33@@ -337,9 +337,14 @@ AS_IF([test "x$enable_manpages" != "xno"
34 ])
35 AS_IF([test "x$enable_manpages" = "xyes" -a "x$DB2M" = "x"], [
36 AC_MSG_ERROR([docbook2man not found, but is required to build manpages])
37- ],
38- [test "x$DB2M" != "x"], [enable_manpages=yes],
39- [AC_MSG_ERROR([don't know what to do here])])
40+ ])
41+if test "x$enable_manpages" = "xcheck"; then
42+ if test "x$DB2M" = "x"; then
43+ enable_manpages=no
44+ else
45+ enable_manpages=yes
46+ fi
47+fi
48 AC_MSG_CHECKING([whether to build manpages])
49 AC_MSG_RESULT([$enable_manpages])
50
diff --git a/meta-networking/recipes-support/nbd/nbd_3.24.bb b/meta-networking/recipes-support/nbd/nbd_3.24.bb
deleted file mode 100644
index da9f829523..0000000000
--- a/meta-networking/recipes-support/nbd/nbd_3.24.bb
+++ /dev/null
@@ -1,20 +0,0 @@
1DESCRIPTION = "Network Block Device"
2HOMEPAGE = "http://nbd.sourceforge.net"
3SECTION = "net"
4LICENSE = "GPL-2.0-only"
5LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
6
7DEPENDS = "autoconf-archive bison-native glib-2.0 libnl"
8
9SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.xz"
10SRC_URI[md5sum] = "a6d9e7bbc311a2ed07ef84a58b82b5dd"
11SRC_URI[sha256sum] = "6877156d23a7b33f75eee89d2f5c2c91c542afc3cdcb636dea5a88539a58d10c"
12
13inherit autotools pkgconfig
14
15PACKAGES = "${PN}-client ${PN}-dbg ${PN}-doc ${PN}-server ${PN}-trdump ${PN}-trplay"
16
17FILES:${PN}-client = "${sbindir}/${BPN}-client"
18FILES:${PN}-server = "${bindir}/${BPN}-server"
19FILES:${PN}-trdump = "${bindir}/${BPN}-trdump"
20FILES:${PN}-trplay = "${bindir}/${BPN}-trplay"
diff --git a/meta-networking/recipes-support/nbd/nbd_3.26.1.bb b/meta-networking/recipes-support/nbd/nbd_3.26.1.bb
new file mode 100644
index 0000000000..15d5f8b36b
--- /dev/null
+++ b/meta-networking/recipes-support/nbd/nbd_3.26.1.bb
@@ -0,0 +1,22 @@
1DESCRIPTION = "Network Block Device user-space tools (TCP version)"
2HOMEPAGE = "https://github.com/NetworkBlockDevice/nbd"
3SECTION = "net"
4LICENSE = "GPL-2.0-only"
5LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
6
7DEPENDS = "autoconf-archive bison-native glib-2.0 libnl zlib bison-native"
8
9SRC_URI = "https://github.com/NetworkBlockDevice/${BPN}/releases/download/${BP}/${BP}.tar.xz \
10 file://f0418b0d8b54c21a1e5b0c6dce3277e938d07e7c.patch"
11SRC_URI[sha256sum] = "f0cf509fa5b20b1a07f7904eb637e9b47d3e30b6ed6f00075af5d8b701c78fef"
12
13inherit autotools pkgconfig systemd
14
15EXTRA_OECONF += "--enable-syslog --enable-lfs --disable-manpages"
16
17PACKAGES = "${PN}-client ${PN}-dbg ${PN}-doc ${PN}-server ${PN}-trdump ${PN}-trplay"
18
19FILES:${PN}-client = "${sbindir}/${BPN}-client"
20FILES:${PN}-server = "${bindir}/${BPN}-server"
21FILES:${PN}-trdump = "${bindir}/${BPN}-trdump"
22FILES:${PN}-trplay = "${bindir}/${BPN}-trplay"