From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/mtd-utils/files/, sys-fs/mtd-utils/
Date: Sun, 17 Apr 2016 02:20:30 +0000 (UTC) [thread overview]
Message-ID: <1460859462.0194567625da237b25ff55bdc95190592a690962.vapier@gentoo> (raw)
commit: 0194567625da237b25ff55bdc95190592a690962
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 17 02:14:51 2016 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun Apr 17 02:17:42 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01945676
sys-fs/mtd-utils: fix building w/newer glibc #580206
.../files/mtd-utils-1.5.2-sysmacros.patch | 32 ++++++++++++++++++++++
sys-fs/mtd-utils/mtd-utils-1.5.2.ebuild | 4 +++
2 files changed, 36 insertions(+)
diff --git a/sys-fs/mtd-utils/files/mtd-utils-1.5.2-sysmacros.patch b/sys-fs/mtd-utils/files/mtd-utils-1.5.2-sysmacros.patch
new file mode 100644
index 0000000..5fc055d
--- /dev/null
+++ b/sys-fs/mtd-utils/files/mtd-utils-1.5.2-sysmacros.patch
@@ -0,0 +1,32 @@
+https://bugs.gentoo.org/580206
+
+From 9a06f45ec71116d76ee4b268ebe1b33d45b06fc0 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Sat, 16 Apr 2016 22:10:43 -0400
+Subject: [PATCH mtd-utils] include sys/sysmacros.h for major/minor/makedev
+
+These functions have always been defined in sys/sysmacros.h under
+Linux C libraries. For some, including sys/types.h implicitly
+includes that as well, but glibc wants to deprecate that, and some
+others already have. Include the header explicitly for the funcs.
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ include/common.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/common.h b/include/common.h
+index fb0ca83..8cb3142 100644
+--- a/include/common.h
++++ b/include/common.h
+@@ -28,6 +28,7 @@
+ #include <errno.h>
+ #include <features.h>
+ #include <inttypes.h>
++#include <sys/sysmacros.h>
+ #include "version.h"
+
+ #ifndef PROGRAM_NAME
+--
+2.7.4
+
diff --git a/sys-fs/mtd-utils/mtd-utils-1.5.2.ebuild b/sys-fs/mtd-utils/mtd-utils-1.5.2.ebuild
index 26c0a62..176261d 100644
--- a/sys-fs/mtd-utils/mtd-utils-1.5.2.ebuild
+++ b/sys-fs/mtd-utils/mtd-utils-1.5.2.ebuild
@@ -40,6 +40,10 @@ RDEPEND="!sys-fs/mtd
DEPEND="${RDEPEND}
xattr? ( sys-apps/acl )"
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-sysmacros.patch #580206
+}
+
makeopts() {
# These affect build output, so keep it common between compile & install.
echo CROSS=${CHOST}- V=1
next reply other threads:[~2016-04-17 2:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-17 2:20 Mike Frysinger [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-01-23 10:43 [gentoo-commits] repo/gentoo:master commit in: sys-fs/mtd-utils/files/, sys-fs/mtd-utils/ David Seifert
2022-08-22 8:18 Jakov Smolić
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=1460859462.0194567625da237b25ff55bdc95190592a690962.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