From a2291b98bb23fd571487c59f7fd0795009786188 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Tue, 13 Aug 2024 11:07:30 -0400 Subject: [PATCH 01/12] Added Requirement for libtirpc (bz 2304327) Signed-off-by: Steve Dickson --- rpcbind.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rpcbind.spec b/rpcbind.spec index 936ba3b..a5a2f18 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -4,7 +4,7 @@ Name: rpcbind Version: 1.2.7 -Release: 0%{?dist} +Release: 1%{?dist} Summary: Universal Addresses to RPC Program Number Mapper License: BSD-3-Clause URL: http://nfsv4.bullopensource.org @@ -13,6 +13,7 @@ Source0: http://downloads.sourceforge.net/rpcbind/%{name}-%{version}.tar. Source1: %{name}.sysconfig Requires: glibc-common setup +Requires: libtirpc >= 1.3.5 Conflicts: man-pages < 2.43-12 BuildRequires: make BuildRequires: automake, autoconf, libtool, systemd, systemd-devel @@ -131,6 +132,9 @@ fi %attr(0700, %{rpcbind_user_group}, %{rpcbind_user_group}) %dir %{rpcbind_state_dir} %changelog +* Tue Aug 13 2024 Steve Dickson 1.2.7-1 +- Added Requirement for libtirpc (bz 2304327) + * Thu Jul 25 2024 Steve Dickson 1.2.7-0 - Updated to latest upstream release: rpcbind-1_2_7 From d11c2fdec01cb550e9536b95d13c247ea0c3f65d Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Tue, 13 Aug 2024 11:07:30 -0400 Subject: [PATCH 02/12] Added Requirement for libtirpc (bz 2304327) Signed-off-by: Steve Dickson --- rpcbind.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rpcbind.spec b/rpcbind.spec index 936ba3b..a5a2f18 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -4,7 +4,7 @@ Name: rpcbind Version: 1.2.7 -Release: 0%{?dist} +Release: 1%{?dist} Summary: Universal Addresses to RPC Program Number Mapper License: BSD-3-Clause URL: http://nfsv4.bullopensource.org @@ -13,6 +13,7 @@ Source0: http://downloads.sourceforge.net/rpcbind/%{name}-%{version}.tar. Source1: %{name}.sysconfig Requires: glibc-common setup +Requires: libtirpc >= 1.3.5 Conflicts: man-pages < 2.43-12 BuildRequires: make BuildRequires: automake, autoconf, libtool, systemd, systemd-devel @@ -131,6 +132,9 @@ fi %attr(0700, %{rpcbind_user_group}, %{rpcbind_user_group}) %dir %{rpcbind_state_dir} %changelog +* Tue Aug 13 2024 Steve Dickson 1.2.7-1 +- Added Requirement for libtirpc (bz 2304327) + * Thu Jul 25 2024 Steve Dickson 1.2.7-0 - Updated to latest upstream release: rpcbind-1_2_7 From bf5e416b3004f1b693da770c1065dd64cf3290e8 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Mon, 9 Sep 2024 06:45:35 -0400 Subject: [PATCH 03/12] Updated to latest upstream RC release: rpcbind-1_2_8-rc1 Signed-off-by: Steve Dickson --- rpcbind-0.2.3-systemd-envfile.patch | 11 ----- rpcbind-0.2.4-runstatdir.patch | 61 ---------------------------- rpcbind-0.2.4-systemd-service.patch | 13 ------ rpcbind-1.2.8-rc1.patch | 63 +++++++++++++++++++++++++++++ rpcbind.spec | 22 +++++----- 5 files changed, 72 insertions(+), 98 deletions(-) delete mode 100644 rpcbind-0.2.3-systemd-envfile.patch delete mode 100644 rpcbind-0.2.4-runstatdir.patch delete mode 100644 rpcbind-0.2.4-systemd-service.patch create mode 100644 rpcbind-1.2.8-rc1.patch diff --git a/rpcbind-0.2.3-systemd-envfile.patch b/rpcbind-0.2.3-systemd-envfile.patch deleted file mode 100644 index 60da4c6..0000000 --- a/rpcbind-0.2.3-systemd-envfile.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -up rpcbind-1.2.6/systemd/rpcbind.service.in.orig rpcbind-1.2.6/systemd/rpcbind.service.in ---- rpcbind-1.2.6/systemd/rpcbind.service.in.orig 2022-07-12 16:18:16.272919592 -0400 -+++ rpcbind-1.2.6/systemd/rpcbind.service.in 2022-07-12 16:19:14.153189756 -0400 -@@ -12,6 +12,7 @@ Wants=rpcbind.target - [Service] - Type=notify - # distro can provide a drop-in adding EnvironmentFile=-/??? if needed. -+EnvironmentFile=/etc/sysconfig/rpcbind - ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS @warmstarts_opt@ -f - - [Install] diff --git a/rpcbind-0.2.4-runstatdir.patch b/rpcbind-0.2.4-runstatdir.patch deleted file mode 100644 index 04337b8..0000000 --- a/rpcbind-0.2.4-runstatdir.patch +++ /dev/null @@ -1,61 +0,0 @@ -diff -up rpcbind-1.2.7/configure.ac.orig rpcbind-1.2.7/configure.ac ---- rpcbind-1.2.7/configure.ac.orig 2024-07-25 16:56:29.960551776 -0400 -+++ rpcbind-1.2.7/configure.ac 2024-07-25 16:57:25.650922094 -0400 -@@ -32,8 +32,8 @@ AC_ARG_ENABLE([rmtcalls], - AM_CONDITIONAL(RMTCALLS, test x$enable_rmtcalls = xyes) - - AC_ARG_WITH([statedir], -- AS_HELP_STRING([--with-statedir=ARG], [use ARG as state dir @<:@default=/var/run/rpcbind@:>@]) -- ,, [with_statedir=/var/run/rpcbind]) -+ AS_HELP_STRING([--with-statedir=ARG], [use ARG as state dir @<:@default=/run/rpcbind@:>@]) -+ ,, [with_statedir=/run/rpcbind]) - AC_SUBST([statedir], [$with_statedir]) - - AC_ARG_WITH([rpcuser], -diff -up rpcbind-1.2.7/configure.orig rpcbind-1.2.7/configure ---- rpcbind-1.2.7/configure.orig 2024-07-25 16:49:00.000000000 -0400 -+++ rpcbind-1.2.7/configure 2024-07-25 17:00:43.509219008 -0400 -@@ -1429,7 +1429,7 @@ Optional Features: - Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) -- --with-statedir=ARG use ARG as state dir [default=/var/run/rpcbind] -+ --with-statedir=ARG use ARG as state dir [default=/run/rpcbind] - - --with-rpcuser=ARG use ARG for RPC [default=root] - -@@ -4440,7 +4440,7 @@ if test ${with_statedir+y} - then : - withval=$with_statedir; - else $as_nop -- with_statedir=/var/run/rpcbind -+ with_statedir=/run/rpcbind - fi - - statedir=$with_statedir -diff -up rpcbind-1.2.7/man/rpcbind-fr.8.orig rpcbind-1.2.7/man/rpcbind-fr.8 ---- rpcbind-1.2.7/man/rpcbind-fr.8.orig 2024-07-25 11:55:23.000000000 -0400 -+++ rpcbind-1.2.7/man/rpcbind-fr.8 2024-07-25 16:57:25.653922113 -0400 -@@ -138,8 +138,8 @@ est redémarré. - .Xr rpcbind 3 , - .Xr rpcinfo 8 - .Sh FILES --.Bl -tag -width /var/run/rpcbind.sock -compact --.It Pa /var/run/rpcbind.sock -+.Bl -tag -width /run/rpcbind.sock -compact -+.It Pa /run/rpcbind.sock - .Sh TRADUCTION - Aurelien CHARBON (Sept 2003) - .El -diff -up rpcbind-1.2.7/src/rpcbind.c.orig rpcbind-1.2.7/src/rpcbind.c ---- rpcbind-1.2.7/src/rpcbind.c.orig 2024-07-25 11:55:23.000000000 -0400 -+++ rpcbind-1.2.7/src/rpcbind.c 2024-07-25 16:57:25.653922113 -0400 -@@ -105,7 +105,7 @@ char *nss_modules = "files"; - /* who to suid to if -s is given */ - #define RUN_AS "daemon" - --#define RPCBINDDLOCK "/var/run/rpcbind.lock" -+#define RPCBINDDLOCK RPCBIND_STATEDIR "/rpcbind.lock" - - int runasdaemon = 0; - int insecure = 0; diff --git a/rpcbind-0.2.4-systemd-service.patch b/rpcbind-0.2.4-systemd-service.patch deleted file mode 100644 index 0350020..0000000 --- a/rpcbind-0.2.4-systemd-service.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -up rpcbind-0.2.4/systemd/rpcbind.service.in.orig rpcbind-0.2.4/systemd/rpcbind.service.in ---- rpcbind-0.2.4/systemd/rpcbind.service.in.orig 2017-12-16 15:46:12.896270101 -0500 -+++ rpcbind-0.2.4/systemd/rpcbind.service.in 2017-12-16 15:46:43.672027210 -0500 -@@ -7,7 +7,8 @@ RequiresMountsFor=@statedir@ - # Make sure we use the IP addresses listed for - # rpcbind.socket, no matter how this unit is started. - Requires=rpcbind.socket --Wants=rpcbind.target -+Wants=rpcbind.target systemd-tmpfiles-setup.service -+After=systemd-tmpfiles-setup.service - - [Service] - Type=notify diff --git a/rpcbind-1.2.8-rc1.patch b/rpcbind-1.2.8-rc1.patch new file mode 100644 index 0000000..c22b471 --- /dev/null +++ b/rpcbind-1.2.8-rc1.patch @@ -0,0 +1,63 @@ +diff --git a/man/rpcbind.8 b/man/rpcbind.8 +index fbf0ace..cdcdcfd 100644 +--- a/man/rpcbind.8 ++++ b/man/rpcbind.8 +@@ -150,6 +150,14 @@ starts up. The state file is created when + .Nm + terminates. + .El ++.Sh FILES ++The ++.Nm ++utility tries to load configuration file in following order: ++.Bd -literal ++.Pa /etc/rpcbind.conf ++.Pa /etc/default/rpcbind ++.Pa /etc/sysconfig/rpcbind + .Sh NOTES + All RPC servers must be restarted if + .Nm +diff --git a/src/rpcbind.c b/src/rpcbind.c +index ecebe97..9887b82 100644 +--- a/src/rpcbind.c ++++ b/src/rpcbind.c +@@ -105,7 +105,7 @@ char *nss_modules = "files"; + /* who to suid to if -s is given */ + #define RUN_AS "daemon" + +-#define RPCBINDDLOCK "/var/run/rpcbind.lock" ++#define RPCBINDDLOCK "/run/rpcbind.lock" + + int runasdaemon = 0; + int insecure = 0; +diff --git a/systemd/rpcbind.service.in b/systemd/rpcbind.service.in +index c892ca8..771b944 100644 +--- a/systemd/rpcbind.service.in ++++ b/systemd/rpcbind.service.in +@@ -7,11 +7,25 @@ RequiresMountsFor=@statedir@ + # Make sure we use the IP addresses listed for + # rpcbind.socket, no matter how this unit is started. + Requires=rpcbind.socket +-Wants=rpcbind.target ++Wants=rpcbind.target systemd-tmpfiles-setup.service ++After=systemd-tmpfiles-setup.service + + [Service] ++ProtectSystem=full ++ProtectHome=true ++PrivateDevices=true ++ProtectHostname=true ++ProtectClock=true ++ProtectKernelTunables=true ++ProtectKernelModules=true ++ProtectKernelLogs=true ++ProtectControlGroups=true ++RestrictRealtime=true + Type=notify + # distro can provide a drop-in adding EnvironmentFile=-/??? if needed. ++EnvironmentFile=-/etc/rpcbind.conf ++EnvironmentFile=-/etc/default/rpcbind ++EnvironmentFile=-/etc/sysconfig/rpcbind + ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS @warmstarts_opt@ -f + + [Install] diff --git a/rpcbind.spec b/rpcbind.spec index a5a2f18..a91fe65 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -4,7 +4,7 @@ Name: rpcbind Version: 1.2.7 -Release: 1%{?dist} +Release: 1.rc1%{?dist} Summary: Universal Addresses to RPC Program Number Mapper License: BSD-3-Clause URL: http://nfsv4.bullopensource.org @@ -23,11 +23,10 @@ Requires(post): systemd Requires(preun): systemd Requires(postun): systemd coreutils -Patch100: rpcbind-0.2.3-systemd-envfile.patch -Patch101: rpcbind-0.2.3-systemd-tmpfiles.patch -Patch102: rpcbind-0.2.4-runstatdir.patch -Patch103: rpcbind-0.2.4-systemd-service.patch -Patch104: rpcbind-0.2.4-systemd-rundir.patch +Patch001: rpcbind-1.2.8-rc1.patch + +Patch100: rpcbind-0.2.3-systemd-tmpfiles.patch +Patch101: rpcbind-0.2.4-systemd-rundir.patch Provides: portmap = %{version}-%{release} Obsoletes: portmap <= 4.0-65.3 @@ -46,13 +45,7 @@ universal addresses. It must be running on the host to be able to make RPC calls on a server on that machine. %prep -%setup -q - -%patch 100 -p1 -%patch 101 -p1 -%patch 102 -p1 -%patch 103 -p1 -%patch 104 -p1 +%autosetup -p1 %build autoreconf -fisv @@ -132,6 +125,9 @@ fi %attr(0700, %{rpcbind_user_group}, %{rpcbind_user_group}) %dir %{rpcbind_state_dir} %changelog +* Mon Sep 9 2024 Steve Dickson 1.2.8-rc1 +- Updated to latest upstream RC release: rpcbind-1_2_8-rc1 + * Tue Aug 13 2024 Steve Dickson 1.2.7-1 - Added Requirement for libtirpc (bz 2304327) From 64327fdd8916af13b4d0827a416dc9aac7e4b2eb Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Mon, 9 Sep 2024 06:45:35 -0400 Subject: [PATCH 04/12] Updated to latest upstream RC release: rpcbind-1_2_8-rc1 Signed-off-by: Steve Dickson --- rpcbind-0.2.3-systemd-envfile.patch | 11 ----- rpcbind-0.2.4-runstatdir.patch | 61 ---------------------------- rpcbind-0.2.4-systemd-service.patch | 13 ------ rpcbind-1.2.8-rc1.patch | 63 +++++++++++++++++++++++++++++ rpcbind.spec | 22 +++++----- 5 files changed, 72 insertions(+), 98 deletions(-) delete mode 100644 rpcbind-0.2.3-systemd-envfile.patch delete mode 100644 rpcbind-0.2.4-runstatdir.patch delete mode 100644 rpcbind-0.2.4-systemd-service.patch create mode 100644 rpcbind-1.2.8-rc1.patch diff --git a/rpcbind-0.2.3-systemd-envfile.patch b/rpcbind-0.2.3-systemd-envfile.patch deleted file mode 100644 index 60da4c6..0000000 --- a/rpcbind-0.2.3-systemd-envfile.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -up rpcbind-1.2.6/systemd/rpcbind.service.in.orig rpcbind-1.2.6/systemd/rpcbind.service.in ---- rpcbind-1.2.6/systemd/rpcbind.service.in.orig 2022-07-12 16:18:16.272919592 -0400 -+++ rpcbind-1.2.6/systemd/rpcbind.service.in 2022-07-12 16:19:14.153189756 -0400 -@@ -12,6 +12,7 @@ Wants=rpcbind.target - [Service] - Type=notify - # distro can provide a drop-in adding EnvironmentFile=-/??? if needed. -+EnvironmentFile=/etc/sysconfig/rpcbind - ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS @warmstarts_opt@ -f - - [Install] diff --git a/rpcbind-0.2.4-runstatdir.patch b/rpcbind-0.2.4-runstatdir.patch deleted file mode 100644 index 04337b8..0000000 --- a/rpcbind-0.2.4-runstatdir.patch +++ /dev/null @@ -1,61 +0,0 @@ -diff -up rpcbind-1.2.7/configure.ac.orig rpcbind-1.2.7/configure.ac ---- rpcbind-1.2.7/configure.ac.orig 2024-07-25 16:56:29.960551776 -0400 -+++ rpcbind-1.2.7/configure.ac 2024-07-25 16:57:25.650922094 -0400 -@@ -32,8 +32,8 @@ AC_ARG_ENABLE([rmtcalls], - AM_CONDITIONAL(RMTCALLS, test x$enable_rmtcalls = xyes) - - AC_ARG_WITH([statedir], -- AS_HELP_STRING([--with-statedir=ARG], [use ARG as state dir @<:@default=/var/run/rpcbind@:>@]) -- ,, [with_statedir=/var/run/rpcbind]) -+ AS_HELP_STRING([--with-statedir=ARG], [use ARG as state dir @<:@default=/run/rpcbind@:>@]) -+ ,, [with_statedir=/run/rpcbind]) - AC_SUBST([statedir], [$with_statedir]) - - AC_ARG_WITH([rpcuser], -diff -up rpcbind-1.2.7/configure.orig rpcbind-1.2.7/configure ---- rpcbind-1.2.7/configure.orig 2024-07-25 16:49:00.000000000 -0400 -+++ rpcbind-1.2.7/configure 2024-07-25 17:00:43.509219008 -0400 -@@ -1429,7 +1429,7 @@ Optional Features: - Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) -- --with-statedir=ARG use ARG as state dir [default=/var/run/rpcbind] -+ --with-statedir=ARG use ARG as state dir [default=/run/rpcbind] - - --with-rpcuser=ARG use ARG for RPC [default=root] - -@@ -4440,7 +4440,7 @@ if test ${with_statedir+y} - then : - withval=$with_statedir; - else $as_nop -- with_statedir=/var/run/rpcbind -+ with_statedir=/run/rpcbind - fi - - statedir=$with_statedir -diff -up rpcbind-1.2.7/man/rpcbind-fr.8.orig rpcbind-1.2.7/man/rpcbind-fr.8 ---- rpcbind-1.2.7/man/rpcbind-fr.8.orig 2024-07-25 11:55:23.000000000 -0400 -+++ rpcbind-1.2.7/man/rpcbind-fr.8 2024-07-25 16:57:25.653922113 -0400 -@@ -138,8 +138,8 @@ est redémarré. - .Xr rpcbind 3 , - .Xr rpcinfo 8 - .Sh FILES --.Bl -tag -width /var/run/rpcbind.sock -compact --.It Pa /var/run/rpcbind.sock -+.Bl -tag -width /run/rpcbind.sock -compact -+.It Pa /run/rpcbind.sock - .Sh TRADUCTION - Aurelien CHARBON (Sept 2003) - .El -diff -up rpcbind-1.2.7/src/rpcbind.c.orig rpcbind-1.2.7/src/rpcbind.c ---- rpcbind-1.2.7/src/rpcbind.c.orig 2024-07-25 11:55:23.000000000 -0400 -+++ rpcbind-1.2.7/src/rpcbind.c 2024-07-25 16:57:25.653922113 -0400 -@@ -105,7 +105,7 @@ char *nss_modules = "files"; - /* who to suid to if -s is given */ - #define RUN_AS "daemon" - --#define RPCBINDDLOCK "/var/run/rpcbind.lock" -+#define RPCBINDDLOCK RPCBIND_STATEDIR "/rpcbind.lock" - - int runasdaemon = 0; - int insecure = 0; diff --git a/rpcbind-0.2.4-systemd-service.patch b/rpcbind-0.2.4-systemd-service.patch deleted file mode 100644 index 0350020..0000000 --- a/rpcbind-0.2.4-systemd-service.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -up rpcbind-0.2.4/systemd/rpcbind.service.in.orig rpcbind-0.2.4/systemd/rpcbind.service.in ---- rpcbind-0.2.4/systemd/rpcbind.service.in.orig 2017-12-16 15:46:12.896270101 -0500 -+++ rpcbind-0.2.4/systemd/rpcbind.service.in 2017-12-16 15:46:43.672027210 -0500 -@@ -7,7 +7,8 @@ RequiresMountsFor=@statedir@ - # Make sure we use the IP addresses listed for - # rpcbind.socket, no matter how this unit is started. - Requires=rpcbind.socket --Wants=rpcbind.target -+Wants=rpcbind.target systemd-tmpfiles-setup.service -+After=systemd-tmpfiles-setup.service - - [Service] - Type=notify diff --git a/rpcbind-1.2.8-rc1.patch b/rpcbind-1.2.8-rc1.patch new file mode 100644 index 0000000..c22b471 --- /dev/null +++ b/rpcbind-1.2.8-rc1.patch @@ -0,0 +1,63 @@ +diff --git a/man/rpcbind.8 b/man/rpcbind.8 +index fbf0ace..cdcdcfd 100644 +--- a/man/rpcbind.8 ++++ b/man/rpcbind.8 +@@ -150,6 +150,14 @@ starts up. The state file is created when + .Nm + terminates. + .El ++.Sh FILES ++The ++.Nm ++utility tries to load configuration file in following order: ++.Bd -literal ++.Pa /etc/rpcbind.conf ++.Pa /etc/default/rpcbind ++.Pa /etc/sysconfig/rpcbind + .Sh NOTES + All RPC servers must be restarted if + .Nm +diff --git a/src/rpcbind.c b/src/rpcbind.c +index ecebe97..9887b82 100644 +--- a/src/rpcbind.c ++++ b/src/rpcbind.c +@@ -105,7 +105,7 @@ char *nss_modules = "files"; + /* who to suid to if -s is given */ + #define RUN_AS "daemon" + +-#define RPCBINDDLOCK "/var/run/rpcbind.lock" ++#define RPCBINDDLOCK "/run/rpcbind.lock" + + int runasdaemon = 0; + int insecure = 0; +diff --git a/systemd/rpcbind.service.in b/systemd/rpcbind.service.in +index c892ca8..771b944 100644 +--- a/systemd/rpcbind.service.in ++++ b/systemd/rpcbind.service.in +@@ -7,11 +7,25 @@ RequiresMountsFor=@statedir@ + # Make sure we use the IP addresses listed for + # rpcbind.socket, no matter how this unit is started. + Requires=rpcbind.socket +-Wants=rpcbind.target ++Wants=rpcbind.target systemd-tmpfiles-setup.service ++After=systemd-tmpfiles-setup.service + + [Service] ++ProtectSystem=full ++ProtectHome=true ++PrivateDevices=true ++ProtectHostname=true ++ProtectClock=true ++ProtectKernelTunables=true ++ProtectKernelModules=true ++ProtectKernelLogs=true ++ProtectControlGroups=true ++RestrictRealtime=true + Type=notify + # distro can provide a drop-in adding EnvironmentFile=-/??? if needed. ++EnvironmentFile=-/etc/rpcbind.conf ++EnvironmentFile=-/etc/default/rpcbind ++EnvironmentFile=-/etc/sysconfig/rpcbind + ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS @warmstarts_opt@ -f + + [Install] diff --git a/rpcbind.spec b/rpcbind.spec index a5a2f18..a91fe65 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -4,7 +4,7 @@ Name: rpcbind Version: 1.2.7 -Release: 1%{?dist} +Release: 1.rc1%{?dist} Summary: Universal Addresses to RPC Program Number Mapper License: BSD-3-Clause URL: http://nfsv4.bullopensource.org @@ -23,11 +23,10 @@ Requires(post): systemd Requires(preun): systemd Requires(postun): systemd coreutils -Patch100: rpcbind-0.2.3-systemd-envfile.patch -Patch101: rpcbind-0.2.3-systemd-tmpfiles.patch -Patch102: rpcbind-0.2.4-runstatdir.patch -Patch103: rpcbind-0.2.4-systemd-service.patch -Patch104: rpcbind-0.2.4-systemd-rundir.patch +Patch001: rpcbind-1.2.8-rc1.patch + +Patch100: rpcbind-0.2.3-systemd-tmpfiles.patch +Patch101: rpcbind-0.2.4-systemd-rundir.patch Provides: portmap = %{version}-%{release} Obsoletes: portmap <= 4.0-65.3 @@ -46,13 +45,7 @@ universal addresses. It must be running on the host to be able to make RPC calls on a server on that machine. %prep -%setup -q - -%patch 100 -p1 -%patch 101 -p1 -%patch 102 -p1 -%patch 103 -p1 -%patch 104 -p1 +%autosetup -p1 %build autoreconf -fisv @@ -132,6 +125,9 @@ fi %attr(0700, %{rpcbind_user_group}, %{rpcbind_user_group}) %dir %{rpcbind_state_dir} %changelog +* Mon Sep 9 2024 Steve Dickson 1.2.8-rc1 +- Updated to latest upstream RC release: rpcbind-1_2_8-rc1 + * Tue Aug 13 2024 Steve Dickson 1.2.7-1 - Added Requirement for libtirpc (bz 2304327) From 38448bc8b7b4ec841c6f62e9206378cc44bdb968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 12 Jan 2025 14:40:42 +0100 Subject: [PATCH 05/12] Rebuilt for the bin-sbin merge (2nd attempt) https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin --- rpcbind.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpcbind.spec b/rpcbind.spec index a91fe65..fd42e86 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -4,7 +4,7 @@ Name: rpcbind Version: 1.2.7 -Release: 1.rc1%{?dist} +Release: 1.rc1%{?dist}.1 Summary: Universal Addresses to RPC Program Number Mapper License: BSD-3-Clause URL: http://nfsv4.bullopensource.org @@ -125,6 +125,9 @@ fi %attr(0700, %{rpcbind_user_group}, %{rpcbind_user_group}) %dir %{rpcbind_state_dir} %changelog +* Sun Jan 12 2025 Zbigniew JÄ™drzejewski-Szmek - 1.2.7-1.rc1.1 +- Rebuilt for the bin-sbin merge (2nd attempt) + * Mon Sep 9 2024 Steve Dickson 1.2.8-rc1 - Updated to latest upstream RC release: rpcbind-1_2_8-rc1 From 58b2707a1da95f540f943b00022beb7bda39f775 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 14 Jan 2025 10:28:37 +0200 Subject: [PATCH 06/12] Add provides for the manually created rpc user and group The provides are necessary to fix this compose failure: https://pagure.io/releng/failed-composes/issue/7706 Such provides are normally auto-generated from sysusers.d config but since the user is manually created, we need to manually add the provide too. --- rpcbind.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rpcbind.spec b/rpcbind.spec index fd42e86..3f4cbaf 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -4,7 +4,7 @@ Name: rpcbind Version: 1.2.7 -Release: 1.rc1%{?dist}.1 +Release: 1.rc1%{?dist}.2 Summary: Universal Addresses to RPC Program Number Mapper License: BSD-3-Clause URL: http://nfsv4.bullopensource.org @@ -22,6 +22,8 @@ Requires(pre): coreutils shadow-utils Requires(post): systemd Requires(preun): systemd Requires(postun): systemd coreutils +Provides: user(rpc) +Provides: group(rpc) Patch001: rpcbind-1.2.8-rc1.patch @@ -125,6 +127,9 @@ fi %attr(0700, %{rpcbind_user_group}, %{rpcbind_user_group}) %dir %{rpcbind_state_dir} %changelog +* Tue Jan 14 2025 Panu Matilainen - 1.2.7-1.rc1.2 +- Add provides for the manually created rpc user and group + * Sun Jan 12 2025 Zbigniew JÄ™drzejewski-Szmek - 1.2.7-1.rc1.1 - Rebuilt for the bin-sbin merge (2nd attempt) From 33d953ba508384084e43357ac99c7d7a96b14acf Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 22:39:42 +0000 Subject: [PATCH 07/12] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- rpcbind.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpcbind.spec b/rpcbind.spec index 3f4cbaf..b5b2c6e 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -4,7 +4,7 @@ Name: rpcbind Version: 1.2.7 -Release: 1.rc1%{?dist}.2 +Release: 1.rc1%{?dist}.3 Summary: Universal Addresses to RPC Program Number Mapper License: BSD-3-Clause URL: http://nfsv4.bullopensource.org @@ -127,6 +127,9 @@ fi %attr(0700, %{rpcbind_user_group}, %{rpcbind_user_group}) %dir %{rpcbind_state_dir} %changelog +* Sat Jan 18 2025 Fedora Release Engineering - 1.2.7-1.rc1.3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Tue Jan 14 2025 Panu Matilainen - 1.2.7-1.rc1.2 - Add provides for the manually created rpc user and group From 71db4a383198aa08ccdb81d9426e9606163e7448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 29 Jan 2025 15:07:52 +0100 Subject: [PATCH 08/12] Add sysusers.d config file to allow rpm to create users/groups automatically See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers. Previously, a non-system user was created :(, sysusers does not support this. --- rpcbind.spec | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/rpcbind.spec b/rpcbind.spec index b5b2c6e..f3ac1bf 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -4,7 +4,7 @@ Name: rpcbind Version: 1.2.7 -Release: 1.rc1%{?dist}.3 +Release: 1.rc1%{?dist}.4 Summary: Universal Addresses to RPC Program Number Mapper License: BSD-3-Clause URL: http://nfsv4.bullopensource.org @@ -18,12 +18,10 @@ Conflicts: man-pages < 2.43-12 BuildRequires: make BuildRequires: automake, autoconf, libtool, systemd, systemd-devel BuildRequires: libtirpc-devel, quota-devel -Requires(pre): coreutils shadow-utils +Requires(pre): coreutils Requires(post): systemd Requires(preun): systemd Requires(postun): systemd coreutils -Provides: user(rpc) -Provides: group(rpc) Patch001: rpcbind-1.2.8-rc1.patch @@ -49,6 +47,11 @@ RPC calls on a server on that machine. %prep %autosetup -p1 +# Create a sysusers.d config file +cat >rpcbind.sysusers.conf </dev/null || groupadd -f -g 32 -r rpc -if ! getent passwd rpc >/dev/null ; then - if ! getent passwd 32 >/dev/null ; then - useradd -l -c "Rpcbind Daemon" -d /var/lib/rpcbind \ - -g rpc -M -s /sbin/nologin -o -u 32 rpc > /dev/null 2>&1 - else - useradd -l -c "Rpcbind Daemon" -d /var/lib/rpcbind \ - -g rpc -M -s /sbin/nologin rpc > /dev/null 2>&1 - fi -fi +install -m0644 -D rpcbind.sysusers.conf %{buildroot}%{_sysusersdir}/rpcbind.conf %post %systemd_post rpcbind.service rpcbind.socket @@ -125,8 +116,12 @@ fi %{_unitdir}/%{name}.socket %{_tmpfilesdir}/%{name}.conf %attr(0700, %{rpcbind_user_group}, %{rpcbind_user_group}) %dir %{rpcbind_state_dir} +%{_sysusersdir}/rpcbind.conf %changelog +* Wed Jan 29 2025 Zbigniew JÄ™drzejewski-Szmek - 1.2.7-1.rc1.4 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Sat Jan 18 2025 Fedora Release Engineering - 1.2.7-1.rc1.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 03a3b8332ece0e3904a70e744a880d9f76f952d8 Mon Sep 17 00:00:00 2001 From: Scott Mayhew Date: Thu, 8 May 2025 11:14:56 -0400 Subject: [PATCH 09/12] Fix rpm scriptlets to remove excessive restarts during upgrade Signed-off-by: Scott Mayhew Signed-off-by: Steve Dickson --- rpcbind.spec | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/rpcbind.spec b/rpcbind.spec index f3ac1bf..bc4f076 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -4,7 +4,7 @@ Name: rpcbind Version: 1.2.7 -Release: 1.rc1%{?dist}.4 +Release: 2.rc1%{?dist} Summary: Universal Addresses to RPC Program Number Mapper License: BSD-3-Clause URL: http://nfsv4.bullopensource.org @@ -91,15 +91,16 @@ install -m0644 -D rpcbind.sysusers.conf %{buildroot}%{_sysusersdir}/rpcbind.conf %preun %systemd_preun rpcbind.service rpcbind.socket +# NOTE: We only restart rpcbind.socket in the %postun scriptlet in order to +# avoid the race described in: +# +# https://github.com/systemd/systemd/issues/13271 +# https://github.com/systemd/systemd/issues/8102 +# +# Restarting rpcbind.socket causes rpcbind.service to be restarted automatically +# due to "Requires=rpcbind.socket" in the rpcbind.service unit file. %postun -%systemd_postun_with_restart rpcbind.service rpcbind.socket - -%triggerin -- rpcbind > 0.2.2-2.0 -if systemctl -q is-enabled rpcbind.socket -then - /bin/systemctl reenable rpcbind.socket >/dev/null 2>&1 || : - /bin/systemctl restart rpcbind.socket >/dev/null 2>&1 || : -fi +%systemd_postun_with_restart rpcbind.socket %files %license COPYING @@ -119,6 +120,9 @@ fi %{_sysusersdir}/rpcbind.conf %changelog +* Wed May 7 2025 Scott Mayhew - 1.2.7-2.rc1 +- Fix rpm scriptlets to remove excessive restarts during upgrade + * Wed Jan 29 2025 Zbigniew JÄ™drzejewski-Szmek - 1.2.7-1.rc1.4 - Add sysusers.d config file to allow rpm to create users/groups automatically From 466d52c13d676757fcaf9ef974d301018b3a737c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 12:05:17 +0000 Subject: [PATCH 10/12] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- rpcbind.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpcbind.spec b/rpcbind.spec index bc4f076..1a18f08 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -4,7 +4,7 @@ Name: rpcbind Version: 1.2.7 -Release: 2.rc1%{?dist} +Release: 2.rc1%{?dist}.1 Summary: Universal Addresses to RPC Program Number Mapper License: BSD-3-Clause URL: http://nfsv4.bullopensource.org @@ -120,6 +120,9 @@ install -m0644 -D rpcbind.sysusers.conf %{buildroot}%{_sysusersdir}/rpcbind.conf %{_sysusersdir}/rpcbind.conf %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 1.2.7-2.rc1.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Wed May 7 2025 Scott Mayhew - 1.2.7-2.rc1 - Fix rpm scriptlets to remove excessive restarts during upgrade From f4e8a6928466b1e172f98253e2f096bc5b7cf3d5 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Tue, 29 Jul 2025 08:12:26 -0400 Subject: [PATCH 11/12] Updated to latest upstream release: rpcbind-1_2_8 (bz 2300081) Signed-off-by: Steve Dickson --- .gitignore | 4 +- rpcbind-0.2.4-systemd-rundir.patch | 14 +-- rpcbind-1.2.7-rc2.patch | 46 -------- rpcbind-1.2.7-rc3.patch | 177 ----------------------------- rpcbind-1.2.8-rc1.patch | 63 ---------- rpcbind.spec | 9 +- sources | 2 +- 7 files changed, 15 insertions(+), 300 deletions(-) delete mode 100644 rpcbind-1.2.7-rc2.patch delete mode 100644 rpcbind-1.2.7-rc3.patch delete mode 100644 rpcbind-1.2.8-rc1.patch diff --git a/.gitignore b/.gitignore index 0cd980a..1a0073b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ x86_64 Makefile -rpcbind-1.2.7/ -/rpcbind-1.2.7.tar.bz2 +rpcbind-1.2.8-build/ +/rpcbind-1.2.8.tar.bz2 diff --git a/rpcbind-0.2.4-systemd-rundir.patch b/rpcbind-0.2.4-systemd-rundir.patch index a3dc01f..ffecb53 100644 --- a/rpcbind-0.2.4-systemd-rundir.patch +++ b/rpcbind-0.2.4-systemd-rundir.patch @@ -1,16 +1,16 @@ -diff -up rpcbind-1.2.6/src/rpcbind.c.orig rpcbind-1.2.6/src/rpcbind.c ---- rpcbind-1.2.6/src/rpcbind.c.orig 2022-07-12 16:25:36.422972803 -0400 -+++ rpcbind-1.2.6/src/rpcbind.c 2022-07-12 16:26:00.679085433 -0400 -@@ -143,6 +143,8 @@ static void rbllist_add(rpcprog_t, rpcve - static void terminate(int); - static void parseargs(int, char *[]); +diff -up rpcbind-1.2.8/src/rpcbind.c.orig rpcbind-1.2.8/src/rpcbind.c +--- rpcbind-1.2.8/src/rpcbind.c.orig 2025-07-26 16:57:24.000000000 -0400 ++++ rpcbind-1.2.8/src/rpcbind.c 2025-07-26 17:15:51.933467872 -0400 +@@ -214,6 +214,8 @@ static void version() + fprintf(stderr, "\n"); + } +char *systemdtmp = "/usr/bin/systemd-tmpfiles --create rpcbind.conf"; + int main(int argc, char *argv[]) { -@@ -150,13 +152,21 @@ main(int argc, char *argv[]) +@@ -221,13 +223,21 @@ main(int argc, char *argv[]) void *nc_handle; /* Net config handle */ struct rlimit rl; int maxrec = RPC_MAXDATASIZE; diff --git a/rpcbind-1.2.7-rc2.patch b/rpcbind-1.2.7-rc2.patch deleted file mode 100644 index 4c1749d..0000000 --- a/rpcbind-1.2.7-rc2.patch +++ /dev/null @@ -1,46 +0,0 @@ -diff --git a/configure.ac b/configure.ac -index c0ef896..c2069a2 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -20,6 +20,12 @@ AM_CONDITIONAL(LIBSETDEBUG, test x$lib_setdebug = xyes) - AC_ARG_ENABLE([warmstarts], - AS_HELP_STRING([--enable-warmstarts], [Enables Warm Starts @<:@default=no@:>@])) - AM_CONDITIONAL(WARMSTART, test x$enable_warmstarts = xyes) -+AS_IF([test x$enable_warmstarts = xyes], [ -+ warmstarts_opt=-w -+], [ -+ warmstarts_opt= -+]) -+AC_SUBST([warmstarts_opt], [$warmstarts_opt]) - - AC_ARG_ENABLE([rmtcalls], - AS_HELP_STRING([--enable-rmtcalls], [Enables Remote Calls @<:@default=no@:>@])) -diff --git a/src/rpcbind.c b/src/rpcbind.c -index 25d8a90..ecebe97 100644 ---- a/src/rpcbind.c -+++ b/src/rpcbind.c -@@ -552,8 +552,10 @@ init_transport(struct netconfig *nconf) - syslog(LOG_ERR, "cannot bind %s on %s: %m", - (hosts[nhostsbak] == NULL) ? "*" : - hosts[nhostsbak], nconf->nc_netid); -- if (res != NULL) -+ if (res != NULL) { - freeaddrinfo(res); -+ res = NULL; -+ } - continue; - } else - checkbind++; -diff --git a/systemd/rpcbind.service.in b/systemd/rpcbind.service.in -index 7b1c74b..c892ca8 100644 ---- a/systemd/rpcbind.service.in -+++ b/systemd/rpcbind.service.in -@@ -12,7 +12,7 @@ Wants=rpcbind.target - [Service] - Type=notify - # distro can provide a drop-in adding EnvironmentFile=-/??? if needed. --ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS -w -f -+ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS @warmstarts_opt@ -f - - [Install] - WantedBy=multi-user.target diff --git a/rpcbind-1.2.7-rc3.patch b/rpcbind-1.2.7-rc3.patch deleted file mode 100644 index 3e11c03..0000000 --- a/rpcbind-1.2.7-rc3.patch +++ /dev/null @@ -1,177 +0,0 @@ -diff --git a/configure.ac b/configure.ac -index c0ef896..573e4fd 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -20,6 +20,12 @@ AM_CONDITIONAL(LIBSETDEBUG, test x$lib_setdebug = xyes) - AC_ARG_ENABLE([warmstarts], - AS_HELP_STRING([--enable-warmstarts], [Enables Warm Starts @<:@default=no@:>@])) - AM_CONDITIONAL(WARMSTART, test x$enable_warmstarts = xyes) -+AS_IF([test x$enable_warmstarts = xyes], [ -+ warmstarts_opt=-w -+], [ -+ warmstarts_opt= -+]) -+AC_SUBST([warmstarts_opt], [$warmstarts_opt]) - - AC_ARG_ENABLE([rmtcalls], - AS_HELP_STRING([--enable-rmtcalls], [Enables Remote Calls @<:@default=no@:>@])) -@@ -44,6 +50,17 @@ AC_SUBST([nss_modules], [$with_nss_modules]) - - PKG_CHECK_MODULES([TIRPC], [libtirpc]) - -+CPPFLAGS=$TIRPC_CFLAGS -+AC_MSG_CHECKING([for abstract socket support in libtirpc]) -+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ -+#include -+],[ -+char *path = _PATH_RPCBINDSOCK_ABSTRACT; -+])], [have_abstract=yes], [have_abstract=no]) -+CPPFLAGS= -+AC_MSG_RESULT([$have_abstract]) -+AM_CONDITIONAL(ABSTRACT, [ test "x$have_abstract" = "xyes" ]) -+ - PKG_PROG_PKG_CONFIG - AC_ARG_WITH([systemdsystemunitdir], - AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), -@@ -70,4 +87,4 @@ AC_CHECK_HEADERS([nss.h]) - AC_SUBST([_sbindir]) - AC_CONFIG_COMMANDS_PRE([eval eval _sbindir=$sbindir]) - --AC_OUTPUT([Makefile systemd/rpcbind.service]) -+AC_OUTPUT([Makefile systemd/rpcbind.service systemd/rpcbind.socket]) -diff --git a/src/rpcbind.c b/src/rpcbind.c -index 25d8a90..ecebe97 100644 ---- a/src/rpcbind.c -+++ b/src/rpcbind.c -@@ -552,8 +552,10 @@ init_transport(struct netconfig *nconf) - syslog(LOG_ERR, "cannot bind %s on %s: %m", - (hosts[nhostsbak] == NULL) ? "*" : - hosts[nhostsbak], nconf->nc_netid); -- if (res != NULL) -+ if (res != NULL) { - freeaddrinfo(res); -+ res = NULL; -+ } - continue; - } else - checkbind++; -diff --git a/src/rpcinfo.c b/src/rpcinfo.c -index 0e14f78..006057a 100644 ---- a/src/rpcinfo.c -+++ b/src/rpcinfo.c -@@ -311,29 +311,17 @@ main (int argc, char **argv) - return (0); - } - -+/* Evaluate to actual length of the `sockaddr_un' structure, whether -+ * abstract or not. -+ */ -+#include -+#define SUN_LEN_A(ptr) (offsetof(struct sockaddr_un, sun_path) \ -+ + 1 + strlen((ptr)->sun_path + 1)) -+ - static CLIENT * - local_rpcb (rpcprog_t prog, rpcvers_t vers) - { --#if 0 -- void *localhandle; -- struct netconfig *nconf; - CLIENT *clnt; -- -- localhandle = setnetconfig(); -- while ((nconf = getnetconfig(localhandle)) != NULL) { -- if (nconf->nc_protofmly != NULL && -- strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) -- break; -- } -- if (nconf == NULL) { -- warnx("getnetconfig: %s", nc_sperror()); -- return (NULL); -- } -- -- clnt = clnt_tp_create (/* "localhost"*/ NULL, prog, vers, nconf); -- endnetconfig(localhandle); -- return clnt; --#else - struct netbuf nbuf; - struct sockaddr_un sun; - int sock; -@@ -344,13 +332,26 @@ local_rpcb (rpcprog_t prog, rpcvers_t vers) - return NULL; - - sun.sun_family = AF_LOCAL; -+ -+#ifdef _PATH_RPCBINDSOCK_ABSTRACT -+ memcpy(sun.sun_path, _PATH_RPCBINDSOCK_ABSTRACT, -+ sizeof(_PATH_RPCBINDSOCK_ABSTRACT)); -+ nbuf.len = SUN_LEN_A (&sun); -+ nbuf.maxlen = sizeof (struct sockaddr_un); -+ nbuf.buf = &sun; -+ -+ clnt = clnt_vc_create (sock, &nbuf, prog, vers, 0, 0); -+ if (clnt) -+ return clnt; -+#endif -+ - strcpy (sun.sun_path, _PATH_RPCBINDSOCK); - nbuf.len = SUN_LEN (&sun); - nbuf.maxlen = sizeof (struct sockaddr_un); - nbuf.buf = &sun; - -- return clnt_vc_create (sock, &nbuf, prog, vers, 0, 0); --#endif -+ clnt = clnt_vc_create (sock, &nbuf, prog, vers, 0, 0); -+ return clnt; - } - - #ifdef PORTMAP -diff --git a/systemd/rpcbind.service.in b/systemd/rpcbind.service.in -index 7b1c74b..c892ca8 100644 ---- a/systemd/rpcbind.service.in -+++ b/systemd/rpcbind.service.in -@@ -12,7 +12,7 @@ Wants=rpcbind.target - [Service] - Type=notify - # distro can provide a drop-in adding EnvironmentFile=-/??? if needed. --ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS -w -f -+ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS @warmstarts_opt@ -f - - [Install] - WantedBy=multi-user.target -diff --git a/systemd/rpcbind.socket b/systemd/rpcbind.socket -index 3b1a936..685341c 100644 ---- a/systemd/rpcbind.socket -+++ b/systemd/rpcbind.socket -@@ -6,6 +6,7 @@ Before=rpcbind.target - - [Socket] - ListenStream=/run/rpcbind.sock -+#ListenStream=@/run/rpcbind.sock - - # RPC netconfig can't handle ipv6/ipv4 dual sockets - BindIPv6Only=ipv6-only -diff --git a/systemd/rpcbind.socket.in b/systemd/rpcbind.socket.in -new file mode 100644 -index 0000000..5dd09a1 ---- /dev/null -+++ b/systemd/rpcbind.socket.in -@@ -0,0 +1,19 @@ -+[Unit] -+Description=RPCbind Server Activation Socket -+DefaultDependencies=no -+Wants=rpcbind.target -+Before=rpcbind.target -+ -+[Socket] -+ListenStream=/run/rpcbind.sock -+@ABSTRACT_TRUE@ListenStream=@/run/rpcbind.sock -+ -+# RPC netconfig can't handle ipv6/ipv4 dual sockets -+BindIPv6Only=ipv6-only -+ListenStream=0.0.0.0:111 -+ListenDatagram=0.0.0.0:111 -+ListenStream=[::]:111 -+ListenDatagram=[::]:111 -+ -+[Install] -+WantedBy=sockets.target diff --git a/rpcbind-1.2.8-rc1.patch b/rpcbind-1.2.8-rc1.patch deleted file mode 100644 index c22b471..0000000 --- a/rpcbind-1.2.8-rc1.patch +++ /dev/null @@ -1,63 +0,0 @@ -diff --git a/man/rpcbind.8 b/man/rpcbind.8 -index fbf0ace..cdcdcfd 100644 ---- a/man/rpcbind.8 -+++ b/man/rpcbind.8 -@@ -150,6 +150,14 @@ starts up. The state file is created when - .Nm - terminates. - .El -+.Sh FILES -+The -+.Nm -+utility tries to load configuration file in following order: -+.Bd -literal -+.Pa /etc/rpcbind.conf -+.Pa /etc/default/rpcbind -+.Pa /etc/sysconfig/rpcbind - .Sh NOTES - All RPC servers must be restarted if - .Nm -diff --git a/src/rpcbind.c b/src/rpcbind.c -index ecebe97..9887b82 100644 ---- a/src/rpcbind.c -+++ b/src/rpcbind.c -@@ -105,7 +105,7 @@ char *nss_modules = "files"; - /* who to suid to if -s is given */ - #define RUN_AS "daemon" - --#define RPCBINDDLOCK "/var/run/rpcbind.lock" -+#define RPCBINDDLOCK "/run/rpcbind.lock" - - int runasdaemon = 0; - int insecure = 0; -diff --git a/systemd/rpcbind.service.in b/systemd/rpcbind.service.in -index c892ca8..771b944 100644 ---- a/systemd/rpcbind.service.in -+++ b/systemd/rpcbind.service.in -@@ -7,11 +7,25 @@ RequiresMountsFor=@statedir@ - # Make sure we use the IP addresses listed for - # rpcbind.socket, no matter how this unit is started. - Requires=rpcbind.socket --Wants=rpcbind.target -+Wants=rpcbind.target systemd-tmpfiles-setup.service -+After=systemd-tmpfiles-setup.service - - [Service] -+ProtectSystem=full -+ProtectHome=true -+PrivateDevices=true -+ProtectHostname=true -+ProtectClock=true -+ProtectKernelTunables=true -+ProtectKernelModules=true -+ProtectKernelLogs=true -+ProtectControlGroups=true -+RestrictRealtime=true - Type=notify - # distro can provide a drop-in adding EnvironmentFile=-/??? if needed. -+EnvironmentFile=-/etc/rpcbind.conf -+EnvironmentFile=-/etc/default/rpcbind -+EnvironmentFile=-/etc/sysconfig/rpcbind - ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS @warmstarts_opt@ -f - - [Install] diff --git a/rpcbind.spec b/rpcbind.spec index a91fe65..67ec55f 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -3,8 +3,8 @@ %global rpcbind_state_dir %{_rundir}/rpcbind Name: rpcbind -Version: 1.2.7 -Release: 1.rc1%{?dist} +Version: 1.2.8 +Release: 0%{?dist} Summary: Universal Addresses to RPC Program Number Mapper License: BSD-3-Clause URL: http://nfsv4.bullopensource.org @@ -23,8 +23,6 @@ Requires(post): systemd Requires(preun): systemd Requires(postun): systemd coreutils -Patch001: rpcbind-1.2.8-rc1.patch - Patch100: rpcbind-0.2.3-systemd-tmpfiles.patch Patch101: rpcbind-0.2.4-systemd-rundir.patch @@ -125,6 +123,9 @@ fi %attr(0700, %{rpcbind_user_group}, %{rpcbind_user_group}) %dir %{rpcbind_state_dir} %changelog +* Sat Jul 26 2025 Steve Dickson 1.2.8-0 +- Updated to latest upstream release: rpcbind-1_2_8 (bz 2300081) + * Mon Sep 9 2024 Steve Dickson 1.2.8-rc1 - Updated to latest upstream RC release: rpcbind-1_2_8-rc1 diff --git a/sources b/sources index 81a9c45..26c4f09 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rpcbind-1.2.7.tar.bz2) = ca1517bdab86221d13c645042cc31b25b4d2b574d63ebaa20da4f5392b611cf58811f267214293e953f504d364e5daaa5875eab7aa68a04b89e68fd5508e3926 +SHA512 (rpcbind-1.2.8.tar.bz2) = 66f3955a67c4d0142ec635614ceafbc9bdbea985f2edaeec903f17efaf3c2e98f6483e8e6b7f1358cf8d2c1c877b281d153a3bf1b6748b6d259ae7ad1465ee71 From 333233b7d5ddda1aa97fab84a0c40b8023bfd270 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Tue, 29 Jul 2025 08:14:42 -0400 Subject: [PATCH 12/12] Updated to latest upstream release: rpcbind-1_2_8 (bz 2300081) Signed-off-by: Steve Dickson --- .gitignore | 4 +- rpcbind-0.2.4-systemd-rundir.patch | 14 +-- rpcbind-1.2.7-rc2.patch | 46 -------- rpcbind-1.2.7-rc3.patch | 177 ----------------------------- rpcbind-1.2.8-rc1.patch | 63 ---------- rpcbind.spec | 9 +- sources | 2 +- 7 files changed, 15 insertions(+), 300 deletions(-) delete mode 100644 rpcbind-1.2.7-rc2.patch delete mode 100644 rpcbind-1.2.7-rc3.patch delete mode 100644 rpcbind-1.2.8-rc1.patch diff --git a/.gitignore b/.gitignore index 0cd980a..1a0073b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ x86_64 Makefile -rpcbind-1.2.7/ -/rpcbind-1.2.7.tar.bz2 +rpcbind-1.2.8-build/ +/rpcbind-1.2.8.tar.bz2 diff --git a/rpcbind-0.2.4-systemd-rundir.patch b/rpcbind-0.2.4-systemd-rundir.patch index a3dc01f..ffecb53 100644 --- a/rpcbind-0.2.4-systemd-rundir.patch +++ b/rpcbind-0.2.4-systemd-rundir.patch @@ -1,16 +1,16 @@ -diff -up rpcbind-1.2.6/src/rpcbind.c.orig rpcbind-1.2.6/src/rpcbind.c ---- rpcbind-1.2.6/src/rpcbind.c.orig 2022-07-12 16:25:36.422972803 -0400 -+++ rpcbind-1.2.6/src/rpcbind.c 2022-07-12 16:26:00.679085433 -0400 -@@ -143,6 +143,8 @@ static void rbllist_add(rpcprog_t, rpcve - static void terminate(int); - static void parseargs(int, char *[]); +diff -up rpcbind-1.2.8/src/rpcbind.c.orig rpcbind-1.2.8/src/rpcbind.c +--- rpcbind-1.2.8/src/rpcbind.c.orig 2025-07-26 16:57:24.000000000 -0400 ++++ rpcbind-1.2.8/src/rpcbind.c 2025-07-26 17:15:51.933467872 -0400 +@@ -214,6 +214,8 @@ static void version() + fprintf(stderr, "\n"); + } +char *systemdtmp = "/usr/bin/systemd-tmpfiles --create rpcbind.conf"; + int main(int argc, char *argv[]) { -@@ -150,13 +152,21 @@ main(int argc, char *argv[]) +@@ -221,13 +223,21 @@ main(int argc, char *argv[]) void *nc_handle; /* Net config handle */ struct rlimit rl; int maxrec = RPC_MAXDATASIZE; diff --git a/rpcbind-1.2.7-rc2.patch b/rpcbind-1.2.7-rc2.patch deleted file mode 100644 index 4c1749d..0000000 --- a/rpcbind-1.2.7-rc2.patch +++ /dev/null @@ -1,46 +0,0 @@ -diff --git a/configure.ac b/configure.ac -index c0ef896..c2069a2 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -20,6 +20,12 @@ AM_CONDITIONAL(LIBSETDEBUG, test x$lib_setdebug = xyes) - AC_ARG_ENABLE([warmstarts], - AS_HELP_STRING([--enable-warmstarts], [Enables Warm Starts @<:@default=no@:>@])) - AM_CONDITIONAL(WARMSTART, test x$enable_warmstarts = xyes) -+AS_IF([test x$enable_warmstarts = xyes], [ -+ warmstarts_opt=-w -+], [ -+ warmstarts_opt= -+]) -+AC_SUBST([warmstarts_opt], [$warmstarts_opt]) - - AC_ARG_ENABLE([rmtcalls], - AS_HELP_STRING([--enable-rmtcalls], [Enables Remote Calls @<:@default=no@:>@])) -diff --git a/src/rpcbind.c b/src/rpcbind.c -index 25d8a90..ecebe97 100644 ---- a/src/rpcbind.c -+++ b/src/rpcbind.c -@@ -552,8 +552,10 @@ init_transport(struct netconfig *nconf) - syslog(LOG_ERR, "cannot bind %s on %s: %m", - (hosts[nhostsbak] == NULL) ? "*" : - hosts[nhostsbak], nconf->nc_netid); -- if (res != NULL) -+ if (res != NULL) { - freeaddrinfo(res); -+ res = NULL; -+ } - continue; - } else - checkbind++; -diff --git a/systemd/rpcbind.service.in b/systemd/rpcbind.service.in -index 7b1c74b..c892ca8 100644 ---- a/systemd/rpcbind.service.in -+++ b/systemd/rpcbind.service.in -@@ -12,7 +12,7 @@ Wants=rpcbind.target - [Service] - Type=notify - # distro can provide a drop-in adding EnvironmentFile=-/??? if needed. --ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS -w -f -+ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS @warmstarts_opt@ -f - - [Install] - WantedBy=multi-user.target diff --git a/rpcbind-1.2.7-rc3.patch b/rpcbind-1.2.7-rc3.patch deleted file mode 100644 index 3e11c03..0000000 --- a/rpcbind-1.2.7-rc3.patch +++ /dev/null @@ -1,177 +0,0 @@ -diff --git a/configure.ac b/configure.ac -index c0ef896..573e4fd 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -20,6 +20,12 @@ AM_CONDITIONAL(LIBSETDEBUG, test x$lib_setdebug = xyes) - AC_ARG_ENABLE([warmstarts], - AS_HELP_STRING([--enable-warmstarts], [Enables Warm Starts @<:@default=no@:>@])) - AM_CONDITIONAL(WARMSTART, test x$enable_warmstarts = xyes) -+AS_IF([test x$enable_warmstarts = xyes], [ -+ warmstarts_opt=-w -+], [ -+ warmstarts_opt= -+]) -+AC_SUBST([warmstarts_opt], [$warmstarts_opt]) - - AC_ARG_ENABLE([rmtcalls], - AS_HELP_STRING([--enable-rmtcalls], [Enables Remote Calls @<:@default=no@:>@])) -@@ -44,6 +50,17 @@ AC_SUBST([nss_modules], [$with_nss_modules]) - - PKG_CHECK_MODULES([TIRPC], [libtirpc]) - -+CPPFLAGS=$TIRPC_CFLAGS -+AC_MSG_CHECKING([for abstract socket support in libtirpc]) -+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ -+#include -+],[ -+char *path = _PATH_RPCBINDSOCK_ABSTRACT; -+])], [have_abstract=yes], [have_abstract=no]) -+CPPFLAGS= -+AC_MSG_RESULT([$have_abstract]) -+AM_CONDITIONAL(ABSTRACT, [ test "x$have_abstract" = "xyes" ]) -+ - PKG_PROG_PKG_CONFIG - AC_ARG_WITH([systemdsystemunitdir], - AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), -@@ -70,4 +87,4 @@ AC_CHECK_HEADERS([nss.h]) - AC_SUBST([_sbindir]) - AC_CONFIG_COMMANDS_PRE([eval eval _sbindir=$sbindir]) - --AC_OUTPUT([Makefile systemd/rpcbind.service]) -+AC_OUTPUT([Makefile systemd/rpcbind.service systemd/rpcbind.socket]) -diff --git a/src/rpcbind.c b/src/rpcbind.c -index 25d8a90..ecebe97 100644 ---- a/src/rpcbind.c -+++ b/src/rpcbind.c -@@ -552,8 +552,10 @@ init_transport(struct netconfig *nconf) - syslog(LOG_ERR, "cannot bind %s on %s: %m", - (hosts[nhostsbak] == NULL) ? "*" : - hosts[nhostsbak], nconf->nc_netid); -- if (res != NULL) -+ if (res != NULL) { - freeaddrinfo(res); -+ res = NULL; -+ } - continue; - } else - checkbind++; -diff --git a/src/rpcinfo.c b/src/rpcinfo.c -index 0e14f78..006057a 100644 ---- a/src/rpcinfo.c -+++ b/src/rpcinfo.c -@@ -311,29 +311,17 @@ main (int argc, char **argv) - return (0); - } - -+/* Evaluate to actual length of the `sockaddr_un' structure, whether -+ * abstract or not. -+ */ -+#include -+#define SUN_LEN_A(ptr) (offsetof(struct sockaddr_un, sun_path) \ -+ + 1 + strlen((ptr)->sun_path + 1)) -+ - static CLIENT * - local_rpcb (rpcprog_t prog, rpcvers_t vers) - { --#if 0 -- void *localhandle; -- struct netconfig *nconf; - CLIENT *clnt; -- -- localhandle = setnetconfig(); -- while ((nconf = getnetconfig(localhandle)) != NULL) { -- if (nconf->nc_protofmly != NULL && -- strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) -- break; -- } -- if (nconf == NULL) { -- warnx("getnetconfig: %s", nc_sperror()); -- return (NULL); -- } -- -- clnt = clnt_tp_create (/* "localhost"*/ NULL, prog, vers, nconf); -- endnetconfig(localhandle); -- return clnt; --#else - struct netbuf nbuf; - struct sockaddr_un sun; - int sock; -@@ -344,13 +332,26 @@ local_rpcb (rpcprog_t prog, rpcvers_t vers) - return NULL; - - sun.sun_family = AF_LOCAL; -+ -+#ifdef _PATH_RPCBINDSOCK_ABSTRACT -+ memcpy(sun.sun_path, _PATH_RPCBINDSOCK_ABSTRACT, -+ sizeof(_PATH_RPCBINDSOCK_ABSTRACT)); -+ nbuf.len = SUN_LEN_A (&sun); -+ nbuf.maxlen = sizeof (struct sockaddr_un); -+ nbuf.buf = &sun; -+ -+ clnt = clnt_vc_create (sock, &nbuf, prog, vers, 0, 0); -+ if (clnt) -+ return clnt; -+#endif -+ - strcpy (sun.sun_path, _PATH_RPCBINDSOCK); - nbuf.len = SUN_LEN (&sun); - nbuf.maxlen = sizeof (struct sockaddr_un); - nbuf.buf = &sun; - -- return clnt_vc_create (sock, &nbuf, prog, vers, 0, 0); --#endif -+ clnt = clnt_vc_create (sock, &nbuf, prog, vers, 0, 0); -+ return clnt; - } - - #ifdef PORTMAP -diff --git a/systemd/rpcbind.service.in b/systemd/rpcbind.service.in -index 7b1c74b..c892ca8 100644 ---- a/systemd/rpcbind.service.in -+++ b/systemd/rpcbind.service.in -@@ -12,7 +12,7 @@ Wants=rpcbind.target - [Service] - Type=notify - # distro can provide a drop-in adding EnvironmentFile=-/??? if needed. --ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS -w -f -+ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS @warmstarts_opt@ -f - - [Install] - WantedBy=multi-user.target -diff --git a/systemd/rpcbind.socket b/systemd/rpcbind.socket -index 3b1a936..685341c 100644 ---- a/systemd/rpcbind.socket -+++ b/systemd/rpcbind.socket -@@ -6,6 +6,7 @@ Before=rpcbind.target - - [Socket] - ListenStream=/run/rpcbind.sock -+#ListenStream=@/run/rpcbind.sock - - # RPC netconfig can't handle ipv6/ipv4 dual sockets - BindIPv6Only=ipv6-only -diff --git a/systemd/rpcbind.socket.in b/systemd/rpcbind.socket.in -new file mode 100644 -index 0000000..5dd09a1 ---- /dev/null -+++ b/systemd/rpcbind.socket.in -@@ -0,0 +1,19 @@ -+[Unit] -+Description=RPCbind Server Activation Socket -+DefaultDependencies=no -+Wants=rpcbind.target -+Before=rpcbind.target -+ -+[Socket] -+ListenStream=/run/rpcbind.sock -+@ABSTRACT_TRUE@ListenStream=@/run/rpcbind.sock -+ -+# RPC netconfig can't handle ipv6/ipv4 dual sockets -+BindIPv6Only=ipv6-only -+ListenStream=0.0.0.0:111 -+ListenDatagram=0.0.0.0:111 -+ListenStream=[::]:111 -+ListenDatagram=[::]:111 -+ -+[Install] -+WantedBy=sockets.target diff --git a/rpcbind-1.2.8-rc1.patch b/rpcbind-1.2.8-rc1.patch deleted file mode 100644 index c22b471..0000000 --- a/rpcbind-1.2.8-rc1.patch +++ /dev/null @@ -1,63 +0,0 @@ -diff --git a/man/rpcbind.8 b/man/rpcbind.8 -index fbf0ace..cdcdcfd 100644 ---- a/man/rpcbind.8 -+++ b/man/rpcbind.8 -@@ -150,6 +150,14 @@ starts up. The state file is created when - .Nm - terminates. - .El -+.Sh FILES -+The -+.Nm -+utility tries to load configuration file in following order: -+.Bd -literal -+.Pa /etc/rpcbind.conf -+.Pa /etc/default/rpcbind -+.Pa /etc/sysconfig/rpcbind - .Sh NOTES - All RPC servers must be restarted if - .Nm -diff --git a/src/rpcbind.c b/src/rpcbind.c -index ecebe97..9887b82 100644 ---- a/src/rpcbind.c -+++ b/src/rpcbind.c -@@ -105,7 +105,7 @@ char *nss_modules = "files"; - /* who to suid to if -s is given */ - #define RUN_AS "daemon" - --#define RPCBINDDLOCK "/var/run/rpcbind.lock" -+#define RPCBINDDLOCK "/run/rpcbind.lock" - - int runasdaemon = 0; - int insecure = 0; -diff --git a/systemd/rpcbind.service.in b/systemd/rpcbind.service.in -index c892ca8..771b944 100644 ---- a/systemd/rpcbind.service.in -+++ b/systemd/rpcbind.service.in -@@ -7,11 +7,25 @@ RequiresMountsFor=@statedir@ - # Make sure we use the IP addresses listed for - # rpcbind.socket, no matter how this unit is started. - Requires=rpcbind.socket --Wants=rpcbind.target -+Wants=rpcbind.target systemd-tmpfiles-setup.service -+After=systemd-tmpfiles-setup.service - - [Service] -+ProtectSystem=full -+ProtectHome=true -+PrivateDevices=true -+ProtectHostname=true -+ProtectClock=true -+ProtectKernelTunables=true -+ProtectKernelModules=true -+ProtectKernelLogs=true -+ProtectControlGroups=true -+RestrictRealtime=true - Type=notify - # distro can provide a drop-in adding EnvironmentFile=-/??? if needed. -+EnvironmentFile=-/etc/rpcbind.conf -+EnvironmentFile=-/etc/default/rpcbind -+EnvironmentFile=-/etc/sysconfig/rpcbind - ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS @warmstarts_opt@ -f - - [Install] diff --git a/rpcbind.spec b/rpcbind.spec index 1a18f08..0676bb2 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -3,8 +3,8 @@ %global rpcbind_state_dir %{_rundir}/rpcbind Name: rpcbind -Version: 1.2.7 -Release: 2.rc1%{?dist}.1 +Version: 1.2.8 +Release: 0%{?dist} Summary: Universal Addresses to RPC Program Number Mapper License: BSD-3-Clause URL: http://nfsv4.bullopensource.org @@ -23,8 +23,6 @@ Requires(post): systemd Requires(preun): systemd Requires(postun): systemd coreutils -Patch001: rpcbind-1.2.8-rc1.patch - Patch100: rpcbind-0.2.3-systemd-tmpfiles.patch Patch101: rpcbind-0.2.4-systemd-rundir.patch @@ -120,6 +118,9 @@ install -m0644 -D rpcbind.sysusers.conf %{buildroot}%{_sysusersdir}/rpcbind.conf %{_sysusersdir}/rpcbind.conf %changelog +* Sat Jul 26 2025 Steve Dickson 1.2.8-0 +- Updated to latest upstream release: rpcbind-1_2_8 (bz 2300081) + * Fri Jul 25 2025 Fedora Release Engineering - 1.2.7-2.rc1.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild diff --git a/sources b/sources index 81a9c45..26c4f09 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rpcbind-1.2.7.tar.bz2) = ca1517bdab86221d13c645042cc31b25b4d2b574d63ebaa20da4f5392b611cf58811f267214293e953f504d364e5daaa5875eab7aa68a04b89e68fd5508e3926 +SHA512 (rpcbind-1.2.8.tar.bz2) = 66f3955a67c4d0142ec635614ceafbc9bdbea985f2edaeec903f17efaf3c2e98f6483e8e6b7f1358cf8d2c1c877b281d153a3bf1b6748b6d259ae7ad1465ee71