summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2016-06-03 08:55:43 +0900
committerBenda Xu <heroxbd@gentoo.org>2016-06-04 11:25:22 +0900
commit515c7d78d2c1bb3c09903ca23d7de8d957ba4cb9 (patch)
tree6477f7bb3d4df6ebc32bb8c644f857fe016506f5 /profiles
parentnet-firewall/ipset: bug #554904 bump. (diff)
downloadgentoo-515c7d78d2c1bb3c09903ca23d7de8d957ba4cb9.tar.gz
gentoo-515c7d78d2c1bb3c09903ca23d7de8d957ba4cb9.tar.bz2
gentoo-515c7d78d2c1bb3c09903ca23d7de8d957ba4cb9.zip
p/p/l-s/profile.bashrc: prefixify perl pwd call.
prefixify python distutils paths. change glibc prefixify phase to "compile". glibc-2.19 is EAPI=0, which does not have a "configure" phase. prefixify path to /etc/ld.so.conf.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/prefix/linux-standalone/profile.bashrc26
1 files changed, 17 insertions, 9 deletions
diff --git a/profiles/prefix/linux-standalone/profile.bashrc b/profiles/prefix/linux-standalone/profile.bashrc
index 90bfc604229f..8399ce654427 100644
--- a/profiles/prefix/linux-standalone/profile.bashrc
+++ b/profiles/prefix/linux-standalone/profile.bashrc
@@ -21,12 +21,14 @@ if [[ ${CATEGORY}/${PN} == sys-devel/gcc && ${EBUILD_PHASE} == configure ]]; the
sed -i 's/--sysroot=%R//' gcc/gcc.c
eend $?
elif [[ ${CATEGORY}/${PN} == sys-devel/binutils && ${EBUILD_PHASE} == prepare ]]; then
- cd "${S}"
ebegin "Prefixifying native library path"
sed -i -r "/NATIVE_LIB_DIRS/s,((/usr(/local|)|)/lib),${EPREFIX}\1,g" \
- ld/configure.tgt
+ "${S}"/ld/configure.tgt
+ eend $?
+ ebegin "Prefixifying path to /etc/ld.so.conf"
+ sed -i -r "s,\"/etc,\"${EPREFIX}/etc," "${S}"/ld/emultempl/elf32.em
eend $?
-elif [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == configure ]]; then
+elif [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == compile ]]; then
cd "${S}"
einfo "Prefixifying hardcoded path"
@@ -37,8 +39,7 @@ elif [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == configure ]];
sysdeps/{{generic,unix/sysv/linux}/paths.h,posix/system.c}
do
ebegin " Updating $f"
- sed -i -r \
- -e "s,([:\"])/(etc|usr|bin|var),\1${EPREFIX}/\2,g" $f
+ sed -i -r "s,([:\"])/(etc|usr|bin|var),\1${EPREFIX}/\2,g" $f
eend $?
done
ebegin " Updating nss/db-Makefile"
@@ -48,15 +49,22 @@ elif [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == configure ]];
eend $?
elif [[ ${CATEGORY}/${PN} == dev-lang/python && ${EBUILD_PHASE} == configure ]]; then
# Guide h2py to look into glibc of Prefix
- ebegin "Guide h2py to look into Prefix"
+ ebegin "Guiding 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 $?
+ ebegin "Prefixifying distutils paths"
+ sed -re "s,([^[:alnum:]])(/usr[/[:alnum:]]*/(lib[[:alnum:]]*|include)|/lib[[:alnum:]]*),\1${EPREFIX}\2,g" \
+ -i "${S}"/setup.py
+ eend $?
+elif [[ ${CATEGORY}/${PN} == dev-lang/perl && ${EBUILD_PHASE} == configure ]]; then
+ ebegin "Prefixifying pwd path"
+ sed -i -r \
+ -e "s,'((|/usr)/bin/pwd),'${EPREFIX}\1," "${S}"/dist/PathTools/Cwd.pm
+ eend $?
elif [[ ${CATEGORY}/${PN} == sys-devel/make && ${EBUILD_PHASE} == prepare ]]; then
- cd "${S}"
ebegin "Prefixifying default shell"
- sed -i -r \
- -e "/default_shell/s,\"(/bin/sh),\"${EPREFIX}\1," job.c
+ sed -i -r "/default_shell/s,\"(/bin/sh),\"${EPREFIX}\1," "${S}"/job.c
eend $?
fi