perl: add patching to allow building with intel@19.1.3 (#35666)

This commit is contained in:
Alex Richert 2023-03-30 10:07:33 -07:00 committed by GitHub
parent d82fc158ca
commit f5624f096c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,6 +152,10 @@ def patch(self):
# https://github.com/Perl/perl5/issues/15544 long PATH(>1000 chars) fails a test # https://github.com/Perl/perl5/issues/15544 long PATH(>1000 chars) fails a test
os.chmod("lib/perlbug.t", 0o644) os.chmod("lib/perlbug.t", 0o644)
filter_file("!/$B/", "! (/(?:$B|PATH)/)", "lib/perlbug.t") filter_file("!/$B/", "! (/(?:$B|PATH)/)", "lib/perlbug.t")
# Several non-existent flags cause Intel@19.1.3 to fail
with when("%intel@19.1.3"):
os.chmod("hints/linux.sh", 0o644)
filter_file("-we147 -mp -no-gcc", "", "hints/linux.sh")
@classmethod @classmethod
def determine_version(cls, exe): def determine_version(cls, exe):