commit: 8a79f2bc55c8ae6ef33542d262430927e9954099 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Mon Feb 13 21:11:47 2017 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Mon Feb 13 21:19:13 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a79f2bc
dev-util/rr: fix build w/newer glibc dev-util/rr/files/rr-4.5.0-sysmacros.patch | 28 ++++++++++++++++++++++++++++ dev-util/rr/rr-4.5.0.ebuild | 4 ++++ 2 files changed, 32 insertions(+) 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 index 0000000000..573d595659 --- /dev/null +++ b/dev-util/rr/files/rr-4.5.0-sysmacros.patch @@ -0,0 +1,28 @@ +https://github.com/mozilla/rr/pull/1981 + +From fefdb3b89e98192601dfdc98c8927c9a91f07f9f Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vap...@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 + diff --git a/dev-util/rr/rr-4.5.0.ebuild b/dev-util/rr/rr-4.5.0.ebuild index b83875db0e..f5fa4762e1 100644 --- a/dev-util/rr/rr-4.5.0.ebuild +++ b/dev-util/rr/rr-4.5.0.ebuild @@ -29,6 +29,10 @@ DEPEND+=" ) ${PYTHON_DEPS}" +PATCHES=( + "${FILESDIR}"/${P}-sysmacros.patch +) + pkg_setup() { if use kernel_linux; then CONFIG_CHECK="SECCOMP"