Bug#666726: debian-policy: Clarify if empty control fields are ollowed or not
On Sun, Nov 23, 2014 at 01:46:10PM -0200, Henrique de Moraes Holschuh wrote:
> On Sun, 23 Nov 2014, Bill Allombert wrote:
> > diff --git a/policy.sgml b/policy.sgml
> > index 6eac491..66de529 100644
> > --- a/policy.sgml
> > +++ b/policy.sgml
> > @@ -2556,13 +2556,15 @@ endif
> > <example compact="compact">
> > Package: libc6
> > </example>
> > the field name is <tt>Package</tt> and the field value
> > <tt>libc6</tt>.
> > </p>
> > -
> > + <p> Empty fields value are only permitted in source package control files
> > + (<file>debian/control</file>). Such fields are ignored.
> > + </p>
> > <p>
> > A paragraph must not contain more than one instance of a
> > particular field name.
> > </p>
> > <p>
> I'm okay with this, but wouldn't it be better if it were more assertive
> about the fact that empty fields must be supported in source packages, and
> must be removed when generating binary packages?
I understand, but writing patches need to keep the general structure of the
document and making changes is more convoluted than expected.
Anyway, this is a second try.
Imagine a large red swirl here.
Author: Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>
Date: Sun Nov 23 16:16:21 2014 +0100
Document that empty field values are only allowed in debian/control.
diff --git a/policy.sgml b/policy.sgml
index 6eac491..55b558f 100644
@@ -2556,13 +2556,15 @@ endif
the field name is <tt>Package</tt> and the field value
+ <p> Empty field values are only permitted in source package control files
+ (<file>debian/control</file>). Such fields are ignored.
A paragraph must not contain more than one instance of a
particular field name.
@@ -2699,12 +2701,13 @@ Package: libc6
<file>.dsc</file> source control file as part of a source
archive. Some fields are folded in <file>debian/control</file>,
but not in any other control
file. These tools are responsible for removing the line
breaks from such fields when using fields from
<file>debian/control</file> to generate other control files.
+ They are also responsible for discarding empty fields.
The fields here may contain variable references - their
values will be substituted by <prgn>dpkg-gencontrol</prgn>,
<prgn>dpkg-genchanges</prgn> or <prgn>dpkg-source</prgn>