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/features/prefix/standalone/
Date: Wed, 12 Feb 2020 12:16:38
Message-Id: 1581509751.0e74313ccdf8a00d796f76583a3aece6cf4beb05.heroxbd@gentoo
1 commit: 0e74313ccdf8a00d796f76583a3aece6cf4beb05
2 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 12 12:13:09 2020 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 12 12:15:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e74313c
7
8 p/f/prefix/s/profile.bashrc: new location of emultempl/elf32.em.
9
10 From binutils-2.34, /etc/ld.so.conf is coded in ld/ldelf.c instead.
11
12 Closes: https://bugs.gentoo.org/708184
13 Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
14
15 profiles/features/prefix/standalone/profile.bashrc | 9 ++++++++-
16 1 file changed, 8 insertions(+), 1 deletion(-)
17
18 diff --git a/profiles/features/prefix/standalone/profile.bashrc b/profiles/features/prefix/standalone/profile.bashrc
19 index 20a3aff74cf..49293adb98d 100644
20 --- a/profiles/features/prefix/standalone/profile.bashrc
21 +++ b/profiles/features/prefix/standalone/profile.bashrc
22 @@ -38,8 +38,15 @@ elif [[ ${CATEGORY}/${PN} == sys-devel/binutils && ${EBUILD_PHASE} == prepare ]]
23 sed -i -r "/NATIVE_LIB_DIRS/s,((/usr(/local|)|)/lib),${EPREFIX}\1,g" \
24 "${S}"/ld/configure.tgt
25 eend $?
26 +
27 ebegin "Prefixifying path to /etc/ld.so.conf"
28 - sed -i -r "s,\"/etc,\"${EPREFIX}/etc," "${S}"/ld/emultempl/elf32.em
29 + local f=
30 + if [[ -f "${S}"/ld/emultempl/elf32.em ]]; then
31 + f="${S}"/ld/emultempl/elf32.em
32 + elif [[ -f "${S}"/ld/ldelf.c ]]; then
33 + f="${S}"/ld/ldelf.c
34 + fi
35 + [[ -n "${f}" ]] && sed -i -r "s,\"/etc,\"${EPREFIX}/etc," "${f}"
36 eend $?
37 elif [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == compile ]]; then
38 cd "${S}"