1 |
commit: 151c446a8906e7489de10ae2e66642a142e5509c |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 30 16:17:50 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 30 16:18:41 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=151c446a |
7 |
|
8 |
net-fs/nfs-utils: Revbump to fix issue with old kernels and statx |
9 |
|
10 |
Bumped straight to stable as this seems to affect many users. |
11 |
|
12 |
Thanks-to: Andreas Steinmetz <ast <AT> domdv.de> |
13 |
Tested-by: Lars Langhans <lars.langhans <AT> gmx.de> |
14 |
Tested-by: Brian Evans <grknight <AT> gentoo.org> |
15 |
Bug: https://bugs.gentoo.org/688644 |
16 |
Package-Manager: Portage-2.3.78, Repoman-2.3.17 |
17 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
18 |
|
19 |
net-fs/nfs-utils/files/nfs-utils-2.4.1-statx.patch | 31 ++++++++++++++++++++++ |
20 |
...s-2.4.1-r2.ebuild => nfs-utils-2.4.1-r3.ebuild} | 1 + |
21 |
2 files changed, 32 insertions(+) |
22 |
|
23 |
diff --git a/net-fs/nfs-utils/files/nfs-utils-2.4.1-statx.patch b/net-fs/nfs-utils/files/nfs-utils-2.4.1-statx.patch |
24 |
new file mode 100644 |
25 |
index 00000000000..7515a819915 |
26 |
--- /dev/null |
27 |
+++ b/net-fs/nfs-utils/files/nfs-utils-2.4.1-statx.patch |
28 |
@@ -0,0 +1,31 @@ |
29 |
+From c8953944c5d34095d42f604f911022fbe144918c Mon Sep 17 00:00:00 2001 |
30 |
+From: Andreas Steinmetz <ast@×××××.de> |
31 |
+Date: Wed, 30 Oct 2019 16:57:00 +0100 |
32 |
+Subject: [PATCH] Old kernels don't know statx calls and return EINVAL |
33 |
+ |
34 |
+On a system with glibc-2.29 and kernel 4.9.128 nfs v3 mount fails as |
35 |
+statx() with mask=STATX_BASIC_STATS returns EINVAL, probably from |
36 |
+glibc, as strace of rpc.mountd shows no system call. |
37 |
+ |
38 |
+Fixes: https://bugs.gentoo.org/688644 |
39 |
+Signed-off-by: Lars Wendler <polynomial-c@g.o> |
40 |
+--- |
41 |
+ support/misc/xstat.c | 2 ++ |
42 |
+ 1 file changed, 2 insertions(+) |
43 |
+ |
44 |
+diff --git a/support/misc/xstat.c b/support/misc/xstat.c |
45 |
+index fa047880..6aca6e29 100644 |
46 |
+--- a/support/misc/xstat.c |
47 |
++++ b/support/misc/xstat.c |
48 |
+@@ -47,6 +47,8 @@ statx_do_stat(int fd, const char *pathname, struct stat *statbuf, int flags) |
49 |
+ statx_copy(statbuf, &stxbuf); |
50 |
+ return 0; |
51 |
+ } |
52 |
++ if (errno == EINVAL) |
53 |
++ errno = ENOSYS; |
54 |
+ if (errno == ENOSYS) |
55 |
+ statx_supported = 0; |
56 |
+ } else |
57 |
+-- |
58 |
+2.24.0.rc1 |
59 |
+ |
60 |
|
61 |
diff --git a/net-fs/nfs-utils/nfs-utils-2.4.1-r2.ebuild b/net-fs/nfs-utils/nfs-utils-2.4.1-r3.ebuild |
62 |
similarity index 99% |
63 |
rename from net-fs/nfs-utils/nfs-utils-2.4.1-r2.ebuild |
64 |
rename to net-fs/nfs-utils/nfs-utils-2.4.1-r3.ebuild |
65 |
index 26c3bbb3348..24e426f2374 100644 |
66 |
--- a/net-fs/nfs-utils/nfs-utils-2.4.1-r2.ebuild |
67 |
+++ b/net-fs/nfs-utils/nfs-utils-2.4.1-r3.ebuild |
68 |
@@ -69,6 +69,7 @@ PATCHES=( |
69 |
"${FILESDIR}"/${PN}-2.3.4-no-werror.patch |
70 |
"${FILESDIR}"/${P}-gssd-Look-in-lib32-for-gss-libs-aswell.patch |
71 |
"${FILESDIR}"/${P}-Fix-include-order-between-config.h-and-stat.h.patch |
72 |
+ "${FILESDIR}"/${PN}-2.4.1-statx.patch #688644 |
73 |
) |
74 |
|
75 |
pkg_setup() { |