dev-util/rr: fix build w/newer glibc
authorMike Frysinger <vapier@gentoo.org>
Mon, 13 Feb 2017 21:11:47 +0000 (16:11 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 13 Feb 2017 21:19:13 +0000 (16:19 -0500)
dev-util/rr/files/rr-4.5.0-sysmacros.patch [new file with mode: 0644]
dev-util/rr/rr-4.5.0.ebuild

diff --git a/dev-util/rr/files/rr-4.5.0-sysmacros.patch b/dev-util/rr/files/rr-4.5.0-sysmacros.patch
new file mode 100644 (file)
index 0000000..573d595
--- /dev/null
@@ -0,0 +1,28 @@
+https://github.com/mozilla/rr/pull/1981
+
+From fefdb3b89e98192601dfdc98c8927c9a91f07f9f Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Mon, 13 Feb 2017 16:01:52 -0500
+Subject: [PATCH] tests: include sys/sysmacros.h for minor/major funcs
+
+Newer versions of glibc are deprecating the implicit sys/sysmacros.h
+include via sys/types.h, so include it explicitly.
+---
+ src/test/rrutil.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/test/rrutil.h b/src/test/rrutil.h
+index 60de6e47a57b..bb5b527c4c9a 100644
+--- a/src/test/rrutil.h
++++ b/src/test/rrutil.h
+@@ -76,6 +76,7 @@
+ #include <sys/socket.h>
+ #include <sys/stat.h>
+ #include <sys/sysinfo.h>
++#include <sys/sysmacros.h>
+ #include <sys/time.h>
+ #include <sys/timerfd.h>
+ #include <sys/times.h>
+-- 
+2.11.0
+
index b83875db0e0a91be23d3b4cf9f6cd1addeb38549..f5fa4762e1a82197f12f2e50b486c8db1ad68de0 100644 (file)
@@ -29,6 +29,10 @@ DEPEND+="
        )
        ${PYTHON_DEPS}"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-sysmacros.patch
+)
+
 pkg_setup() {
        if use kernel_linux; then
                CONFIG_CHECK="SECCOMP"