Bug#1065483: perl-base: should provide perlapi-5.38.2 on i386

Sven Joachim svenjoac at gmx.de
Wed Mar 6 10:00:48 GMT 2024


Control: tags -1 + patch

On 2024-03-05 11:47 +0100, Sven Joachim wrote:

> Package: perl-base
> Version: 5.38.2-3.1
> Severity: serious
> X-Debbugs-Cc: Sven Joachim <svenjoac at gmx.de>, Steve Langasek <vorlon at debian.org>
>
> On i386, perl-base provides perlapi-5.38.2t64 rather than
> perlapi-5.38.2.  This makes tons of packages uninstallable or
> unbuildable and is not what has been agreed upon in #1060246.

There are already 229 packages in state BD-Uninstallable on i386,
on amd64 there are only 19.  Personally I have held back packages from
src:e2fsprogs, src:util-linux and src:expat due to multiarch version
skew.  This is only going to become worse.

> The reason is a bad check in debian/rules, line 31:
>
> ,----
> | # If nonempty, this will determine $Config{debian_abi} and Provides: entries
> | # (otherwise, the Provides: entries will be generated by debian/mkprovides)
> | perlabi =
> | ifeq (,$(filter $(DEB_HOST_GNU_TYPE),i386 hurd-i386))
> |   ifeq ($(DEB_HOST_ARCH_BITS),32)
> |     perlabi = 5.38.2t64
> |   endif
> | endif
> `----
>
> Unfortunately DEB_HOST_GNU_TYPE does not match i386 or hurd-i386 on
> these architectures:
>
> ,----
> | $ dpkg-architecture -ai386 -qDEB_HOST_GNU_TYPE 2>/dev/null
> | i686-linux-gnu
> | $ dpkg-architecture -ahurd-i386 -qDEB_HOST_GNU_TYPE 2>/dev/null
> | i686-gnu
> `----
>
> You may want to filter on DEB_HOST_ARCH instead (make sure it is
> defined).

I have decided to fix the check for DEB_HOST_GNU_TYPE instead.  All of
this is going away anyway when perl moves on to version 5.40.

> A quick fix would be appreciated, because reverse dependencies are
> likely going to pick up the wrong perlapi Provides.

There are currently six packages depending on perlapi-5.38.2t64:i386,
but that number is likely going to grow.  The second patch adds a
hardcoded dependency not break these reverse dependencies, but it might
be preferable to just request binNMUs for them as long as there are not
too many.

Cheers,
       Sven

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-perlapi-Provides-for-i386-and-hurd-i386.patch
Type: text/x-diff
Size: 847 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/perl-maintainers/attachments/20240306/e90fc010/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Temporarily-provide-perlapi-5.38.2t64-on-i386-and-hu.patch
Type: text/x-diff
Size: 851 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/perl-maintainers/attachments/20240306/e90fc010/attachment-0001.patch>


More information about the Perl-maintainers mailing list