commit:     9a411b7e48bcb41eeaeb1b2a99c2d2596c1f2e7c
Author:     Craig Andrews <candrews <AT> integralblue <DOT> com>
AuthorDate: Wed Dec 21 01:25:04 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Dec 29 13:12:50 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a411b7e

net-analyzer/netdata-1.4.0-r1: fix build w/newer glibc

Gentoo-bug: 603182
Closes: https://github.com/gentoo/gentoo/pull/3192

 .../files/netdata-1.4.0-glibc-sysmacros.patch       | 21 +++++++++++++++++++++
 net-analyzer/netdata/netdata-1.4.0-r1.ebuild        |  4 ++++
 2 files changed, 25 insertions(+)

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
new file mode 100644
index 00000000..7722af2
--- /dev/null
+++ b/net-analyzer/netdata/files/netdata-1.4.0-glibc-sysmacros.patch
@@ -0,0 +1,21 @@
+From 471d1b5404cd60ea638450e39554ae2878fd5b0d Mon Sep 17 00:00:00 2001
+From: Costa Tsaousis <co...@tsaousis.gr>
+Date: Tue, 20 Dec 2016 20:31:24 +0200
+Subject: [PATCH] added sys/sysmacros.h; fixes #1408
+
+---
+ src/common.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/common.h b/src/common.h
+index c92c049..70cb4d6 100644
+--- a/src/common.h
++++ b/src/common.h
+@@ -64,6 +64,7 @@
+ #include <sys/syscall.h>
+ #include <sys/time.h>
+ #include <sys/types.h>
++#include <sys/sysmacros.h> // #1408
+ #include <sys/wait.h>
+ #include <time.h>
+ #include <unistd.h>

diff --git a/net-analyzer/netdata/netdata-1.4.0-r1.ebuild 
b/net-analyzer/netdata/netdata-1.4.0-r1.ebuild
index e2a78bc..e51f185 100644
--- a/net-analyzer/netdata/netdata-1.4.0-r1.ebuild
+++ b/net-analyzer/netdata/netdata-1.4.0-r1.ebuild
@@ -62,6 +62,10 @@ FILECAPS=(
        'cap_dac_read_search,cap_sys_ptrace+ep' 
'usr/libexec/netdata/plugins.d/apps.plugin'
 )
 
+PATCHES=(
+       "${FILESDIR}"/${P}-glibc-sysmacros.patch
+)
+
 pkg_setup() {
        linux-info_pkg_setup
 

Reply via email to