Bug#865720: libconfig-model-dpkg-perl: hard-codes the list of virtual packages, mistake in recent update

Paul Wise pabs at debian.org
Sat Jun 24 06:27:48 UTC 2017


Package: libconfig-model-dpkg-perl
Version: 2.090
Severity: wishlist
Usertags: hardcoding

libconfig-model-dpkg-perl hard-codes the list of virtual package names
in the @virtual_list array in the lib/Config/Model/Dpkg/Dependency.pm
file. The authoritative list is available in the debian-policy package.
Config::Model::Dpkg should depend on debian-policy and use the Perl
equivalent of the below command to extract the list of virtual
packages. This would prevent the kind of mistake that was recently
done in the below commit (wish -> virtual-mysql-testsuitewish).

gunzip < /usr/share/doc/debian-policy/virtual-package-names-list.txt.gz | grep  '^ [a-z]' | sed 's/^ //;s/ .*//;s/^/ /' | sort -u
https://anonscm.debian.org/cgit/pkg-perl/packages/libconfig-model-dpkg-perl.git/commit/?id=70c09c8edc6ceef0992eabebc8b22f1ef73e6440

Unfortunately for this to work properly, you will have to ask
debian-policy folks to move the virtual-package-names-list.txt file
outside of the /usr/share/doc directory, since Debian Policy forbids
depending on files in /usr/share/doc. Perhaps the debian-policy build
process could generate a package containing just the list generated by
the command I recommended above.

-- System Information:
Debian Release: 9.0
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libconfig-model-dpkg-perl depends on:
ii  libapt-pkg-perl                              0.1.32
ii  libarray-intspan-perl                        2.003-1
ii  libconfig-model-perl                         2.097-2
ii  libexporter-lite-perl                        0.08-1
ii  liblog-log4perl-perl                         1.48-1
ii  libmouse-perl                                2.4.7-1
ii  libparse-recdescent-perl                     1.967013+dfsg-1
ii  libsoftware-license-perl                     0.103012-1
ii  libtext-autoformat-perl                      1.740000-2
ii  libtext-levenshtein-damerau-perl             0.41-1
ii  liburi-perl                                  1.71-1
ii  libwww-perl                                  6.15-1
ii  libyaml-perl                                 1.21-1
ii  licensecheck                                 3.0.29-1
ii  lintian                                      2.5.51
ii  perl                                         5.24.1-3
ii  perl-modules-5.24 [libmodule-corelist-perl]  5.24.1-3

Versions of packages libconfig-model-dpkg-perl recommends:
pn  libconfig-model-tkui-perl  <none>

libconfig-model-dpkg-perl suggests no packages.

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20170624/7a636f34/attachment.sig>


More information about the pkg-perl-maintainers mailing list