commit:     d4ba6009f6a27fbc13de33957ee145dd5f1351dd
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 19 06:50:02 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Apr 19 06:50:02 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4ba6009

app-benchmarks/ioping: fix build w/newer glibc #579982

 .../ioping/files/ioping-0.9-sysmacros.patch        | 29 ++++++++++++++++++++++
 app-benchmarks/ioping/ioping-0.9.ebuild            |  1 +
 2 files changed, 30 insertions(+)

diff --git a/app-benchmarks/ioping/files/ioping-0.9-sysmacros.patch 
b/app-benchmarks/ioping/files/ioping-0.9-sysmacros.patch
new file mode 100644
index 0000000..837d395
--- /dev/null
+++ b/app-benchmarks/ioping/files/ioping-0.9-sysmacros.patch
@@ -0,0 +1,29 @@
+https://bugs.gentoo.org/579982
+
+From c56a8a442e79a8837074e0e573f6319efa492ba8 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <[email protected]>
+Date: Tue, 19 Apr 2016 02:44:33 -0400
+Subject: [PATCH] ioping: include sys/sysmacros.h for makedev
+
+The makedev prototype is in sys/sysmacros.h, so include it.
+
+Signed-off-by: Mike Frysinger <[email protected]>
+---
+ ioping.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/ioping.c b/ioping.c
+index aae4704..80f4bb4 100644
+--- a/ioping.c
++++ b/ioping.c
+@@ -48,6 +48,7 @@
+ #ifdef __linux__
+ # include <sys/ioctl.h>
+ # include <sys/mount.h>
++# include <sys/sysmacros.h>
+ # define HAVE_POSIX_FADVICE
+ # define HAVE_POSIX_MEMALIGN
+ # define HAVE_DIRECT_IO
+-- 
+2.7.4
+

diff --git a/app-benchmarks/ioping/ioping-0.9.ebuild 
b/app-benchmarks/ioping/ioping-0.9.ebuild
index b6079a3..ee40cf8 100644
--- a/app-benchmarks/ioping/ioping-0.9.ebuild
+++ b/app-benchmarks/ioping/ioping-0.9.ebuild
@@ -16,6 +16,7 @@ LICENSE="GPL-3"
 IUSE=""
 
 src_prepare() {
+       epatch "${FILESDIR}"/${P}-sysmacros.patch #579982
        sed \
                -e 's: -g : :g' \
                -e 's: $(LDFLAGS) : :g' \

Reply via email to