From b343c51ea927e4be5b3dcc11ca36742cd615ce5eada5c1151d854189f9da8042 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Mon, 31 Jan 2022 08:07:26 +0000 Subject: [PATCH] Accepting request 950107 from home:pevik:branches:Base:System - Update to version 2.6.1 - https://kernel.org/pub/linux/utils/nfs-utils/2.6.1/2.6.1-Changelog - remove patches from this release: - 0001-gssd-fix-crash-in-debug-message.patch, - Add-disable-sbin-override-for-when-sbin-is-a-symlink.patch OBS-URL: https://build.opensuse.org/request/show/950107 OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=249 --- 0001-gssd-fix-crash-in-debug-message.patch | 31 ------- ...-override-for-when-sbin-is-a-symlink.patch | 88 ------------------- nfs-utils-2.5.4.tar.xz | 3 - nfs-utils-2.6.1.tar.xz | 3 + nfs-utils.changes | 9 ++ nfs-utils.spec | 6 +- 6 files changed, 14 insertions(+), 126 deletions(-) delete mode 100644 0001-gssd-fix-crash-in-debug-message.patch delete mode 100644 Add-disable-sbin-override-for-when-sbin-is-a-symlink.patch delete mode 100644 nfs-utils-2.5.4.tar.xz create mode 100644 nfs-utils-2.6.1.tar.xz diff --git a/0001-gssd-fix-crash-in-debug-message.patch b/0001-gssd-fix-crash-in-debug-message.patch deleted file mode 100644 index 8b2d86b..0000000 --- a/0001-gssd-fix-crash-in-debug-message.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 68c9ba2473d44d19795c5f81906852aef5a1500a Mon Sep 17 00:00:00 2001 -From: NeilBrown -Date: Thu, 9 Sep 2021 15:37:03 +1000 -Subject: [PATCH] gssd: fix crash in debug message. - -A recent cleanup of debug messages added func and tid format specifiers -to a debug message (when full hostname was different), but the func name -and tid were NOT added as arguments. - -Consequently there weren't enough args, random bytes of the stack were -interpreted as a pointer, and rpc.gssd crashed (when -v was specified). - -Fixes: b538862a5135 ("gssd: Cleaned up debug messages") -Signed-off-by: NeilBrown ---- - utils/gssd/krb5_util.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - ---- a/utils/gssd/krb5_util.c -+++ b/utils/gssd/krb5_util.c -@@ -673,8 +673,8 @@ get_full_hostname(const char *inhost, ch - *c = tolower(*c); - - if (get_verbosity() && strcmp(inhost, outhost)) -- printerr(1, "%s(0x%0lx): inhost '%s' different than outhost'%s'\n", -- inhost, outhost); -+ printerr(1, "%s(0x%0lx): inhost '%s' different than outhost '%s'\n", -+ __func__, tid, inhost, outhost); - - retval = 0; - out: diff --git a/Add-disable-sbin-override-for-when-sbin-is-a-symlink.patch b/Add-disable-sbin-override-for-when-sbin-is-a-symlink.patch deleted file mode 100644 index df4686c..0000000 --- a/Add-disable-sbin-override-for-when-sbin-is-a-symlink.patch +++ /dev/null @@ -1,88 +0,0 @@ -From 49822c2130a2a6e1d5a9e414f5a0726a461d9b00 Mon Sep 17 00:00:00 2001 -From: NeilBrown -Date: Mon, 25 Oct 2021 12:08:46 -0400 -Subject: [PATCH] Add --disable-sbin-override for when /sbin is a symlink - -mount.nfs* umount.nfs* and nfsdcltrack are currently always installed in -/sbin. - -Many distros are moving to a "merged /usr" where /sbin and others are -symlinks into /usr/sbin or similar. In these cases it is inelegant to -install in /sbin (i.e. install through a symlink). - -So we add "--disable-sbin-override" as a configure option. This causes -the same sbindir to be used for *mount.nfs* and nfsdcltrack as for other -system binaries. - -Note that autotools notices if we simply define "sbindir=/sbin" -inside an "if CONFIG_foo" clause, gives a warning, and defeats our -intent. - -So instead, we use the @CONFIG_SBIN_OVERRIDE_TRUE@ prefix to find -the new declaration when we don't want it. - -Signed-off-by: NeilBrown -Signed-off-by: Steve Dickson ---- - configure.ac | 6 ++++++ - utils/mount/Makefile.am | 8 +++++--- - utils/nfsdcltrack/Makefile.am | 9 ++++++--- - 3 files changed, 17 insertions(+), 6 deletions(-) - -diff --git a/configure.ac b/configure.ac -index bc2d0f02979c..93626d62be40 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -187,6 +187,12 @@ else - enable_libmount=no - fi - -+AC_ARG_ENABLE(sbin-override, -+ [AC_HELP_STRING([--disable-sbin-override], -+ [Don't force nfsdcltrack and mount helpers into /sbin: always honour --sbindir])], -+ enable_sbin_override=$enableval, -+ enable_sbin_override=yes) -+ AM_CONDITIONAL(CONFIG_SBIN_OVERRIDE, [test "$enable_sbin_override" = "yes"]) - AC_ARG_ENABLE(junction, - [AC_HELP_STRING([--enable-junction], - [enable support for NFS junctions @<:@default=no@:>@])], -diff --git a/utils/mount/Makefile.am b/utils/mount/Makefile.am -index ad0be93b1def..3101f7abd7f4 100644 ---- a/utils/mount/Makefile.am -+++ b/utils/mount/Makefile.am -@@ -1,8 +1,10 @@ - ## Process this file with automake to produce Makefile.in - --# These binaries go in /sbin (not /usr/sbin), and that cannot be --# overridden at config time. --sbindir = /sbin -+# These binaries go in /sbin (not /usr/sbin), unless CONFIG_SBIN_OVERRIDE -+# is disabled as may be appropriate when /sbin is a symlink. -+# Note that we don't use "if CONFIG_SBIN_OVERRIDE" as that -+# causes autotools to notice the override and disable it. -+@CONFIG_SBIN_OVERRIDE_TRUE@sbindir = /sbin - - man8_MANS = mount.nfs.man umount.nfs.man - man5_MANS = nfs.man -diff --git a/utils/nfsdcltrack/Makefile.am b/utils/nfsdcltrack/Makefile.am -index 2f7fe3de6922..769e4a455fcf 100644 ---- a/utils/nfsdcltrack/Makefile.am -+++ b/utils/nfsdcltrack/Makefile.am -@@ -1,8 +1,11 @@ - ## Process this file with automake to produce Makefile.in - --# These binaries go in /sbin (not /usr/sbin), and that cannot be --# overridden at config time. The kernel "knows" the /sbin name. --sbindir = /sbin -+# These binaries go in /sbin (not /usr/sbin) as the kernel "knows" the -+# /sbin name. If /sbin is a symlink, CONFIG_SBIN_OVERRIDE can be -+# disabled to install in /usr/sbin anyway. -+# Note that we don't use "if CONFIG_SBIN_OVERRIDE" as that -+# causes autotools to notice the override and disable it. -+@CONFIG_SBIN_OVERRIDE_TRUE@sbindir = /sbin - - man8_MANS = nfsdcltrack.man - EXTRA_DIST = $(man8_MANS) --- -2.33.1 - diff --git a/nfs-utils-2.5.4.tar.xz b/nfs-utils-2.5.4.tar.xz deleted file mode 100644 index a61a1cd..0000000 --- a/nfs-utils-2.5.4.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:51997d94e4c8bcef5456dd36a9ccc38e231207c4e9b6a9a2c108841e6aebe3dd -size 703896 diff --git a/nfs-utils-2.6.1.tar.xz b/nfs-utils-2.6.1.tar.xz new file mode 100644 index 0000000..421df1e --- /dev/null +++ b/nfs-utils-2.6.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:60dfcd94a9f3d72a12bc7058d811787ec87a6d593d70da2123faf9aad3d7a1df +size 701232 diff --git a/nfs-utils.changes b/nfs-utils.changes index f9cca78..91bb732 100644 --- a/nfs-utils.changes +++ b/nfs-utils.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Jan 31 07:24:41 UTC 2022 - Petr Vorel + +- Update to version 2.6.1 + - https://kernel.org/pub/linux/utils/nfs-utils/2.6.1/2.6.1-Changelog +- remove patches from this release: + - 0001-gssd-fix-crash-in-debug-message.patch, + - Add-disable-sbin-override-for-when-sbin-is-a-symlink.patch + ------------------------------------------------------------------- Thu Oct 28 12:51:31 UTC 2021 - Callum Farmer diff --git a/nfs-utils.spec b/nfs-utils.spec index d5628a7..d4436b7 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -1,7 +1,7 @@ # # spec file for package nfs-utils # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,7 +22,7 @@ %endif Name: nfs-utils -Version: 2.5.4 +Version: 2.6.1 Release: 0 Summary: Support Utilities for Kernel nfsd License: GPL-2.0-or-later @@ -42,8 +42,6 @@ Source25: rpc-svcgssd.options.conf Source26: nfs.conf Source27: nfs-kernel-server.tmpfiles.conf Patch0: nfs-utils-1.0.7-bind-syntax.patch -Patch1: 0001-gssd-fix-crash-in-debug-message.patch -Patch2: Add-disable-sbin-override-for-when-sbin-is-a-symlink.patch BuildRequires: e2fsprogs-devel BuildRequires: gcc-c++