diff options
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 @@ | |||
| 1 | From f0418b0d8b54c21a1e5b0c6dce3277e938d07e7c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Dave Jones <dave.jones@canonical.com> | ||
| 3 | Date: Thu, 14 Mar 2024 11:13:05 +0000 | ||
| 4 | Subject: [PATCH] Fix the check & no cases of enable_manpages | ||
| 5 | |||
| 6 | Currently, running "configure --disable-manpages" while docbook2man *is* | ||
| 7 | installed results in the error "don't know what to do here" when it | ||
| 8 | should disable manpages. | ||
| 9 | |||
| 10 | There also appears to be a missing conditional at the start of the line; | ||
| 11 | there's closing un-matched ]) at the end of the line. Still, at this | ||
| 12 | point the check can be done in pure shell; no need for AC macros. I've | ||
| 13 | also removed the confusing m4_divert_text call on the check case. Not | ||
| 14 | sure why that was there, but it appears unnecessary. | ||
| 15 | |||
| 16 | Upstream-Status: Backport [https://github.com/NetworkBlockDevice/nbd/commit/f0418b0d8b54c21a1e5b0c6dce3277e938d07e7c] | ||
| 17 | Signed-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 @@ | |||
| 1 | DESCRIPTION = "Network Block Device" | ||
| 2 | HOMEPAGE = "http://nbd.sourceforge.net" | ||
| 3 | SECTION = "net" | ||
| 4 | LICENSE = "GPL-2.0-only" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
| 6 | |||
| 7 | DEPENDS = "autoconf-archive bison-native glib-2.0 libnl" | ||
| 8 | |||
| 9 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.xz" | ||
| 10 | SRC_URI[md5sum] = "a6d9e7bbc311a2ed07ef84a58b82b5dd" | ||
| 11 | SRC_URI[sha256sum] = "6877156d23a7b33f75eee89d2f5c2c91c542afc3cdcb636dea5a88539a58d10c" | ||
| 12 | |||
| 13 | inherit autotools pkgconfig | ||
| 14 | |||
| 15 | PACKAGES = "${PN}-client ${PN}-dbg ${PN}-doc ${PN}-server ${PN}-trdump ${PN}-trplay" | ||
| 16 | |||
| 17 | FILES:${PN}-client = "${sbindir}/${BPN}-client" | ||
| 18 | FILES:${PN}-server = "${bindir}/${BPN}-server" | ||
| 19 | FILES:${PN}-trdump = "${bindir}/${BPN}-trdump" | ||
| 20 | FILES:${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 @@ | |||
| 1 | DESCRIPTION = "Network Block Device user-space tools (TCP version)" | ||
| 2 | HOMEPAGE = "https://github.com/NetworkBlockDevice/nbd" | ||
| 3 | SECTION = "net" | ||
| 4 | LICENSE = "GPL-2.0-only" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
| 6 | |||
| 7 | DEPENDS = "autoconf-archive bison-native glib-2.0 libnl zlib bison-native" | ||
| 8 | |||
| 9 | SRC_URI = "https://github.com/NetworkBlockDevice/${BPN}/releases/download/${BP}/${BP}.tar.xz \ | ||
| 10 | file://f0418b0d8b54c21a1e5b0c6dce3277e938d07e7c.patch" | ||
| 11 | SRC_URI[sha256sum] = "f0cf509fa5b20b1a07f7904eb637e9b47d3e30b6ed6f00075af5d8b701c78fef" | ||
| 12 | |||
| 13 | inherit autotools pkgconfig systemd | ||
| 14 | |||
| 15 | EXTRA_OECONF += "--enable-syslog --enable-lfs --disable-manpages" | ||
| 16 | |||
| 17 | PACKAGES = "${PN}-client ${PN}-dbg ${PN}-doc ${PN}-server ${PN}-trdump ${PN}-trplay" | ||
| 18 | |||
| 19 | FILES:${PN}-client = "${sbindir}/${BPN}-client" | ||
| 20 | FILES:${PN}-server = "${bindir}/${BPN}-server" | ||
| 21 | FILES:${PN}-trdump = "${bindir}/${BPN}-trdump" | ||
| 22 | FILES:${PN}-trplay = "${bindir}/${BPN}-trplay" | ||
