commit:     c38258f864e03a8d09402f3b484c789a857e665d
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 29 11:01:57 2024 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Jan 29 11:01:57 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c38258f8

net-fs/nfs-utils: fix C99 inline semantics

Closes: https://bugs.gentoo.org/922958
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../files/nfs-utils-2.6.4-C99-inline.patch         | 26 ++++++++++++++++++++++
 net-fs/nfs-utils/nfs-utils-2.6.4-r3.ebuild         |  1 +
 2 files changed, 27 insertions(+)

diff --git a/net-fs/nfs-utils/files/nfs-utils-2.6.4-C99-inline.patch 
b/net-fs/nfs-utils/files/nfs-utils-2.6.4-C99-inline.patch
new file mode 100644
index 000000000000..2797249523f6
--- /dev/null
+++ b/net-fs/nfs-utils/files/nfs-utils-2.6.4-C99-inline.patch
@@ -0,0 +1,26 @@
+C99 `inline` is not guaranteed to emit an external definition
+https://www.greenend.org.uk/rjk/tech/inline.html
+Bug: https://bugs.gentoo.org/922958
+
+--- a/utils/exportd/exportd.c
++++ b/utils/exportd/exportd.c
+@@ -53,7 +53,7 @@
+  */
+ inline static void set_signals(void);
+ 
+-inline void
++inline static void
+ cleanup_lockfiles (void)
+ {
+       unlink(etab.lockfn);
+--- a/utils/mountd/mountd.c
++++ b/utils/mountd/mountd.c
+@@ -111,7 +111,7 @@
+       nfs_svc_unregister(MOUNTPROG, MOUNTVERS_NFSV3);
+ }
+ 
+-static void
++inline static void
+ cleanup_lockfiles (void)
+ {
+       unlink(etab.lockfn);

diff --git a/net-fs/nfs-utils/nfs-utils-2.6.4-r3.ebuild 
b/net-fs/nfs-utils/nfs-utils-2.6.4-r3.ebuild
index 993fead7ae7c..1a00c46a24df 100644
--- a/net-fs/nfs-utils/nfs-utils-2.6.4-r3.ebuild
+++ b/net-fs/nfs-utils/nfs-utils-2.6.4-r3.ebuild
@@ -73,6 +73,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-2.5.2-no-werror.patch
        "${FILESDIR}"/${PN}-udev-sysctl.patch
        "${FILESDIR}"/${P}-includes.patch
+       "${FILESDIR}"/${P}-C99-inline.patch
 )
 
 pkg_setup() {

Reply via email to