net-libs/rpcsvc-proto: fix cpp call

Bug: https://bugs.gentoo.org/718138
Closes: https://bugs.gentoo.org/870031
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-09-14 01:13:43 +01:00
parent e2438c028e
commit b00ca1b5fe
@@ -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() {