dev-ruby/sigar: properly set tirpc include directory
authorHans de Graaff <graaff@gentoo.org>
Mon, 21 May 2018 11:48:55 +0000 (13:48 +0200)
committerHans de Graaff <graaff@gentoo.org>
Mon, 21 May 2018 11:49:26 +0000 (13:49 +0200)
Fixes building with libtirpc on a glibc 2.26+ system.

Closes: https://bugs.gentoo.org/639956
Package-Manager: Portage-2.3.36, Repoman-2.3.9

dev-ruby/sigar/sigar-0.7.3.ebuild

index 7045ab9949cb7b2deb22ba0852ea3d799afea5e5..8835b4eb331da23946bfe84cc0c23a357e1964c0 100644 (file)
@@ -21,7 +21,7 @@ IUSE=""
 DEPEND+=" || ( <sys-libs/glibc-2.26 net-libs/libtirpc )"
 
 all_ruby_prepare() {
-       sed -i -e '25i$CFLAGS += " -std=gnu89"' \
+       sed -i -e '25i$CFLAGS += " -std=gnu89 -I/usr/include/tirpc"' \
                -e '25i$LDFLAGS += " -ltirpc"' bindings/ruby/extconf.rb || die
 
        # Fix compatibility with glibc 2.25