summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/libtirpc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/libtirpc')
-rw-r--r--meta/recipes-extended/libtirpc/libtirpc/ipv6.patch52
-rw-r--r--meta/recipes-extended/libtirpc/libtirpc_1.3.4.bb (renamed from meta/recipes-extended/libtirpc/libtirpc_1.3.1.bb)18
2 files changed, 65 insertions, 5 deletions
diff --git a/meta/recipes-extended/libtirpc/libtirpc/ipv6.patch b/meta/recipes-extended/libtirpc/libtirpc/ipv6.patch
new file mode 100644
index 0000000000..f746f986f4
--- /dev/null
+++ b/meta/recipes-extended/libtirpc/libtirpc/ipv6.patch
@@ -0,0 +1,52 @@
1From 077bbd32e8b7474dc5f153997732e1e6aec7fad6 Mon Sep 17 00:00:00 2001
2Message-Id: <077bbd32e8b7474dc5f153997732e1e6aec7fad6.1697120796.git.joerg.sommer@navimatix.de>
3From: =?UTF-8?q?J=C3=B6rg=20Sommer?= <joerg.sommer@navimatix.de>
4Date: Thu, 12 Oct 2023 16:22:59 +0200
5Subject: [PATCH] netconfig: remove tcp6, udp6 on --disable-ipv6
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10If the configuration for IPv6 is disabled, the netconfig should not contain
11settings for tcp6 and udp6.
12
13The test for the configure option didn't work, because it check the wrong
14variable.
15
16Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
17Upstream-Status: Submitted [libtirpc-devel@lists.sourceforge.net]
18Upstream-Status: Submitted [linux-nfs@vger.kernel.org]
19---
20 configure.ac | 2 +-
21 doc/Makefile.am | 5 +++++
22 2 files changed, 6 insertions(+), 1 deletion(-)
23
24diff --git a/configure.ac b/configure.ac
25index fe6c517..b687f8d 100644
26--- a/configure.ac
27+++ b/configure.ac
28@@ -64,7 +64,7 @@ fi
29 AC_ARG_ENABLE(ipv6,
30 [AC_HELP_STRING([--disable-ipv6], [Disable IPv6 support @<:@default=no@:>@])],
31 [],[enable_ipv6=yes])
32-AM_CONDITIONAL(INET6, test "x$disable_ipv6" != xno)
33+AM_CONDITIONAL(INET6, test "x$enable_ipv6" != xno)
34 if test "x$enable_ipv6" != xno; then
35 AC_DEFINE(INET6, 1, [Define to 1 if IPv6 is available])
36 fi
37diff --git a/doc/Makefile.am b/doc/Makefile.am
38index d42ab90..b9678f6 100644
39--- a/doc/Makefile.am
40+++ b/doc/Makefile.am
41@@ -2,3 +2,8 @@ dist_sysconf_DATA = netconfig bindresvport.blacklist
42
43 CLEANFILES = cscope.* *~
44 DISTCLEANFILES = Makefile.in
45+
46+if ! INET6
47+install-exec-hook:
48+ $(SED) -i '/^tcp6\|^udp6/d' "$(DESTDIR)$(sysconfdir)"/netconfig
49+endif
50--
512.34.1
52
diff --git a/meta/recipes-extended/libtirpc/libtirpc_1.3.1.bb b/meta/recipes-extended/libtirpc/libtirpc_1.3.4.bb
index 5792264250..aa526e9e1c 100644
--- a/meta/recipes-extended/libtirpc/libtirpc_1.3.1.bb
+++ b/meta/recipes-extended/libtirpc/libtirpc_1.3.4.bb
@@ -9,17 +9,25 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f835cce8852481e4b2bbbdd23b5e47f3 \
9 9
10PROVIDES = "virtual/librpc" 10PROVIDES = "virtual/librpc"
11 11
12SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2" 12SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2 \
13 file://ipv6.patch \
14"
13UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/libtirpc/files/libtirpc/" 15UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/libtirpc/files/libtirpc/"
14UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/" 16UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/"
15SRC_URI[sha256sum] = "245895caf066bec5e3d4375942c8cb4366adad184c29c618d97f724ea309ee17" 17SRC_URI[sha256sum] = "1e0b0c7231c5fa122e06c0609a76723664d068b0dba3b8219b63e6340b347860"
18
19CVE_STATUS[CVE-2021-46828] = "fixed-version: fixed in 1.3.3rc1 so not present in 1.3.3"
16 20
17inherit autotools pkgconfig 21inherit autotools pkgconfig
18 22
19EXTRA_OECONF = "--disable-gssapi" 23PACKAGECONFIG ??= "\
24 ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
25"
26PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6"
27PACKAGECONFIG[gssapi] = "--enable-gssapi,--disable-gssapi,krb5"
20 28
21do_install_append() { 29do_install:append() {
22 chown root:root ${D}${sysconfdir}/netconfig 30 test -e ${D}${sysconfdir}/netconfig && chown root:root ${D}${sysconfdir}/netconfig
23} 31}
24 32
25BBCLASSEXTEND = "native nativesdk" 33BBCLASSEXTEND = "native nativesdk"