#1089794 debian-policy: Explicitly state that d/changelog and d/control must align on the source name

#1089794#5
Date:
2024-12-12 16:50:16 UTC
From:
To:
Hi

This is an editorial request. Neither 4.4 nor 5.6.1 states that the
first package in `d/changelog` must be aligned with the `Source` field
in `d/control`. Arguably, it is possibly implicit.

Nevertheless, the only explicit document reference that I can find is
`man:deb-src-control(5)` (when describing the `Source` field). It is
definitely a MUST requirement. Even though `dpkg` says "should" in that
manpage, it flat out aborts if the two are not aligned.

I could see an argument for documenting it in 4.4 with a mention that
historical entries can have a different package name if the source
package was ever renamed.

Best regards,
Niels

#1089794#10
Date:
2024-12-31 17:02:42 UTC
From:
To:
Hi!

I fixed this locally for dpkg after Niels mentioned it, and I've not just
pushed the change to dpkg's git:

https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=8b37608eae29018ce88c8f1f9021f914c5f99bdc

Will be part of dpkg 1.22.12.

Thanks,
Guillem