Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/sigar/
Date: Sat, 17 Feb 2018 07:34:49
Message-Id: 1518852871.4f4564eb181a767bda25ceaf541163e167e6dd00.graaff@gentoo
1 commit: 4f4564eb181a767bda25ceaf541163e167e6dd00
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 17 07:34:31 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 17 07:34:31 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f4564eb
7
8 dev-ruby/sigar: fix build with glibc 2.26
9
10 Thanks to Reuben Martin in bug 639470.
11
12 Closes: https://bugs.gentoo.org/639470
13 Package-Manager: Portage-2.3.19, Repoman-2.3.6
14
15 dev-ruby/sigar/sigar-0.7.3.ebuild | 7 +++++--
16 1 file changed, 5 insertions(+), 2 deletions(-)
17
18 diff --git a/dev-ruby/sigar/sigar-0.7.3.ebuild b/dev-ruby/sigar/sigar-0.7.3.ebuild
19 index 03c1758bc3e..116f75eba32 100644
20 --- a/dev-ruby/sigar/sigar-0.7.3.ebuild
21 +++ b/dev-ruby/sigar/sigar-0.7.3.ebuild
22 @@ -1,4 +1,4 @@
23 -# Copyright 1999-2017 Gentoo Foundation
24 +# Copyright 1999-2018 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26
27 EAPI=5
28 @@ -18,8 +18,11 @@ SLOT="0"
29 KEYWORDS="~amd64 ~x86"
30 IUSE=""
31
32 +DEPEND+=" || ( <sys-libs/glibc-2.26 net-libs/libtirpc )"
33 +
34 all_ruby_prepare() {
35 - sed -i -e '25i$CFLAGS += " -std=gnu89"' bindings/ruby/extconf.rb || die
36 + sed -i -e '25i$CFLAGS += " -std=gnu89"' \
37 + -e '25i$LDFLAGS += " -ltirpc"' bindings/ruby/extconf.rb || die
38
39 # Fix compatibility with glibc 2.25
40 sed -i -e '26i#include <sys/sysmacros.h>' \