Package: perl
Version: 5.36.0-10
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu noble ubuntu-patch
Hi Niko, Dominic,
Please find attached a prospective patch for perl that would annotate the
perlapi provides for perl-base after a 64-bit time_t transition for 32-bit
architectures, on perl 5.36.0. I've tested that this does what's expected,
both for the Provides: of perl-base and the behavior of dh_perl.
It tries to retain compatibility with perlapi-5.36.0 on architectures where
this is appropriate (64-bit architectures + i386); it covers Debian release
architectures + riscv64, but does not attempt to be complete for all
architectures dpkg knows about. This is entirely optional anyway, as perl
5.38 is just around the corner, at which point this patch should be dropped
completely (assuming time_t lands before perl 5.38 does).
Regards,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer https://www.debian.org/
[email protected] [email protected]
diff -Nru perl-5.36.0/debian/rules perl-5.36.0/debian/rules
--- perl-5.36.0/debian/rules 2023-11-25 12:52:58.000000000 -0800
+++ perl-5.36.0/debian/rules 2024-01-05 00:45:29.000000000 -0800
@@ -23,7 +23,7 @@
# If nonempty, this will determine $Config{debian_abi} and Provides: entries
# (otherwise, the Provides: entries will be generated by debian/mkprovides)
-perlabi =
+perlabi = 5.36.0t64
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
@@ -52,7 +52,7 @@
ifeq (,$(perlabi))
subst_perlapi = -Vperlapi:Provides="`$(PERL_TO_USE) debian/mkprovides`"
else
-subst_perlapi = -Vperlapi:Provides="perlapi-$(perlabi)"
+subst_perlapi = -Vperlapi:Provides="perlapi-$(perlabi), perlapi-5.36.0 [amd64
arm64 i386 mips64el ppc64el riscv64 s390x]"
endif
# for cpan/Compress-Raw-Zlib