Bug#930118: libconfig-model-dpkg-perl: adds debian/compat despite debhelper-compat

gregor herrmann gregoa at debian.org
Wed Jun 12 18:54:51 BST 2019


On Wed, 12 Jun 2019 19:01:09 +0200, Dominique Dumont wrote:

> On Friday, 7 June 2019 16:17:33 CEST gregor herrmann wrote:
> > "debhelper-compat (= N)" in debian/control is the replacement for
> > both
> >     debhelper (>= N) # in debian/control
> > and
> >     N # in debian/compat
> 
> Doh, I missed this one.
> 
> Looks like some migration instructions are in order.
> Something like setting debhelper-compat value from the content of
> debian/compat..
> Does that sound right ?

One might argue that forcing this change-of-style is a bit intrusive;
but on the other hand it's supported by debhelper in buster and
stretch-backports and is now the recommended way … So yes, I think a
migration would be a good idea.

I'm not sure if this works for each debhelper compatibility level;
reading the source at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm:

    # Lowest compat level supported
    'MIN_COMPAT_LEVEL' => 5,
    # Lowest compat level that does *not* cause deprecation
    # warnings
    'LOWEST_NON_DEPRECATED_COMPAT_LEVEL' => 9,
    # Lowest compat level to generate "debhelper-compat (= X)"
    # relations for.
    'LOWEST_VIRTUAL_DEBHELPER_COMPAT_LEVEL' => 9,
    # Highest compat level permitted
    'MAX_COMPAT_LEVEL' => 13,

suggest that we need at least compat level 9 for this.
(Interestingly, LOWEST_VIRTUAL_DEBHELPER_COMPAT_LEVEL doesn't seem to
be used anywhere …)


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   NP: Tanita Tikaram: Twist In My Sobriety
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20190612/dabaaf5a/attachment.sig>


More information about the pkg-perl-maintainers mailing list