dev-ruby/sigar: fix build with glibc 2.26
authorHans de Graaff <graaff@gentoo.org>
Sat, 17 Feb 2018 07:34:31 +0000 (08:34 +0100)
committerHans de Graaff <graaff@gentoo.org>
Sat, 17 Feb 2018 07:34:31 +0000 (08:34 +0100)
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

index 03c1758bc3ef05c5c68188bf429f7cc38a955c2d..116f75eba3233a5cc89d0885aabeb8bd88ad6277 100644 (file)
@@ -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>' \