Re: [PATCH] Specify policy for use of revision IDs in version numbers
- To: Osamu Aoki <email@example.com>, Ben Hutchings <firstname.lastname@example.org>, email@example.com, Cyril Brulebois <firstname.lastname@example.org>, Steve McIntyre <email@example.com>, Henrique de Moraes Holschuh <firstname.lastname@example.org>, email@example.com
- Subject: Re: [PATCH] Specify policy for use of revision IDs in version numbers
- From: Guillem Jover <firstname.lastname@example.org>
- Date: Thu, 5 May 2011 12:46:15 +0200
- Message-id: <[🔎] 20110505104615.GB20731@gaara.hadrons.org>
- Mail-followup-to: Osamu Aoki <email@example.com>, Ben Hutchings <firstname.lastname@example.org>, email@example.com, Cyril Brulebois <firstname.lastname@example.org>, Steve McIntyre <email@example.com>, Henrique de Moraes Holschuh <firstname.lastname@example.org>, email@example.com
- In-reply-to: <[🔎] 20110501152739.GI19957@yellowpig>
- References: <20110423141216.GE32680@debian.org> <1304197533.2833.79.camel@localhost> <firstname.lastname@example.org> <[🔎] 20110501003325.GA3298@debian.org> <[🔎] email@example.com> <[🔎] 20110501152739.GI19957@yellowpig>
On Sun, 2011-05-01 at 17:27:39 +0200, Bill Allombert wrote:
> On Sat, Apr 30, 2011 at 09:00:14PM -0700, Russ Allbery wrote:
> > So the reason for imposing a length restriction on version numbers in
> > particular is due to the UI display of aptitude? I'm a bit dubious that
> > this is a good justification for a Policy rule. dpkg -l has truncated
> > version numbers for forever at 14 characters, and I don't recall this
> > being a major issue in the past.
dpkg -l only truncates the output on terminals, and then only if the
width is not enough to display the whole thing. aptitude seems to be
truncating always the version to 10 characters, regardless of terminal
> > The thing that started off this thread,
> > I thought, was the constraint on file name length in ISO images, which is
> > the total length and doesn't impose a constraint specifically on the
> > version.
> Also there are no technical requirement for packages filenames in ISO
> images to be canonical packages names. Packages filename can be mangled
> to fit the medium, there is a program 'dpkg-name' to recover the
> canonical packages name.
Exactly, we could also add a new option to dpkg-name to select which
naming layout to use, for example:
or something along these lines. Currently dpkg-split already has a
--msdos option to generate a 8.3 filename for the split files, which
could be deprecated in favour of dpkg-name instead.
> This requires the same mangling to be applied
> to the filenames in the Packages files, but this not an issue since the
> Packages file is in the same medium.
Well, this has already been solved long time ago, although the
restrictions were different then, the dselect methods have supported
the MSDOS-Filename field as a fallback to the Filename one. So the
Packages file is usable not only for CDs/DVDs.
The problem is that it seems that most (at least apt, cupt and smart) of
the other front-ends do not support such field, so support would need
to be added first. At that point the field could be named more
appropriately I guess. I'm adding this to the things to discuss with
dpkg front-end developer.