commit: 2e9198c98b2c60e4a0f49ad5768de08d459288aa Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> AuthorDate: Wed May 25 02:15:04 2016 +0000 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> CommitDate: Wed May 25 02:28:40 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e9198c9
p/p/linux-standalone/profile.bashrc: move glibc RAP tricks to profiles Upstream-Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=20138 profiles/prefix/linux-standalone/profile.bashrc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/profiles/prefix/linux-standalone/profile.bashrc b/profiles/prefix/linux-standalone/profile.bashrc index 369b595..c4a885c 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
