commit:     9c5dbdcedd1095c857274875ae171be66ce0fe50
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Thu May 26 02:49:32 2016 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Thu May 26 04:02:49 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c5dbdce

p/p/l-s/profile.bashrc: prefixify glibc hardcoded /etc/ld.so.preload

  prefixify python's h2py calls.

 profiles/prefix/linux-standalone/profile.bashrc | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/profiles/prefix/linux-standalone/profile.bashrc 
b/profiles/prefix/linux-standalone/profile.bashrc
index c4a885c..121ac7b 100644
--- a/profiles/prefix/linux-standalone/profile.bashrc
+++ b/profiles/prefix/linux-standalone/profile.bashrc
@@ -1,3 +1,4 @@
+# -*- mode: shell-script; -*-
 # RAP specific patches that is pending upstream.
 # binutils: http://article.gmane.org/gmane.comp.gnu.binutils/67593
 
@@ -36,7 +37,7 @@ if [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} 
== configure ]]; th
     einfo "Prefixifying hardcoded path"
     
     for f in libio/iopopen.c \
-                shadow/lckpwdf.c resolv/{netdb,resolv}.h \
+                shadow/lckpwdf.c resolv/{netdb,resolv}.h elf/rtld.c \
                 nis/nss_compat/compat-{grp,initgroups,{,s}pwd}.c \
                 nss/{bug-erange,nss_files/files-init{,groups}}.c \
                 sysdeps/{{generic,unix/sysv/linux}/paths.h,posix/system.c}
@@ -53,3 +54,12 @@ if [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} 
== configure ]]; th
        nss/db-Makefile || eerror "Please file a bug about this"
     eend $?
 fi
+
+if [[ ${CATEGORY}/${PN} == dev-lang/python && ${EBUILD_PHASE} == configure ]]; 
then
+    # Guide h2py to look into glibc of Prefix
+    ebegin "Guide h2py to look into Prefix"
+    export include="${EPREFIX}"/usr/include
+    sed -i -r \
+       -e "s,/usr/include,\"${EPREFIX}\"/usr/include,g" 
"${S}"/Lib/plat-linux*/regen
+    eend $?
+fi

Reply via email to