1 |
commit: 9c5dbdcedd1095c857274875ae171be66ce0fe50 |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 26 02:49:32 2016 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 26 04:02:49 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c5dbdce |
7 |
|
8 |
p/p/l-s/profile.bashrc: prefixify glibc hardcoded /etc/ld.so.preload |
9 |
|
10 |
prefixify python's h2py calls. |
11 |
|
12 |
profiles/prefix/linux-standalone/profile.bashrc | 12 +++++++++++- |
13 |
1 file changed, 11 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/profiles/prefix/linux-standalone/profile.bashrc b/profiles/prefix/linux-standalone/profile.bashrc |
16 |
index c4a885c..121ac7b 100644 |
17 |
--- a/profiles/prefix/linux-standalone/profile.bashrc |
18 |
+++ b/profiles/prefix/linux-standalone/profile.bashrc |
19 |
@@ -1,3 +1,4 @@ |
20 |
+# -*- mode: shell-script; -*- |
21 |
# RAP specific patches that is pending upstream. |
22 |
# binutils: http://article.gmane.org/gmane.comp.gnu.binutils/67593 |
23 |
|
24 |
@@ -36,7 +37,7 @@ if [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == configure ]]; th |
25 |
einfo "Prefixifying hardcoded path" |
26 |
|
27 |
for f in libio/iopopen.c \ |
28 |
- shadow/lckpwdf.c resolv/{netdb,resolv}.h \ |
29 |
+ shadow/lckpwdf.c resolv/{netdb,resolv}.h elf/rtld.c \ |
30 |
nis/nss_compat/compat-{grp,initgroups,{,s}pwd}.c \ |
31 |
nss/{bug-erange,nss_files/files-init{,groups}}.c \ |
32 |
sysdeps/{{generic,unix/sysv/linux}/paths.h,posix/system.c} |
33 |
@@ -53,3 +54,12 @@ if [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == configure ]]; th |
34 |
nss/db-Makefile || eerror "Please file a bug about this" |
35 |
eend $? |
36 |
fi |
37 |
+ |
38 |
+if [[ ${CATEGORY}/${PN} == dev-lang/python && ${EBUILD_PHASE} == configure ]]; then |
39 |
+ # Guide h2py to look into glibc of Prefix |
40 |
+ ebegin "Guide h2py to look into Prefix" |
41 |
+ export include="${EPREFIX}"/usr/include |
42 |
+ sed -i -r \ |
43 |
+ -e "s,/usr/include,\"${EPREFIX}\"/usr/include,g" "${S}"/Lib/plat-linux*/regen |
44 |
+ eend $? |
45 |
+fi |