mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user