From a85a04da165be2f3c5863d14c0e6184618ddd1c4 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:55:52 +0100 Subject: [PATCH] patched to move /var/run/rpcbind.sock to /run/rpcbind.sock [release 0.2.5-3mamba;Wed Oct 01 2014] --- libtirpc-0.2.5-netconfig-disable-ipv6.patch | 14 ++++++++++++ libtirpc-0.2.5-var-run.patch | 24 +++++++++++++++++++++ libtirpc.spec | 12 ++++++++++- 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 libtirpc-0.2.5-netconfig-disable-ipv6.patch create mode 100644 libtirpc-0.2.5-var-run.patch diff --git a/libtirpc-0.2.5-netconfig-disable-ipv6.patch b/libtirpc-0.2.5-netconfig-disable-ipv6.patch new file mode 100644 index 0000000..dcae544 --- /dev/null +++ b/libtirpc-0.2.5-netconfig-disable-ipv6.patch @@ -0,0 +1,14 @@ +diff -Nru libtirpc-0.2.5.orig/doc/netconfig libtirpc-0.2.5/doc/netconfig +--- libtirpc-0.2.5.orig/doc/netconfig 2014-08-08 18:24:34.000000000 +0200 ++++ libtirpc-0.2.5/doc/netconfig 2014-10-01 12:02:30.301450403 +0200 +@@ -12,8 +12,8 @@ + # + udp tpi_clts v inet udp - - + tcp tpi_cots_ord v inet tcp - - +-udp6 tpi_clts v inet6 udp - - +-tcp6 tpi_cots_ord v inet6 tcp - - ++udp6 tpi_clts - inet6 udp - - ++tcp6 tpi_cots_ord - inet6 tcp - - + rawip tpi_raw - inet - - - + local tpi_cots_ord - loopback - - - + unix tpi_cots_ord - loopback - - - diff --git a/libtirpc-0.2.5-var-run.patch b/libtirpc-0.2.5-var-run.patch new file mode 100644 index 0000000..7d1ded1 --- /dev/null +++ b/libtirpc-0.2.5-var-run.patch @@ -0,0 +1,24 @@ +diff -Nru libtirpc-0.2.5.orig/tirpc/rpc/rpcb_prot.h libtirpc-0.2.5/tirpc/rpc/rpcb_prot.h +--- libtirpc-0.2.5.orig/tirpc/rpc/rpcb_prot.h 2014-08-08 18:24:34.000000000 +0200 ++++ libtirpc-0.2.5/tirpc/rpc/rpcb_prot.h 2014-10-01 15:30:21.161591481 +0200 +@@ -476,7 +476,7 @@ + #define RPCBVERS_3 RPCBVERS + #define RPCBVERS_4 RPCBVERS4 + +-#define _PATH_RPCBINDSOCK "/var/run/rpcbind.sock" ++#define _PATH_RPCBINDSOCK "/run/rpcbind.sock" + + #else /* ndef _KERNEL */ + #ifdef __cplusplus +diff -Nru libtirpc-0.2.5.orig/tirpc/rpc/rpcb_prot.x libtirpc-0.2.5/tirpc/rpc/rpcb_prot.x +--- libtirpc-0.2.5.orig/tirpc/rpc/rpcb_prot.x 2014-08-08 18:24:34.000000000 +0200 ++++ libtirpc-0.2.5/tirpc/rpc/rpcb_prot.x 2014-10-01 15:30:10.606591115 +0200 +@@ -410,7 +410,7 @@ + %#define RPCBVERS_3 RPCBVERS + %#define RPCBVERS_4 RPCBVERS4 + % +-%#define _PATH_RPCBINDSOCK "/var/run/rpcbind.sock" ++%#define _PATH_RPCBINDSOCK "/run/rpcbind.sock" + % + %#else /* ndef _KERNEL */ + %#ifdef __cplusplus diff --git a/libtirpc.spec b/libtirpc.spec index 43da4f0..199f18f 100644 --- a/libtirpc.spec +++ b/libtirpc.spec @@ -1,6 +1,6 @@ Name: libtirpc Version: 0.2.5 -Release: 1mamba +Release: 3mamba Summary: A port of Suns Transport-Independent RPC library to Linux Group: System/Libraries Vendor: openmamba @@ -11,6 +11,8 @@ Source: http://downloads.sourceforge.net/project/libtirpc/libtirpc/%{vers Patch0: libtirpc-0.2.2-add-multiple-inclusion-protection-to-rpc_des.patch Patch1: libtirpc-0.2.3-remove-nis.patch Patch2: libtirpc-0.2.5-remove-des.patch +Patch3: libtirpc-0.2.5-netconfig-disable-ipv6.patch +Patch4: libtirpc-0.2.5-var-run.patch License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -37,6 +39,8 @@ This package contains static libraries and header files need for development. %setup -q %patch1 -p1 %patch2 -p1 +%patch3 -p1 +%patch4 -p1 sed -i "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|" configure.ac %build @@ -78,6 +82,12 @@ autoreconf -f -i %doc ChangeLog NEWS README TODO %changelog +* Wed Oct 01 2014 Silvan Calarco 0.2.5-3mamba +- patched to move /var/run/rpcbind.sock to /run/rpcbind.sock + +* Wed Oct 01 2014 Silvan Calarco 0.2.5-2mamba +- netconfig: patch to disable ipv6 (see https://bugzilla.redhat.com/show_bug.cgi?id=249121) + * Sat Sep 13 2014 Automatic Build System 0.2.5-1mamba - automatic update by autodist