This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=2f4014f9d7638015d2a73b776bde176c3060d958 commit 2f4014f9d7638015d2a73b776bde176c3060d958 Author: Guillem Jover <[email protected]> AuthorDate: Thu May 18 03:08:38 2023 +0200 Dpkg::Vendor::Debian: Invert time64 suppression list logic New 32-bit glibc architectures default to time64, and the list of time32 architectures is finite and will not grow any longer. So it makes more sense to base the ignore list on that finite list than on the new 32-bit architectures that default to time64, even though currently that is a shorter list, but which will require continue maintenance and update. --- scripts/Dpkg/Vendor/Debian.pm | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/scripts/Dpkg/Vendor/Debian.pm b/scripts/Dpkg/Vendor/Debian.pm index 487aeac08..b82901518 100644 --- a/scripts/Dpkg/Vendor/Debian.pm +++ b/scripts/Dpkg/Vendor/Debian.pm @@ -175,8 +175,40 @@ sub set_build_features { ## Area: future if ($use_feature{future}{time64}) { - if (any { $cpu eq $_ } qw(arc or1k) or - $abi_bits != 32) { + # On glibc, new ports default to time64, old ports currently default + # to time32, so we track the latter as that is a list that is not + # going to grow further, and might shrink. + my %time32_arch = map { $_ => 1 } qw( + arm + armeb + armel + armhf + hppa + i386 + hurd-i386 + kfreebsd-i386 + m68k + mips + mipsel + mipsn32 + mipsn32el + mipsn32r6 + mipsn32r6el + mipsr6 + mipsr6el + nios2 + powerpc + powerpcel + powerpcspe + s390 + sh3 + sh3eb + sh4 + sh4eb + sparc + ); + if ($abi_bits != 32 or + not exists $time32_arch{$arch}) { $use_feature{future}{time64} = 0; } elsif ($libc eq 'gnu') { # On glibc 64-bit time_t support requires LFS. -- Dpkg.Org's dpkg

