diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-20 14:08:57 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-20 14:08:57 +0000 |
commit | 6aa0d33a65c735f3148967b62316c2e71f43589a (patch) | |
tree | 4ddfb479a93b928f4ad0507a58e779e6de3eb403 /dev-lang/perl/files | |
parent | a332b8e207ac6a51fa349c699b486d870c9cdc70 (diff) |
gentoo auto-resync : 20:01:2024 - 14:08:56
Diffstat (limited to 'dev-lang/perl/files')
-rw-r--r-- | dev-lang/perl/files/perl-5.36.0-fix-configure-for-clang.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-lang/perl/files/perl-5.36.0-fix-configure-for-clang.patch b/dev-lang/perl/files/perl-5.36.0-fix-configure-for-clang.patch new file mode 100644 index 000000000000..3ad508c95f7e --- /dev/null +++ b/dev-lang/perl/files/perl-5.36.0-fix-configure-for-clang.patch @@ -0,0 +1,41 @@ +From 40db21129c0ba08ea457b6e40e7357e86ea1404b Mon Sep 17 00:00:00 2001 +From: Raul E Rangel <rrangel@chromium.org> +Date: Fri, 28 Jul 2023 15:50:49 -0600 +Subject: [PATCH] hints/linux: Add additional expression when matching clang + +Newer versions of clang actually print the distro before `clang` when +calling `$CC --version`. This changes fixes the regex so it can match +this new pattern. + +i.e., + + $ clang --version + Debian clang version 14.0.6 + + $ x86_64-pc-linux-gnu-clang --version + Chromium OS 17.0_pre496208_p20230501-r1 clang version 17.0.0 + +Fixes #21099 + +BUG=b:283275881 +See: https://github.com/Perl/perl5/issues/21099 +--- + hints/linux.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/hints/linux.sh b/hints/linux.sh +index e1508c7509..5202b28b09 100644 +--- a/hints/linux.sh ++++ b/hints/linux.sh +@@ -166,7 +166,7 @@ esac + if [ -x /usr/bin/gcc ] ; then + gcc=/usr/bin/gcc + # clang also provides -print-search-dirs +-elif ${cc:-cc} --version 2>/dev/null | grep -q '^clang ' ; then ++elif ${cc:-cc} --version 2>/dev/null | grep -q -e '^clang version' -e ' clang version'; then + gcc=${cc:-cc} + else + gcc=gcc +-- +2.41.0.585.gd2178a4bd4-goog + |