#1107771 dh-make-perl FTBFS without /var/lib/dpkg/available

Package:
src:dh-make-perl
Source:
src:dh-make-perl
Submitter:
Jochen Sprickerhof
Date:
2025-08-10 23:51:02 UTC
Severity:
normal
Tags:
#1107771#5
Date:
2025-06-14 06:16:23 UTC
From:
To:
Hi,

dh-make-perl currently fails to reproduce on reproduce.d.n:

https://reproduce.debian.net/all/#dh-make-perl

This is due to two things:

1. The package assumes that a /var/lib/dpkg/available file exists. This
is not guaranteed. For example mmdebstrap does not create it. You can
test that by using sbuild from trixie or bookworm-backports with:

sbuild --chroot-mode=unshare --dist=unstable --no-run-lintian dh-make-perl

2. The package uses /usr/lib/apt/apt-helper from the apt package in
lib/Debian/AptContents.pm. Note that apt is not essential so the package
has a missing build dependency on apt (and probably also a missing
dependency).

Cheers Jochen

#1107771#10
Date:
2025-08-09 20:15:15 UTC
From:
To:
Hi,

starting with forky /var/lib/dpkg/available will no longer be available
on the buildd chroots, so making this RC. The easiest fix would be to
disable the affected test. Please reach out if you need help with that.

Cheers Jochen

* Jochen Sprickerhof <jspricke@debian.org> [2025-06-14 08:16]:

#1107771#17
Date:
2025-08-10 06:33:19 UTC
From:
To:
For completeness,

you could also run the test in an autopkgtest.

Cheers Jochen

* Jochen Sprickerhof <jspricke@debian.org> [2025-08-09 22:15]:

#1107771#24
Date:
2025-08-10 16:21:50 UTC
From:
To:
Control: tag -1 + confirmed help

Ack, thanks.

I was trying to find out _what_ actually tries to access
/var/lib/dpkg/available but didn't manage to do so.

(I guess Dpkg::Index (or AptPkg::Config/AptPkg::Cache) but I'm not
sure.)

Finding the root of this problem might be better than just skipping
over it …


Cheers,
gregor

#1107771#31
Date:
2025-08-10 17:05:17 UTC
From:
To:
* gregor herrmann <gregoa@debian.org> [2025-08-10 18:21]:

I had a quick look and the attached patch fixes it for me.

Cheers Jochen

#1107771#38
Date:
2025-08-10 22:51:25 UTC
From:
To:
Wow, thank you and sorry for being so blind …


Cheers,
gregor

#1107771#41
Date:
2025-08-10 23:02:56 UTC
From:
To:
Hello,

Bug #1107771 in dh-make-perl reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/perl-team/modules/packages/dh-make-perl/-/commit/b6f5c53bfff89b6d193db8a15a971b1ed1a47faa
Thanks: Jochen Sprickerhof for the patch.
Closes: #1107771
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1107771

#1107771#48
Date:
2025-08-10 23:49:03 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
dh-make-perl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1107771@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
gregor herrmann <gregoa@debian.org> (supplier of updated dh-make-perl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 11 Aug 2025 01:11:20 +0200
Source: dh-make-perl
Architecture: source
Version: 0.129
Distribution: unstable
Urgency: medium
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Changed-By: gregor herrmann <gregoa@debian.org>
Closes: 1107771
Changes:
 dh-make-perl (0.129) unstable; urgency=medium
 .
   * dh-make-perl(1): update documentation.
     DPKG::Parse::Available has been replaced with Dpkg::Index in 0.120.
     Cf. #1107771
   * Add test and runtime dependency on apt. Cf. #1107771
     Thanks to Jochen Sprickerhof for the bug report.
   * DhMakePerl::Command::Packaging:
     Only load dpkg/available when it exists.
     Thanks to Jochen Sprickerhof for the patch.
     (Closes: #1107771)
Checksums-Sha1:
 e21dece927ec8121a7cfdf32eba537d8023e34d7 3126 dh-make-perl_0.129.dsc
 ec651ce6ce64b376f907841757f200a244997169 122664 dh-make-perl_0.129.tar.xz
Checksums-Sha256:
 68ef3b68a8c2c072be95e704047355782c13c3e2961aa7ac7b7ebee39f727faf 3126 dh-make-perl_0.129.dsc
 8fba8388fe4f53f7f5f148ba7e54c846347cb226a3864f2d00a371863ecf3256 122664 dh-make-perl_0.129.tar.xz
Files:
 378aedeecdabffd3ea4302b0fce52c1a 3126 perl optional dh-make-perl_0.129.dsc
 2676f482d409cfe219cea71758f5bf19 122664 perl optional dh-make-perl_0.129.tar.xz
-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAmiZJ4hfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx
RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ
qga6eQ/+IQ2cgszGGJtwdI3FoE7ocYbcX7YhKJZOcG2fO0cyXkOUVqYqn6Fq4zkc
EInc2mPeCavqIoEzvwqZNrQMENdyR+mPQ7/mbjcw1bdCvbLcTS9fJkfHhFpnKgYz
yC1QEjtp+Z6i2pxoPeNbsVU8FqC1qqtAeWe0UsySnNf+pnQ/DH4McM7VWv8g0f9i
Fov6yXoSTOpJNvygd2+dUqL5Qxdg0CFOx92mTIl4iUsBlg+ZCrRoAYsXB7hIEmyy
HY2x6Gt9cQY3OoeRApDLhrZ1eechjjdaZJI23WPksONMDwujbyjB5DBCLlV2OjCX
p2aRJzyoFUXg7gZQkkEyzdZ0QY1VGWekT4lFhLoVmXWPED46iYD72zmRIn0UoPk2
HSBAkH8JbMeGoAcH10kIBfaQ3CjJ4RwMwDwHS8Lr9daz9XxVBTNjgC2VMLfTW/Ok
Of2IRE7WpG/vgYsjG6oytzEvLx1yADGw6GMyp6blmFQ6lpKNkWSTsy48WEwL5ua8
nevVr1Nvl7SJY1nKs1ISx4AmEzvJ1b0ES4BmKMC5iIkesheZ/HpAxuhn2fsWA03r
Qu7bdz7Nc4pA1AGCm0mvtI7e/QJsGZaDCw+n3p4dBj13IDQaj7hKVRpA+relsUxE
K3LMm449ABjB0bvlDWmEm+sz4Ir+b2MI5IKl/1HyN9/cuIcoJ7E=
=2rHQ
-----END PGP SIGNATURE-----