summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2016-05-26 11:49:32 +0900
committerBenda Xu <heroxbd@gentoo.org>2016-05-26 13:02:49 +0900
commit9c5dbdcedd1095c857274875ae171be66ce0fe50 (patch)
tree3981490a091d973bb16a94b28eb15f0d21f41ce8 /profiles/prefix/linux-standalone
parentdev-util/intltool: alpha stable, bug 579236. (diff)
downloadgentoo-9c5dbdcedd1095c857274875ae171be66ce0fe50.tar.gz
gentoo-9c5dbdcedd1095c857274875ae171be66ce0fe50.tar.bz2
gentoo-9c5dbdcedd1095c857274875ae171be66ce0fe50.zip
p/p/l-s/profile.bashrc: prefixify glibc hardcoded /etc/ld.so.preload
prefixify python's h2py calls.
Diffstat (limited to 'profiles/prefix/linux-standalone')
-rw-r--r--profiles/prefix/linux-standalone/profile.bashrc12
1 files changed, 11 insertions, 1 deletions
diff --git a/profiles/prefix/linux-standalone/profile.bashrc b/profiles/prefix/linux-standalone/profile.bashrc
index c4a885c39f73..121ac7b6b9bf 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