Package: debhelper
Version: 13.8
Severity: wishlist
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu kinetic

Hi Niels,

I was recently doing work on a package where, for $reasons, I was deleting a
binary package from debian/control.

This had very bad side effects, because the debian/ directory for this
package contained debian/dirs, debian/install, and debian/postinst; and the
package I was deleting from debian/control was the first listed; so the
consequence of this change was that debhelper was suddenly applying these
files to the next binary package in debian/control, with very incorrect
effects.

This kind of packaging, with some packaging files under debian/ having an
associated binary package name and some not, is an antipattern.

I would like to suggest that in the next debhelper compat level, debhelper
should consider it an error when debian/control lists more than one binary
package, but contains unnamed packaging files under debian/.  This of course
would only solve this particular class of bug for packages that update to
the current debhelper compat level, and changing debian/control to remove
(or reorder) binary packages is an infrequent operation; nevertheless this
seems worth doing IMHO.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org

Attachment: signature.asc
Description: PGP signature

Reply via email to