Bug#1133353: pts-perl-tools: dpt fixup: dependency order pingpong

Roland Rosenfeld roland at debian.org
Mon Apr 13 15:38:06 BST 2026


Hi gregor!

On Sun, 12 Apr 2026, gregor herrmann wrote:

> wrap-and-sort wasn't used in dpt-fixup before pkg-perl-tools 0.86.
> 
> The (original) change was in libconfig-model-dpkg-perl.
> 
> Then I played around with various options and opted for using wrap-and-sort
> for the time being, but this can lead to this double change as
> wrap-and-sort/cme/debputy almost but not completely agree on the formatting
>> 
> /*
> In libconfig-model-dpkg-perl's git I found
> b47f787095a12e708ac572dbfce245b212181ac8:
> 
>     Dpkg backend: use style like wrap-and-sort -ast
> 
>     See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=849498#32 for
>     rationale
> */
> 
> 
> So yeah, we could switch dpt-fixup back to use cme (instead of
> wrap-and-sort); this would avoid _this_ annoyance but on the other hand
> might introduce changes which are more than just reformatting (that's
> #1125967).

If we define that "wrap-and-sort" does sorting the fields in our
preferred order, we could add another call of
 wrap-and-sort -ast -f debian/control
after the "cme modify dpkg-control" calls in lines 123/124.
This isn't a very clean solution, but avoids the pingpong, since it
always results in the order defined by wrap-and-sort.

(everything is better than the pingpong in the git history ;-)

Greetings
Roland
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20260413/9ee2cac5/attachment-0001.sig>


More information about the pkg-perl-maintainers mailing list