commit:     4f4564eb181a767bda25ceaf541163e167e6dd00
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 17 07:34:31 2018 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Feb 17 07:34:31 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f4564eb

dev-ruby/sigar: fix build with glibc 2.26

Thanks to Reuben Martin in bug 639470.

Closes: https://bugs.gentoo.org/639470
Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-ruby/sigar/sigar-0.7.3.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dev-ruby/sigar/sigar-0.7.3.ebuild 
b/dev-ruby/sigar/sigar-0.7.3.ebuild
index 03c1758bc3e..116f75eba32 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-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -18,8 +18,11 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
+DEPEND+=" || ( <sys-libs/glibc-2.26 net-libs/libtirpc )"
+
 all_ruby_prepare() {
-       sed -i -e '25i$CFLAGS += " -std=gnu89"' bindings/ruby/extconf.rb || die
+       sed -i -e '25i$CFLAGS += " -std=gnu89"' \
+               -e '25i$LDFLAGS += " -ltirpc"' bindings/ruby/extconf.rb || die
 
        # Fix compatibility with glibc 2.25
        sed -i -e '26i#include <sys/sysmacros.h>' \

Reply via email to