Accepting request 960295 from Base:System
- add reenable-nfsv2.patch for reverting nfsv2 deprecation until test coverage is fixed (poo#106679) - Add gcc12-fix.patch upstream fix for GCC 12 compiler. - 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/960295 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=168
This commit is contained in:
commit
416e933f87
@ -1,31 +0,0 @@
|
|||||||
From 68c9ba2473d44d19795c5f81906852aef5a1500a Mon Sep 17 00:00:00 2001
|
|
||||||
From: NeilBrown <neilb@suse.de>
|
|
||||||
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 <neilb@suse.de>
|
|
||||||
---
|
|
||||||
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:
|
|
@ -1,88 +0,0 @@
|
|||||||
From 49822c2130a2a6e1d5a9e414f5a0726a461d9b00 Mon Sep 17 00:00:00 2001
|
|
||||||
From: NeilBrown <neilb@suse.de>
|
|
||||||
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 <neilb@suse.de>
|
|
||||||
Signed-off-by: Steve Dickson <steved@redhat.com>
|
|
||||||
---
|
|
||||||
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
|
|
||||||
|
|
36
gcc12-fix.patch
Normal file
36
gcc12-fix.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
From 7f8463fe702174bd613df9d308cc899af25ae02e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Steve Dickson <steved@redhat.com>
|
||||||
|
Date: Wed, 23 Feb 2022 15:19:51 -0500
|
||||||
|
Subject: [PATCH] systemd: Fix format-overflow warning
|
||||||
|
|
||||||
|
rpc-pipefs-generator.c:35:23: error: '%s' directive output between 0 and 2147483653 bytes may exceed minimum required size of 4095 [-Werror=format-overflow=]
|
||||||
|
35 | sprintf(path, "%s/%s", dirname, pipefs_unit);
|
||||||
|
| ^
|
||||||
|
|
||||||
|
Signed-off-by: Steve Dickson <steved@redhat.com>
|
||||||
|
---
|
||||||
|
systemd/rpc-pipefs-generator.c | 5 +++--
|
||||||
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/systemd/rpc-pipefs-generator.c b/systemd/rpc-pipefs-generator.c
|
||||||
|
index c24db56..7b2bb4f 100644
|
||||||
|
--- a/systemd/rpc-pipefs-generator.c
|
||||||
|
+++ b/systemd/rpc-pipefs-generator.c
|
||||||
|
@@ -28,11 +28,12 @@ static int generate_mount_unit(const char *pipefs_path, const char *pipefs_unit,
|
||||||
|
{
|
||||||
|
char *path;
|
||||||
|
FILE *f;
|
||||||
|
+ size_t size = (strlen(dirname) + 1 + strlen(pipefs_unit));
|
||||||
|
|
||||||
|
- path = malloc(strlen(dirname) + 1 + strlen(pipefs_unit));
|
||||||
|
+ path = malloc(size);
|
||||||
|
if (!path)
|
||||||
|
return 1;
|
||||||
|
- sprintf(path, "%s/%s", dirname, pipefs_unit);
|
||||||
|
+ snprintf(path, size, "%s/%s", dirname, pipefs_unit);
|
||||||
|
f = fopen(path, "w");
|
||||||
|
if (!f)
|
||||||
|
{
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:51997d94e4c8bcef5456dd36a9ccc38e231207c4e9b6a9a2c108841e6aebe3dd
|
|
||||||
size 703896
|
|
3
nfs-utils-2.6.1.tar.xz
Normal file
3
nfs-utils-2.6.1.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:60dfcd94a9f3d72a12bc7058d811787ec87a6d593d70da2123faf9aad3d7a1df
|
||||||
|
size 701232
|
@ -1,3 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 8 20:58:54 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add reenable-nfsv2.patch for reverting nfsv2 deprecation until
|
||||||
|
test coverage is fixed (poo#106679)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 3 10:08:47 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
- Add gcc12-fix.patch upstream fix for GCC 12 compiler.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 31 07:24:41 UTC 2022 - Petr Vorel <pvorel@suse.cz>
|
||||||
|
|
||||||
|
- 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 <gmbr3@opensuse.org>
|
Thu Oct 28 12:51:31 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package nfs-utils
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -22,7 +22,7 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: nfs-utils
|
Name: nfs-utils
|
||||||
Version: 2.5.4
|
Version: 2.6.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Support Utilities for Kernel nfsd
|
Summary: Support Utilities for Kernel nfsd
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
@ -42,9 +42,8 @@ Source25: rpc-svcgssd.options.conf
|
|||||||
Source26: nfs.conf
|
Source26: nfs.conf
|
||||||
Source27: nfs-kernel-server.tmpfiles.conf
|
Source27: nfs-kernel-server.tmpfiles.conf
|
||||||
Patch0: nfs-utils-1.0.7-bind-syntax.patch
|
Patch0: nfs-utils-1.0.7-bind-syntax.patch
|
||||||
Patch1: 0001-gssd-fix-crash-in-debug-message.patch
|
Patch1: gcc12-fix.patch
|
||||||
Patch2: Add-disable-sbin-override-for-when-sbin-is-a-symlink.patch
|
Patch2: reenable-nfsv2.patch
|
||||||
|
|
||||||
BuildRequires: e2fsprogs-devel
|
BuildRequires: e2fsprogs-devel
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
60
reenable-nfsv2.patch
Normal file
60
reenable-nfsv2.patch
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
This reverts https://git.kernel.org/pub/scm/linux/kernel/git/rw/nfs-utils.git/commit/?id=2c2c36c59fa1de2ff7fd28917e54700ecb39b730
|
||||||
|
and https://git.kernel.org/pub/scm/linux/kernel/git/rw/nfs-utils.git/commit/?id=2c2c36c59fa1de2ff7fd28917e54700ecb39b730
|
||||||
|
|
||||||
|
as openqa is still testing NFSv2
|
||||||
|
see https://progress.opensuse.org/issues/106679
|
||||||
|
|
||||||
|
--- nfs-utils-2.6.1.orig/utils/mount/configfile.c
|
||||||
|
+++ nfs-utils-2.6.1/utils/mount/configfile.c
|
||||||
|
@@ -71,7 +71,7 @@ struct mnt_alias {
|
||||||
|
int mnt_alias_sz = (sizeof(mnt_alias_tab)/sizeof(mnt_alias_tab[0]));
|
||||||
|
|
||||||
|
static const char *version_keys[] = {
|
||||||
|
- "v3", "v4", "vers", "nfsvers", "minorversion", NULL
|
||||||
|
+ "v2", "v3", "v4", "vers", "nfsvers", "minorversion", NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
static int strict;
|
||||||
|
--- nfs-utils-2.6.1.orig/utils/mount/stropts.c
|
||||||
|
+++ nfs-utils-2.6.1/utils/mount/stropts.c
|
||||||
|
@@ -1017,6 +1017,7 @@ static int nfs_try_mount(struct nfsmount
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (mi->version.major) {
|
||||||
|
+ case 2:
|
||||||
|
case 3:
|
||||||
|
result = nfs_try_mount_v3v2(mi, FALSE);
|
||||||
|
break;
|
||||||
|
@@ -1247,14 +1248,6 @@ static int nfsmount_start(struct nfsmoun
|
||||||
|
if (!nfs_validate_options(mi))
|
||||||
|
return EX_FAIL;
|
||||||
|
|
||||||
|
- /*
|
||||||
|
- * NFS v2 has been deprecated
|
||||||
|
- */
|
||||||
|
- if (mi->version.major == 2) {
|
||||||
|
- mount_error(mi->spec, mi->node, EOPNOTSUPP);
|
||||||
|
- return EX_FAIL;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
/*
|
||||||
|
* Avoid retry and negotiation logic when remounting
|
||||||
|
*/
|
||||||
|
--- nfs-utils-2.6.1.orig/utils/nfsd/nfsd.c
|
||||||
|
+++ nfs-utils-2.6.1/utils/nfsd/nfsd.c
|
||||||
|
@@ -226,6 +226,7 @@ main(int argc, char **argv)
|
||||||
|
}
|
||||||
|
/* FALLTHRU */
|
||||||
|
case 3:
|
||||||
|
+ case 2:
|
||||||
|
NFSCTL_VERUNSET(versbits, c);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
@@ -250,6 +251,7 @@ main(int argc, char **argv)
|
||||||
|
minorvers = minorversset = minormask;
|
||||||
|
/* FALLTHRU */
|
||||||
|
case 3:
|
||||||
|
+ case 2:
|
||||||
|
NFSCTL_VERSET(versbits, c);
|
||||||
|
break;
|
||||||
|
default:
|
Loading…
x
Reference in New Issue
Block a user