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

Dominique Dumont dod at debian.org
Sat Jun 24 17:13:28 UTC 2017


On Friday, 23 June 2017 23:39:36 CEST Russ Allbery wrote:
> It's worth noting that registering a virtual package with Policy is
> optional if it is used among a cooperating set of packages, and there are
> numerous virtual packages in Debian that are not listed there.

Indeed, Config;:Model::Dependency hard codes [1] a list of other virtual 
packages (the ones I stumbled upon :-/ ) on top of the official list.

> That said, if there's some desire for automated consumption of the list
> from the Policy package, I'd be happy to provide it in a machine-readable
> format. 

Yes, please, I'd rather avoid manual duplicating of information (even if this
list does not change often)

> I wonder if there would be some merit in building a separate
> binary package from the debian-policy source package that includes a few
> lists like that (archive sections also come to mind) in machine-readable
> formats in /usr/share somewhere.

Indeed, the list of section is also hardcoded [2] in libconfig-model-dpkg-perl.

In the meantime, I'll fix the mistake I made with the list of virtual packages. 

Many thanks to Paul for the heads-up.

All the best

[1] https://anonscm.debian.org/cgit/pkg-perl/packages/libconfig-model-dpkg-perl.git/tree/lib/Config/Model/Dpkg/Dependency.pm#n139
[2] https://anonscm.debian.org/cgit/pkg-perl/packages/libconfig-model-dpkg-perl.git/tree/lib/Config/Model/models/Dpkg/Control/Source.pl#n103

-- 
 https://github.com/dod38fr/   -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/  -o-   irc: dod at irc.debian.org



More information about the pkg-perl-maintainers mailing list