From: Benda Xu Date: Sun, 29 Jan 2017 12:31:38 +0000 (+0900) Subject: profiles/p/l-s/profile.bashrc: update sed for ppc64. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=adbd84a0f19254fc60e799d4d744c3aca5b74618;p=gentoo.git profiles/p/l-s/profile.bashrc: update sed for ppc64. Credit: François Bissey Reference: https://archives.gentoo.org/gentoo-alt/message/d890ad55f3ac96f4db5d7f8291351834 --- diff --git a/profiles/prefix/linux-standalone/profile.bashrc b/profiles/prefix/linux-standalone/profile.bashrc index b46c49efdc6c..4b39a3e25d5b 100644 --- a/profiles/prefix/linux-standalone/profile.bashrc +++ b/profiles/prefix/linux-standalone/profile.bashrc @@ -11,7 +11,7 @@ if [[ ${CATEGORY}/${PN} == sys-devel/gcc && ${EBUILD_PHASE} == configure ]]; the einfo "Prefixifying dynamic linkers..." for h in gcc/config/*/*linux*.h; do ebegin " Updating $h" - sed -i -r "s,(_DYNAMIC_LINKER.*\")(/lib),\1${EPREFIX}\2," $h + sed -i -r "/_DYNAMIC_LINKER/s,([\":])(/lib),\1${EPREFIX}\2,g" $h eend $? done