From 0e74313ccdf8a00d796f76583a3aece6cf4beb05 Mon Sep 17 00:00:00 2001 From: Benda Xu Date: Wed, 12 Feb 2020 20:13:09 +0800 Subject: [PATCH] p/f/prefix/s/profile.bashrc: new location of emultempl/elf32.em. From binutils-2.34, /etc/ld.so.conf is coded in ld/ldelf.c instead. Closes: https://bugs.gentoo.org/708184 Signed-off-by: Benda Xu --- profiles/features/prefix/standalone/profile.bashrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/profiles/features/prefix/standalone/profile.bashrc b/profiles/features/prefix/standalone/profile.bashrc index 20a3aff74cf5..49293adb98d1 100644 --- a/profiles/features/prefix/standalone/profile.bashrc +++ b/profiles/features/prefix/standalone/profile.bashrc @@ -38,8 +38,15 @@ elif [[ ${CATEGORY}/${PN} == sys-devel/binutils && ${EBUILD_PHASE} == prepare ]] sed -i -r "/NATIVE_LIB_DIRS/s,((/usr(/local|)|)/lib),${EPREFIX}\1,g" \ "${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 + local f= + if [[ -f "${S}"/ld/emultempl/elf32.em ]]; then + f="${S}"/ld/emultempl/elf32.em + elif [[ -f "${S}"/ld/ldelf.c ]]; then + f="${S}"/ld/ldelf.c + fi + [[ -n "${f}" ]] && sed -i -r "s,\"/etc,\"${EPREFIX}/etc," "${f}" eend $? elif [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == compile ]]; then cd "${S}" -- 2.26.2