Re: Entries in Packages files that lack a Source field
Anthony Towns <firstname.lastname@example.org> writes:
> Adeodato Simó wrote:
>> As you probably know, entries in the Packages file only have a Source
>> field if the name of the source package is different from the name of
>> the binary package being described. This is an inconsistency that makes
>> it a bit harder to massage this data, e.g. with grep-dctrl.
> Why not add a patch to grep-dctrl instead?
And have it insert Source: ... entries into debian/control files?
grep-dctrl does not want to have special knowledge about the data
content of what it greps but is ment to work on anything resembling
RFC822 headers. So while it would be possible to teach grep-dctrl
about Packages files and add Source: ... lines it is not desireable.
There is also another reason for more Source: ... entries in the
Packages file mentioned in an unrelated thread earlier and also a
reason why grep-dctrl can't rebuild that entry:
The detection of binary NMUs is currently, among others, using the
debian version of a package and guessing from its form. What is a
binary NMU and what not is not aparent from the Packages file. It has
been suggested to insert Source: entries pointing to the original
source of an binary NMU instead.
Binary: fftw2, fftw-dev, fftw-docs, sfftw-dev, sfftw2
Binary: libnumerix-ocaml-dev, libcnumx0-dev, numerix-doc, libnumerix-ocaml, libcnumx0
What should grep-dctrl do there? Guessing that -x.y.z is an binary NMU
or not? Either way one of them will be wrong.