1 |
commit: 2bf942f5b9811cda71c10dc3c8388c402a3bd36e |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 30 21:38:11 2018 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 10 21:19:54 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bf942f5 |
7 |
|
8 |
dev-python/sip: Fix cross-compiling by passing the --sysroot option |
9 |
|
10 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
12 |
|
13 |
dev-python/sip/sip-4.19.14_pre1812231555.ebuild | 5 ++++- |
14 |
1 file changed, 4 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-python/sip/sip-4.19.14_pre1812231555.ebuild b/dev-python/sip/sip-4.19.14_pre1812231555.ebuild |
17 |
index 294e56df9f4..47ab306936c 100644 |
18 |
--- a/dev-python/sip/sip-4.19.14_pre1812231555.ebuild |
19 |
+++ b/dev-python/sip/sip-4.19.14_pre1812231555.ebuild |
20 |
@@ -49,6 +49,8 @@ src_prepare() { |
21 |
|
22 |
src_configure() { |
23 |
configuration() { |
24 |
+ local incdir=$(python_get_includedir) |
25 |
+ |
26 |
if ! python_is_python3; then |
27 |
local CFLAGS="${CFLAGS} -fno-strict-aliasing" |
28 |
fi |
29 |
@@ -56,9 +58,10 @@ src_configure() { |
30 |
local myconf=( |
31 |
"${PYTHON}" |
32 |
"${S}"/configure.py |
33 |
+ --sysroot="${ESYSROOT}/usr" |
34 |
--bindir="${EPREFIX}/usr/bin" |
35 |
--destdir="$(python_get_sitedir)" |
36 |
- --incdir="$(python_get_includedir)" |
37 |
+ --incdir="${incdir#${SYSROOT}}" |
38 |
$(usex debug --debug '') |
39 |
AR="$(tc-getAR) cqs" |
40 |
CC="$(tc-getCC)" |