From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/nfs-utils/, net-fs/nfs-utils/files/
Date: Thu, 14 Apr 2016 04:03:32 +0000 (UTC) [thread overview]
Message-ID: <1460606592.6db2e20c272323a10ea3afe3741f8c282bfa2d6a.vapier@gentoo> (raw)
commit: 6db2e20c272323a10ea3afe3741f8c282bfa2d6a
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 14 04:03:07 2016 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Apr 14 04:03:12 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6db2e20c
net-fs/nfs-utils: fix building w/newer glibc #579884
.../files/nfs-utils-1.3.3-sysmacros.patch | 78 ++++++++++++++++++++++
net-fs/nfs-utils/nfs-utils-1.3.3.ebuild | 1 +
2 files changed, 79 insertions(+)
diff --git a/net-fs/nfs-utils/files/nfs-utils-1.3.3-sysmacros.patch b/net-fs/nfs-utils/files/nfs-utils-1.3.3-sysmacros.patch
new file mode 100644
index 0000000..6384425
--- /dev/null
+++ b/net-fs/nfs-utils/files/nfs-utils-1.3.3-sysmacros.patch
@@ -0,0 +1,78 @@
+From 187f0e8298a3dd405b5aa817df129198d6f66eeb Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Thu, 14 Apr 2016 00:01:05 -0400
+Subject: [PATCH nfs-utils] fix building w/newer C libraries
+
+Linux C libraries are moving away from implicitly including the header
+sys/sysmacros.h via sys/types.h. We would like to do this for glibc
+now, but others (musl/etc...) have been doing it already. This means
+any code using major/minor/makedevs functions will fail to build when
+they don't include that header.
+
+Leverage the AC_HEADER_MAJOR macro that configure is already using to
+pull in the right header.
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ support/include/xcommon.h | 6 ++++++
+ support/nfs/nfsexport.c | 1 +
+ utils/blkmapd/device-discovery.c | 1 +
+ utils/mountd/cache.c | 1 +
+ 4 files changed, 9 insertions(+)
+
+diff --git a/support/include/xcommon.h b/support/include/xcommon.h
+index d1a4b18..23c9a13 100644
+--- a/support/include/xcommon.h
++++ b/support/include/xcommon.h
+@@ -17,6 +17,12 @@
+ #include <stdlib.h>
+ #include <string.h>
+
++#ifdef MAJOR_IN_MKDEV
++#include <sys/mkdev.h>
++#elif defined(MAJOR_IN_SYSMACROS)
++#include <sys/sysmacros.h>
++#endif
++
+ #define streq(s, t) (strcmp ((s), (t)) == 0)
+
+ /* Functions in sundries.c that are used in mount.c and umount.c */
+diff --git a/support/nfs/nfsexport.c b/support/nfs/nfsexport.c
+index afd7c90..4b13265 100644
+--- a/support/nfs/nfsexport.c
++++ b/support/nfs/nfsexport.c
+@@ -19,6 +19,7 @@
+
+ #include "nfslib.h"
+ #include "misc.h"
++#include "xcommon.h"
+
+ /* if /proc/net/rpc/... exists, then
+ * write to it, as that interface is more stable.
+diff --git a/utils/blkmapd/device-discovery.c b/utils/blkmapd/device-discovery.c
+index b010628..052d582 100644
+--- a/utils/blkmapd/device-discovery.c
++++ b/utils/blkmapd/device-discovery.c
+@@ -51,6 +51,7 @@
+ #include <libdevmapper.h>
+
+ #include "device-discovery.h"
++#include "xcommon.h"
+
+ #define EVENT_SIZE (sizeof(struct inotify_event))
+ #define EVENT_BUFSIZE (1024 * EVENT_SIZE)
+diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
+index 7847446..ec86a22 100644
+--- a/utils/mountd/cache.c
++++ b/utils/mountd/cache.c
+@@ -31,6 +31,7 @@
+ #include "mountd.h"
+ #include "fsloc.h"
+ #include "pseudoflavors.h"
++#include "xcommon.h"
+
+ #ifdef USE_BLKID
+ #include "blkid/blkid.h"
+--
+2.7.4
+
diff --git a/net-fs/nfs-utils/nfs-utils-1.3.3.ebuild b/net-fs/nfs-utils/nfs-utils-1.3.3.ebuild
index 06740c3..f7f8aa3 100644
--- a/net-fs/nfs-utils/nfs-utils-1.3.3.ebuild
+++ b/net-fs/nfs-utils/nfs-utils-1.3.3.ebuild
@@ -58,6 +58,7 @@ DEPEND="${DEPEND_COMMON}
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
epatch "${FILESDIR}"/${PN}-1.2.8-cross-build.patch
+ epatch "${FILESDIR}"/${PN}-1.3.3-sysmacros.patch #579884
sed \
-e "/^sbindir/s:= := \"${EPREFIX}\":g" \
next reply other threads:[~2016-04-14 4:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-14 4:03 Mike Frysinger [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-02-11 11:40 [gentoo-commits] repo/gentoo:master commit in: net-fs/nfs-utils/, net-fs/nfs-utils/files/ Lars Wendler
2019-01-18 15:37 Lars Wendler
2019-04-20 18:34 Lars Wendler
2019-08-11 22:09 Matt Turner
2019-09-28 14:53 Thomas Deutschmann
2019-11-16 13:06 Lars Wendler
2019-11-20 12:55 Thomas Deutschmann
2020-10-22 17:49 Lars Wendler
2021-04-11 15:49 David Seifert
2024-01-19 5:39 Sam James
2024-01-23 11:57 David Seifert
2024-02-26 16:44 Mike Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1460606592.6db2e20c272323a10ea3afe3741f8c282bfa2d6a.vapier@gentoo \
--to=vapier@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox