Skip to content

Commit

Permalink
app-benchmarks/bootchart2: fix build w/newer glibc #579922
Browse files Browse the repository at this point in the history
  • Loading branch information
vapier committed Apr 21, 2016
1 parent 39a50ac commit 8bea3f7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-benchmarks/bootchart2/bootchart2-0.14.7-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ S="${WORKDIR}"/${PN%2}-${PV}
CONFIG_CHECK="~PROC_EVENTS ~TASKSTATS ~TASK_DELAY_ACCT ~TMPFS"

src_prepare() {
epatch "${FILESDIR}"/${P}-sysmacros.patch #579922
tc-export CC
sed \
-e "/^install/s:py-install-compile::g" \
Expand Down
29 changes: 29 additions & 0 deletions app-benchmarks/bootchart2/files/bootchart2-0.14.7-sysmacros.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
https://bugs.gentoo.org/579922

From add58c3b57064afd6f7d2fd5f09006d28a3e770e Mon Sep 17 00:00:00 2001
From: Mike Frysinger <[email protected]>
Date: Thu, 21 Apr 2016 00:19:32 -0400
Subject: [PATCH] include sys/sysmacros.h for major/minor/makedev

These funcs are defined in the sys/sysmacros.h header, not sys/types.h.
Linux C libraries are updating to drop the implicit include, so we need
to include it explicitly.
---
collector/collector.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/collector/collector.c b/collector/collector.c
index cfdcb26..2f3ce6b 100644
--- a/collector/collector.c
+++ b/collector/collector.c
@@ -33,6 +33,7 @@
#include "common.h"

#include <sys/mount.h>
+#include <sys/sysmacros.h>
#include <linux/fs.h>
#include <linux/genetlink.h>
#include <linux/taskstats.h>
--
2.7.4

0 comments on commit 8bea3f7

Please sign in to comment.