From fc08010f6d9e23f8ffd59420dc7309692c8d9fc6 Mon Sep 17 00:00:00 2001 From: Samuel Tyler Date: Mon, 8 Sep 2025 10:29:07 +1000 Subject: [PATCH] Clean up perl 5.40 --- steps/perl-5.40.3/files/Compress-Raw-Zlib_config.in | 4 ++++ .../perl-5.40.3/patches/Devel-PPPort-remove-sprintf.patch | 8 ++++++++ steps/perl-5.40.3/patches/fix-debugging-re.patch | 8 ++++++++ steps/perl-5.40.3/patches/remove-machine-generated.patch | 4 ++++ 4 files changed, 24 insertions(+) diff --git a/steps/perl-5.40.3/files/Compress-Raw-Zlib_config.in b/steps/perl-5.40.3/files/Compress-Raw-Zlib_config.in index 60b8dd1c..22ffd510 100644 --- a/steps/perl-5.40.3/files/Compress-Raw-Zlib_config.in +++ b/steps/perl-5.40.3/files/Compress-Raw-Zlib_config.in @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2025 fosslinux +# +# SPDX-License-Identifier: MIT + BUILD_ZLIB = False ZLIB_INCLUDE = /usr/include ZLIB_LIB = /usr/lib/i386-unknown-linux-musl diff --git a/steps/perl-5.40.3/patches/Devel-PPPort-remove-sprintf.patch b/steps/perl-5.40.3/patches/Devel-PPPort-remove-sprintf.patch index c054c1f8..7fb9ee27 100644 --- a/steps/perl-5.40.3/patches/Devel-PPPort-remove-sprintf.patch +++ b/steps/perl-5.40.3/patches/Devel-PPPort-remove-sprintf.patch @@ -1,3 +1,11 @@ +SPDX-FileCopyrightText: 2025 fosslinux + +SPDX-License-Identifier: Artistic-1.0 + +my_sprintf appears to be broken. +This should not be necessary, but is; is most likely linked to metaconfig +problems. + diff --git perl-5.40.3/dist/Devel-PPPort/PPPort_pm.PL perl-5.40.3/dist/Devel-PPPort/PPPort_pm.PL index cfbfaeb8fa..f93e56df15 100644 --- perl-5.40.3/dist/Devel-PPPort/PPPort_pm.PL diff --git a/steps/perl-5.40.3/patches/fix-debugging-re.patch b/steps/perl-5.40.3/patches/fix-debugging-re.patch index 4748311a..98e95d24 100644 --- a/steps/perl-5.40.3/patches/fix-debugging-re.patch +++ b/steps/perl-5.40.3/patches/fix-debugging-re.patch @@ -1,3 +1,11 @@ +SPDX-FileCopyrightText: 2025 fosslinux + +SPDX-License-Identifier: Artistic-1.0 + +This should not be necessary, there is something weird going on here. +A number of #defines are hidden behind -DDEBUGGING that are required to build +the re extension but they are not used. Not sure why, this is a bit of a hack. + diff --git perl-5.40.3/ext/re/Makefile.PL perl-5.40.3/ext/re/Makefile.PL index 01786e1ec2..cc4619bfc3 100644 --- perl-5.40.3/ext/re/Makefile.PL diff --git a/steps/perl-5.40.3/patches/remove-machine-generated.patch b/steps/perl-5.40.3/patches/remove-machine-generated.patch index 2dd00179..fa63109e 100644 --- a/steps/perl-5.40.3/patches/remove-machine-generated.patch +++ b/steps/perl-5.40.3/patches/remove-machine-generated.patch @@ -1,3 +1,7 @@ +SPDX-FileCopyrightText: 2025 fosslinux + +SPDX-License-Identifier: Artistic-1.0 + There is no way to regenerate this easily. It is merely a fallback for when the previous fails and it will not fail with our perl.