summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/libtirpc/libtirpc/ipv6.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/libtirpc/libtirpc/ipv6.patch')
-rw-r--r--meta/recipes-extended/libtirpc/libtirpc/ipv6.patch52
1 files changed, 52 insertions, 0 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