summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-10-21 07:57:23 +0200
committerHans de Graaff <graaff@gentoo.org>2017-10-21 07:58:57 +0200
commit533d83ca2219d4a5ab8a6055db0a2517baf4a7b5 (patch)
tree920be3fd1933d2f66904ef6e2c3b95ab65845cd0 /dev-ruby/sigar
parentdev-perl/File-BaseDir: Prevent XDG_CONFIG_HOME breaking tests bug #624028 (diff)
downloadgentoo-533d83ca2219d4a5ab8a6055db0a2517baf4a7b5.tar.gz
gentoo-533d83ca2219d4a5ab8a6055db0a2517baf4a7b5.tar.bz2
gentoo-533d83ca2219d4a5ab8a6055db0a2517baf4a7b5.zip
dev-ruby/sigar: fix compilation issues, bug 581138
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-ruby/sigar')
-rw-r--r--dev-ruby/sigar/sigar-0.7.3.ebuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/dev-ruby/sigar/sigar-0.7.3.ebuild b/dev-ruby/sigar/sigar-0.7.3.ebuild
index 724cfd327d53..2dc9e6cb9b7b 100644
--- a/dev-ruby/sigar/sigar-0.7.3.ebuild
+++ b/dev-ruby/sigar/sigar-0.7.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -20,6 +20,10 @@ IUSE=""
all_ruby_prepare() {
sed -i -e '25i$CFLAGS += " -std=gnu89"' bindings/ruby/extconf.rb || die
+
+ # Fix compatibility with glibc 2.25
+ sed -i -e '26i#include <sys/sysmacros.h>' \
+ -e '27i#include <ctype.h>' bindings/ruby/rbsigar.c || die
}
each_ruby_configure() {