summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-05-08 15:53:00 +0100
committerSam James <sam@gentoo.org>2023-05-08 19:46:31 +0100
commit95fb775e0475446b41cdda8609d1b843d891282b (patch)
tree21331100a3e5bf3e58cb070fc785def84540735d /eclass
parentapp-backup/burp: remove unused patches (diff)
downloadgentoo-95fb775e0475446b41cdda8609d1b843d891282b.tar.gz
gentoo-95fb775e0475446b41cdda8609d1b843d891282b.tar.bz2
gentoo-95fb775e0475446b41cdda8609d1b843d891282b.zip
toolchain.eclass: conditionalize old awk sed fixup
Bug: https://bugs.gentoo.org/215828 Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35855 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 16ce534d3465..91592dcae2d6 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -731,8 +731,11 @@ toolchain_src_prepare() {
|| eerror "Please file a bug about this"
eend $?
done
+
# bug #215828
- sed -i 's|A-Za-z0-9|[:alnum:]|g' "${S}"/gcc/*.awk || die
+ if ! tc_version_is_at_least 4.6.0 ; then
+ sed -i 's|A-Za-z0-9|[:alnum:]|g' "${S}"/gcc/*.awk || die
+ fi
# Prevent new texinfo from breaking old versions (see #198182, bug #464008)
einfo "Remove texinfo (bug #198182, bug #464008)"