On Wed, 01 Jul 2009, Emilio Pozuelo Monfort wrote: > I'm implementing automatic creation of debug packages, and to generate > their binary control file I'm using dpkg-gencontrol. The debug package > are not listed in debian/control, and thus when calling dpkg-gencontrol > I get something like: > > $ dpkg-gencontrol -DPackage=foo -pfoo > dpkg-gencontrol: error: package foo not in control info > > Since I'm adding the field "Package: foo" using -D, I'd expect that to > work. > > What do you think? I'm willing to provide patches if you think this is > or might be a good idea.
I think this is crazy. The entry for package foo would be mostly empty anyway. I suggest you generate another file (copying it and extending it as required) and you use the -c option of dpkg-gencontrol to use that file instead of debian/control. That file can even be a temporary file outside of the source tree. Generating binary control files for non-referenced packages could be a new feature, but it would be a new option and would not be based on a hack like you suggest: dpkg-gencontrol --dynamic -pfoo. This would fail if the the package foo is listed in the control file. Would that really be useful compared to creating another control file dynamically ? Cheers, -- Raphaël Hertzog Contribuez à Debian et gagnez un cahier de l'admin Debian Lenny : http://www.ouaza.com/wp/2009/03/02/contribuer-a-debian-gagner-un-livre/ -- To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org