Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rr/files/, dev-util/rr/
Date: Mon, 13 Feb 2017 21:19:30
Message-Id: 1487020753.8a79f2bc55c8ae6ef33542d262430927e9954099.vapier@gentoo
1 commit: 8a79f2bc55c8ae6ef33542d262430927e9954099
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 13 21:11:47 2017 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 13 21:19:13 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a79f2bc
7
8 dev-util/rr: fix build w/newer glibc
9
10 dev-util/rr/files/rr-4.5.0-sysmacros.patch | 28 ++++++++++++++++++++++++++++
11 dev-util/rr/rr-4.5.0.ebuild | 4 ++++
12 2 files changed, 32 insertions(+)
13
14 diff --git a/dev-util/rr/files/rr-4.5.0-sysmacros.patch b/dev-util/rr/files/rr-4.5.0-sysmacros.patch
15 new file mode 100644
16 index 0000000000..573d595659
17 --- /dev/null
18 +++ b/dev-util/rr/files/rr-4.5.0-sysmacros.patch
19 @@ -0,0 +1,28 @@
20 +https://github.com/mozilla/rr/pull/1981
21 +
22 +From fefdb3b89e98192601dfdc98c8927c9a91f07f9f Mon Sep 17 00:00:00 2001
23 +From: Mike Frysinger <vapier@g.o>
24 +Date: Mon, 13 Feb 2017 16:01:52 -0500
25 +Subject: [PATCH] tests: include sys/sysmacros.h for minor/major funcs
26 +
27 +Newer versions of glibc are deprecating the implicit sys/sysmacros.h
28 +include via sys/types.h, so include it explicitly.
29 +---
30 + src/test/rrutil.h | 1 +
31 + 1 file changed, 1 insertion(+)
32 +
33 +diff --git a/src/test/rrutil.h b/src/test/rrutil.h
34 +index 60de6e47a57b..bb5b527c4c9a 100644
35 +--- a/src/test/rrutil.h
36 ++++ b/src/test/rrutil.h
37 +@@ -76,6 +76,7 @@
38 + #include <sys/socket.h>
39 + #include <sys/stat.h>
40 + #include <sys/sysinfo.h>
41 ++#include <sys/sysmacros.h>
42 + #include <sys/time.h>
43 + #include <sys/timerfd.h>
44 + #include <sys/times.h>
45 +--
46 +2.11.0
47 +
48
49 diff --git a/dev-util/rr/rr-4.5.0.ebuild b/dev-util/rr/rr-4.5.0.ebuild
50 index b83875db0e..f5fa4762e1 100644
51 --- a/dev-util/rr/rr-4.5.0.ebuild
52 +++ b/dev-util/rr/rr-4.5.0.ebuild
53 @@ -29,6 +29,10 @@ DEPEND+="
54 )
55 ${PYTHON_DEPS}"
56
57 +PATCHES=(
58 + "${FILESDIR}"/${P}-sysmacros.patch
59 +)
60 +
61 pkg_setup() {
62 if use kernel_linux; then
63 CONFIG_CHECK="SECCOMP"