Invalid regular expressions describing Debian package file naming convention

Bug #1913869 reported by Jarno Suni
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
debian-reference (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In chapter 2.5.8. table Table 2.16 there must not be commas in the regular expressions unless comma is a valid character in that name component. Besides if '-' is valid, it should be the last one enumerated; otherwise it is a metacharacter. Also be more specific that these are POSIX Extended Regular Expressions. The bug occurs probably in all language versions, but I provide a patch for the English one.

Same valid characters apply in Ubuntu package naming, too, right?

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: debian-reference (not installed)
ProcVersionSignature: Ubuntu 5.4.0-65.73-generic 5.4.78
Uname: Linux 5.4.0-65-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.14
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: XFCE
Date: Sat Jan 30 12:11:42 2021
InstallationDate: Installed on 2019-12-05 (421 days ago)
InstallationMedia: Xubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
SourcePackage: debian-reference
UpgradeStatus: Upgraded to focal on 2020-07-10 (203 days ago)

Revision history for this message
Jarno Suni (jarnos) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch for ch02.en.html" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Jarno Suni (jarnos) wrote :

BTW it is confusing that uppercase letters are allowed for package name in .deb filename, but not in the package name itself: https://www.debian.org/doc/debian-policy/ch-controlfields.html#source

Revision history for this message
osamu (osamu) wrote :

I was not careful enough. This is not really tested regex (ERE). I think I need to fix it.

Also it has to be more than 2 characters

As for lower case package name, Policy is correct (and always so).

FYI: I have never seen a package name starting with - or . or + even though policy correct.

Thanks.

Revision history for this message
osamu (osamu) wrote :

Debian package in testing 2.81 fixed this. Tomorrow, Debian testing will be 2.83.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package debian-reference - 2.85

---------------
debian-reference (2.85) unstable; urgency=medium

  * Reorganize git.
  * Stop building epub (headache for reproducibility.)
  * Lock TZ and unlock parallel build.

 -- Osamu Aoki <email address hidden> Fri, 17 Sep 2021 18:11:56 +0900

Changed in debian-reference (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.