summaryrefslogtreecommitdiff
path: root/profiles/prefix
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2016-05-25 11:15:04 +0900
committerBenda Xu <heroxbd@gentoo.org>2016-05-25 11:28:40 +0900
commit2e9198c98b2c60e4a0f49ad5768de08d459288aa (patch)
tree71a201820f75c45c857c9045ed77d62aa6fb5b6c /profiles/prefix
parentb1dd9f36dc9e9c39cdd846c6635dd58d4f1f5736 (diff)
downloadgentoo-2e9198c98b2c60e4a0f49ad5768de08d459288aa.tar.gz
gentoo-2e9198c98b2c60e4a0f49ad5768de08d459288aa.tar.xz
p/p/linux-standalone/profile.bashrc: move glibc RAP tricks to profiles
Upstream-Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=20138
Diffstat (limited to 'profiles/prefix')
-rw-r--r--profiles/prefix/linux-standalone/profile.bashrc23
1 files changed, 23 insertions, 0 deletions
diff --git a/profiles/prefix/linux-standalone/profile.bashrc b/profiles/prefix/linux-standalone/profile.bashrc
index 369b595143a..c4a885c39f7 100644
--- a/profiles/prefix/linux-standalone/profile.bashrc
+++ b/profiles/prefix/linux-standalone/profile.bashrc
@@ -30,3 +30,26 @@ if [[ ${CATEGORY}/${PN} == sys-devel/binutils && ${EBUILD_PHASE} == prepare ]];
ld/configure.tgt || eerror "Please file a bug about this"
eend $?
fi
+
+if [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == configure ]]; then
+ cd "${S}"
+ einfo "Prefixifying hardcoded path"
+
+ for f in libio/iopopen.c \
+ shadow/lckpwdf.c resolv/{netdb,resolv}.h \
+ 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}
+ do
+ ebegin " Updating $f"
+ sed -i -r \
+ -e "s,([:\"])/(etc|usr|bin|var),\1${EPREFIX}/\2,g" \
+ $f || eerror "Please file a bug about this"
+ eend $?
+ done
+ ebegin " Updating nss/db-Makefile"
+ sed -i -r \
+ -e "s,/(etc|var),${EPREFIX}/\1,g" \
+ nss/db-Makefile || eerror "Please file a bug about this"
+ eend $?
+fi