Gentoo Archives: gentoo-commits

From: Benda XU <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/prefix/linux-standalone/
Date: Wed, 25 May 2016 02:29:02
Message-Id: 1464143320.2e9198c98b2c60e4a0f49ad5768de08d459288aa.heroxbd@gentoo
1 commit: 2e9198c98b2c60e4a0f49ad5768de08d459288aa
2 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 25 02:15:04 2016 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Wed May 25 02:28:40 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e9198c9
7
8 p/p/linux-standalone/profile.bashrc: move glibc RAP tricks to profiles
9
10 Upstream-Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=20138
11
12 profiles/prefix/linux-standalone/profile.bashrc | 23 +++++++++++++++++++++++
13 1 file changed, 23 insertions(+)
14
15 diff --git a/profiles/prefix/linux-standalone/profile.bashrc b/profiles/prefix/linux-standalone/profile.bashrc
16 index 369b595..c4a885c 100644
17 --- a/profiles/prefix/linux-standalone/profile.bashrc
18 +++ b/profiles/prefix/linux-standalone/profile.bashrc
19 @@ -30,3 +30,26 @@ if [[ ${CATEGORY}/${PN} == sys-devel/binutils && ${EBUILD_PHASE} == prepare ]];
20 ld/configure.tgt || eerror "Please file a bug about this"
21 eend $?
22 fi
23 +
24 +if [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == configure ]]; then
25 + cd "${S}"
26 + einfo "Prefixifying hardcoded path"
27 +
28 + for f in libio/iopopen.c \
29 + shadow/lckpwdf.c resolv/{netdb,resolv}.h \
30 + nis/nss_compat/compat-{grp,initgroups,{,s}pwd}.c \
31 + nss/{bug-erange,nss_files/files-init{,groups}}.c \
32 + sysdeps/{{generic,unix/sysv/linux}/paths.h,posix/system.c}
33 + do
34 + ebegin " Updating $f"
35 + sed -i -r \
36 + -e "s,([:\"])/(etc|usr|bin|var),\1${EPREFIX}/\2,g" \
37 + $f || eerror "Please file a bug about this"
38 + eend $?
39 + done
40 + ebegin " Updating nss/db-Makefile"
41 + sed -i -r \
42 + -e "s,/(etc|var),${EPREFIX}/\1,g" \
43 + nss/db-Makefile || eerror "Please file a bug about this"
44 + eend $?
45 +fi