1 |
commit: 9a411b7e48bcb41eeaeb1b2a99c2d2596c1f2e7c |
2 |
Author: Craig Andrews <candrews <AT> integralblue <DOT> com> |
3 |
AuthorDate: Wed Dec 21 01:25:04 2016 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 29 13:12:50 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a411b7e |
7 |
|
8 |
net-analyzer/netdata-1.4.0-r1: fix build w/newer glibc |
9 |
|
10 |
Gentoo-bug: 603182 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/3192 |
12 |
|
13 |
.../files/netdata-1.4.0-glibc-sysmacros.patch | 21 +++++++++++++++++++++ |
14 |
net-analyzer/netdata/netdata-1.4.0-r1.ebuild | 4 ++++ |
15 |
2 files changed, 25 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/netdata/files/netdata-1.4.0-glibc-sysmacros.patch b/net-analyzer/netdata/files/netdata-1.4.0-glibc-sysmacros.patch |
18 |
new file mode 100644 |
19 |
index 00000000..7722af2 |
20 |
--- /dev/null |
21 |
+++ b/net-analyzer/netdata/files/netdata-1.4.0-glibc-sysmacros.patch |
22 |
@@ -0,0 +1,21 @@ |
23 |
+From 471d1b5404cd60ea638450e39554ae2878fd5b0d Mon Sep 17 00:00:00 2001 |
24 |
+From: Costa Tsaousis <costa@××××××××.gr> |
25 |
+Date: Tue, 20 Dec 2016 20:31:24 +0200 |
26 |
+Subject: [PATCH] added sys/sysmacros.h; fixes #1408 |
27 |
+ |
28 |
+--- |
29 |
+ src/common.h | 1 + |
30 |
+ 1 file changed, 1 insertion(+) |
31 |
+ |
32 |
+diff --git a/src/common.h b/src/common.h |
33 |
+index c92c049..70cb4d6 100644 |
34 |
+--- a/src/common.h |
35 |
++++ b/src/common.h |
36 |
+@@ -64,6 +64,7 @@ |
37 |
+ #include <sys/syscall.h> |
38 |
+ #include <sys/time.h> |
39 |
+ #include <sys/types.h> |
40 |
++#include <sys/sysmacros.h> // #1408 |
41 |
+ #include <sys/wait.h> |
42 |
+ #include <time.h> |
43 |
+ #include <unistd.h> |
44 |
|
45 |
diff --git a/net-analyzer/netdata/netdata-1.4.0-r1.ebuild b/net-analyzer/netdata/netdata-1.4.0-r1.ebuild |
46 |
index e2a78bc..e51f185 100644 |
47 |
--- a/net-analyzer/netdata/netdata-1.4.0-r1.ebuild |
48 |
+++ b/net-analyzer/netdata/netdata-1.4.0-r1.ebuild |
49 |
@@ -62,6 +62,10 @@ FILECAPS=( |
50 |
'cap_dac_read_search,cap_sys_ptrace+ep' 'usr/libexec/netdata/plugins.d/apps.plugin' |
51 |
) |
52 |
|
53 |
+PATCHES=( |
54 |
+ "${FILESDIR}"/${P}-glibc-sysmacros.patch |
55 |
+) |
56 |
+ |
57 |
pkg_setup() { |
58 |
linux-info_pkg_setup |