Bug#1111291: libconfig-model-dpkg-perl: Unknown fields have their order randomized
Niels Thykier
niels at thykier.net
Sat Aug 16 15:21:42 BST 2025
Package: libconfig-model-dpkg-perl
Severity: minor
X-Debbugs-Cc: niels at thykier.net
Hi,
When `cme fix dpkg-control` is applied to a `debian/control` file with
fields that `cme` does not know about, `cme` orders them at the bottom
of the stanza (at least for the `Source` stanza). So far so good.
However, the order is not consistent between runs. That is, if you start
with a `debian/control` that can be will be reformatted, run `cme fix
dpkg-control`, note the field order as O1. Then reset the
`debian/control` (git restore -- debian/control), run `cme fix
dpkg-control` and note the new field order as O2.
I expected O1 to equal O2, but it does not when there are multiple
unknown fields. This can trigger unnecessary edits such as via
`routine-update` (which uses `cme fix dpkg-control`).
Best regards,
Niels
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20250816/86a494be/attachment.sig>
More information about the pkg-perl-maintainers
mailing list