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

Sven Joachim svenjoac at gmx.de
Tue Mar 5 10:47:39 GMT 2024


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.

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).  A quick fix would be appreciated, because reverse
dependencies are likely going to pick up the wrong perlapi Provides.


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386




More information about the Perl-maintainers mailing list