commit:     c9537d24d9ee4aee255724061ba2f6e381a26fe8
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Wed Nov  1 18:47:47 2017 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Wed Nov  1 18:48:08 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9537d24

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

 sys-apps/xinetd/xinetd-2.3.15-r3.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys-apps/xinetd/xinetd-2.3.15-r3.ebuild 
b/sys-apps/xinetd/xinetd-2.3.15-r3.ebuild
index e0667ddfa98..b22a4d57198 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) \

Reply via email to