From: Andreas K. Hüttel Date: Wed, 1 Nov 2017 18:47:47 +0000 (+0100) Subject: sys-apps/xinetd: Fix build with libtirpc, bug 630102 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=c9537d24d9ee4aee255724061ba2f6e381a26fe8;p=gentoo.git sys-apps/xinetd: Fix build with libtirpc, bug 630102 Closes: https://bugs.gentoo.org/630102 Package-Manager: Portage-2.3.13, Repoman-2.3.4 --- diff --git a/sys-apps/xinetd/xinetd-2.3.15-r3.ebuild b/sys-apps/xinetd/xinetd-2.3.15-r3.ebuild index e0667ddfa98b..b22a4d57198e 100644 --- a/sys-apps/xinetd/xinetd-2.3.15-r3.ebuild +++ b/sys-apps/xinetd/xinetd-2.3.15-r3.ebuild @@ -30,11 +30,13 @@ src_prepare() { } src_configure() { - if ! use rpc ; then + tc-export AR PKG_CONFIG + if use rpc ; then + append-cflags $(${PKG_CONFIG} --cflags libtirpc) + else append-cppflags -DNO_RPC export ac_cv_header_{rpc_{rpc,rpcent,pmap_clnt},netdb}_h=no fi - tc-export AR PKG_CONFIG LIBS=$(${PKG_CONFIG} --libs libtirpc) \ econf \ $(use_with tcpd libwrap) \