On Wed, Apr 22, 2009 at 03:45:23PM +0100, Enrico Zini wrote: > Package: debian-policy > Version: 3.8.1.0 > Severity: wishlist > Tags: patch > > Hello, > > Policy 5.6.7. `Package' defines "The name of the binary package.", but > it does not seem that the format of source package names is restricted > anythere. Sanity as well as, I'd say, common use, would say source has > the same format as binary. > > Clarifying it would be as trivial as this: > > 5.6.7. `Package' > ---------------- > > - The name of the binary package. > + The name of the source and binary package.
I think that would be incorrect; that section is very specifically
talking about the "Package" field in a debian/control or .dsc file, and
the Package field in such a file does *not* name the source package;
that's the job of the Source field.
It seems to me that it would be simplest just to copy the text from
5.6.7 (Package) to 5.6.1 (Source). Technically this imposes a new
requirement on source packages that's slightly stricter than that
imposed by dpkg-source, which from my brief reading of the code would
theoretically permit colons, commas, equals signs, and tildes too, but I
see no reason why those would be desirable and have never heard of
anyone trying to use them in source package names. I agree with you that
sanity and common use say that the two classes of package names have the
same format.
diff --git a/policy.sgml b/policy.sgml
index 0140043..144cbfb 100644
--- a/policy.sgml
+++ b/policy.sgml
@@ -2588,6 +2588,14 @@ Package: libc6
package control file when the source package has the same
name and version as the binary package.
</p>
+
+ <p>
+ Package names must consist only of lower case letters
+ (<tt>a-z</tt>), digits (<tt>0-9</tt>), plus (<tt>+</tt>)
+ and minus (<tt>-</tt>) signs, and periods (<tt>.</tt>).
+ They must be at least two characters long and must start
+ with an alphanumeric character.
+ </p>
</sect1>
<sect1 id="f-Maintainer">
I'm seeking seconds for this.
--
Colin Watson [[email protected]]
signature.asc
Description: Digital signature

