1 |
commit: b00ca1b5fec97e1e8bb837ca7c1ca34a32fb1ddc |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 14 00:13:43 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 14 00:13:43 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b00ca1b5 |
7 |
|
8 |
net-libs/rpcsvc-proto: fix cpp call |
9 |
|
10 |
Bug: https://bugs.gentoo.org/718138 |
11 |
Closes: https://bugs.gentoo.org/870031 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r1.ebuild | 4 +++- |
15 |
1 file changed, 3 insertions(+), 1 deletion(-) |
16 |
|
17 |
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 |
18 |
index 68a3bdb3e02f..f7687c8b7eca 100644 |
19 |
--- a/net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r1.ebuild |
20 |
+++ b/net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r1.ebuild |
21 |
@@ -3,6 +3,8 @@ |
22 |
|
23 |
EAPI=8 |
24 |
|
25 |
+inherit toolchain-funcs |
26 |
+ |
27 |
DESCRIPTION="rpcsvc protocol definitions from glibc" |
28 |
HOMEPAGE="https://github.com/thkukuk/rpcsvc-proto" |
29 |
SRC_URI="https://github.com/thkukuk/rpcsvc-proto/releases/download/v${PV}/${P}.tar.xz" |
30 |
@@ -21,7 +23,7 @@ src_prepare() { |
31 |
|
32 |
# Use ${CHOST}-cpp, not 'cpp': bug #718138 |
33 |
# Ideally we should use @CPP@ but rpcgen makes it hard to use '${CHOST}-gcc -E' |
34 |
- sed -i -s "s/CPP = \"cpp\";/CPP = \"${CHOST}-cpp\";/" rpcgen/rpc_main.c || die |
35 |
+ sed -i -s "s/CPP = \"cpp\";/CPP = \"$(tc-getPROG CPP cpp)\";/" rpcgen/rpc_main.c || die |
36 |
} |
37 |
|
38 |
src_install() { |