From b00ca1b5fec97e1e8bb837ca7c1ca34a32fb1ddc Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 14 Sep 2022 01:13:43 +0100 Subject: [PATCH] net-libs/rpcsvc-proto: fix cpp call Bug: https://bugs.gentoo.org/718138 Closes: https://bugs.gentoo.org/870031 Signed-off-by: Sam James --- net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r1.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r1.ebuild b/net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r1.ebuild index 68a3bdb3e02f7..f7687c8b7eca1 100644 --- a/net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r1.ebuild +++ b/net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r1.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit toolchain-funcs + DESCRIPTION="rpcsvc protocol definitions from glibc" HOMEPAGE="https://github.com/thkukuk/rpcsvc-proto" SRC_URI="https://github.com/thkukuk/rpcsvc-proto/releases/download/v${PV}/${P}.tar.xz" @@ -21,7 +23,7 @@ src_prepare() { # Use ${CHOST}-cpp, not 'cpp': bug #718138 # Ideally we should use @CPP@ but rpcgen makes it hard to use '${CHOST}-gcc -E' - sed -i -s "s/CPP = \"cpp\";/CPP = \"${CHOST}-cpp\";/" rpcgen/rpc_main.c || die + sed -i -s "s/CPP = \"cpp\";/CPP = \"$(tc-getPROG CPP cpp)\";/" rpcgen/rpc_main.c || die } src_install() {