summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-09-14 01:13:43 +0100
committerSam James <sam@gentoo.org>2022-09-14 01:13:43 +0100
commitb00ca1b5fec97e1e8bb837ca7c1ca34a32fb1ddc (patch)
tree8cba3a98cb6a5529823d25e42e355e1a091e8a4a /net-libs/rpcsvc-proto
parentsys-libs/musl: set QA_PRESTRIPPED for crtn.o (diff)
downloadgentoo-b00ca1b5fec97e1e8bb837ca7c1ca34a32fb1ddc.tar.gz
gentoo-b00ca1b5fec97e1e8bb837ca7c1ca34a32fb1ddc.tar.bz2
gentoo-b00ca1b5fec97e1e8bb837ca7c1ca34a32fb1ddc.zip
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>
Diffstat (limited to 'net-libs/rpcsvc-proto')
-rw-r--r--net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r1.ebuild4
1 files changed, 3 insertions, 1 deletions
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 68a3bdb3e02f..f7687c8b7eca 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() {