FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 10-19-2011, 11:45 AM
Tollef Fog Heen
 
Default Bug#645895: ftp.debian.org: epoch should be part of the .deb file name

]] Tollef Fog Heen

| I would suggest %-encoding it, so foo-1:1 becomes foo_1%251_all.deb.

s/%25/%3a/

--
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87y5whb3xr.fsf@qurzaw.varnish-software.com">http://lists.debian.org/87y5whb3xr.fsf@qurzaw.varnish-software.com
 
Old 10-19-2011, 12:17 PM
Neil Williams
 
Default Bug#645895: ftp.debian.org: epoch should be part of the .deb file name

On Wed, 19 Oct 2011 13:42:06 +0200
Tollef Fog Heen <tfheen@debian.org> wrote:

> Package: ftp.debian.org
> Severity: normal
>
> (Cc-ed to debian-devel@l.d.o for their input in whether this would cause
> problems anywhere else in the toolchain.)
>
> It's a bit confusing that the file names of .debs don't contain the
> epoch. I think we should change that.

Is there any reason other than aesthetics to change this? There are a
lot of tools which have to build a .deb filename from debian/control
and debian/changelog or from a Packages file. Right now it is trivial
to strip the epoch where necessary - this change requires multiple
character substitution which is far more error prone.

(It would dramatically complicate all the tools I'm using / developing
for Emdebian.)

The epoch is fully visible in the pool/ and has no direct relevance to
the binary package version.

> I would suggest %-encoding it, so foo-1:1 becomes foo_1%251_all.deb.

... which then complicates any number of previously working regular
expressions in tools all over the place.

I think we should not have % characters in .deb filenames if at all
possible.

> The reason to not include a : verbatim is it won't work correctly on all
> file systems (: gets translated to / in the UI on Mac OS X and is
> disallowed for at least FAT, I'm not sure about NTFS). Also, : is
> traditionally how you reference remote files and devices with tar and
> scp (and probably more tools), so avoiding : in files names seem
> prudent.

Avoiding unnecessary changes would also seem prudent. I for one don't
think this change would be at all helpful.

--


Neil Williams
=============
http://www.linux.codehelp.co.uk/
 
Old 10-19-2011, 12:39 PM
Tollef Fog Heen
 
Default Bug#645895: ftp.debian.org: epoch should be part of the .deb file name

]] Neil Williams

| On Wed, 19 Oct 2011 13:42:06 +0200
| Tollef Fog Heen <tfheen@debian.org> wrote:
|
| > Package: ftp.debian.org
| > Severity: normal
| >
| > (Cc-ed to debian-devel@l.d.o for their input in whether this would cause
| > problems anywhere else in the toolchain.)
| >
| > It's a bit confusing that the file names of .debs don't contain the
| > epoch. I think we should change that.
|
| Is there any reason other than aesthetics to change this?

The first and obvious one is to avoid file name clashes in the
archive. Another one is so the version number in the file name actually
is the version number of the package which makes it less confusing when
you need to download a package with an epoch by hand for whatever
reason.

| There are a lot of tools which have to build a .deb filename from
| debian/control and debian/changelog or from a Packages file. Right now
| it is trivial to strip the epoch where necessary - this change
| requires multiple character substitution which is far more error
| prone.
|
| (It would dramatically complicate all the tools I'm using / developing
| for Emdebian.)

If it would dramatically complicate all the tools you're using for
Emdebian, your tools must be pretty simple and I'd suggest you move the
bits that generates debs into some sort of module. Or your toolset
isn't particularly big. :-)

Multi-character substitutions are not particularly hard to do, nearly no
matter which language you're talking about.

| The epoch is fully visible in the pool/ and has no direct relevance to
| the binary package version.

No, it's not visible in the pool. That's what I'm suggesting we
change.

| > I would suggest %-encoding it, so foo-1:1 becomes foo_1%251_all.deb.
|
| ... which then complicates any number of previously working regular
| expressions in tools all over the place.

You shouldn't trust the file name to contain the version number anyway.

| I think we should not have % characters in .deb filenames if at all
| possible.

Why not? Are there any tools that have trouble with % characters in
file names?

--
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87ty75b1fh.fsf@qurzaw.varnish-software.com">http://lists.debian.org/87ty75b1fh.fsf@qurzaw.varnish-software.com
 
Old 10-19-2011, 01:49 PM
Tollef Fog Heen
 
Default Bug#645895: ftp.debian.org: epoch should be part of the .deb file name

]] Henrique de Moraes Holschuh

| On Wed, 19 Oct 2011, Tollef Fog Heen wrote:
|
| > The first and obvious one is to avoid file name clashes in the
| > archive. Another one is so the version number in the file name actually
| > is the version number of the package which makes it less confusing when
| > you need to download a package with an epoch by hand for whatever
| > reason.
|
| It will also break random scripts out there, so we might actually want to
| have it very clear on how much benefit we'd get from this change.

Yes. And some are probably broken because they think that the files are
named $package_$version_$arch.deb and don't strip the epoch.

| > You shouldn't trust the file name to contain the version number anyway.
|
| What would be the point of it all, then?

That tools handling .debs can't trust the file name to match the package
and version doesn't mean we shouldn't generate packages where the name
matches the package and version.

| We have never had a filename version clash. Even if it would
| eventually happen, it is best that the maintainer bring it up for some
| brainstorming, because it CAN cause a lot of annoyance (people are NOT
| often aware of epochs).

I'm not sure we've never had a clash. The maintainer might well just
have worked around it silently.

| > | I think we should not have % characters in .deb filenames if at all
| > | possible.
| >
| > Why not? Are there any tools that have trouble with % characters in
| > file names?
|
| Well, while % is xml/xhtml/html-friendly, it is *not* http-friendly, and
| will require double-encoding.

Yes, that's somewhat ugly. You already have to handle % encoded links
for anything pointing to packages with version numbers including ~
though, so this won't make any difference there.

Cheers,
--
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87pqhtay6e.fsf@qurzaw.varnish-software.com">http://lists.debian.org/87pqhtay6e.fsf@qurzaw.varnish-software.com
 
Old 10-19-2011, 03:04 PM
Ognyan Kulev
 
Default Bug#645895: ftp.debian.org: epoch should be part of the .deb file name

На 19.10.2011 16:18, Henrique de Moraes Holschuh написа:

Well, while % is xml/xhtml/html-friendly, it is *not* http-friendly, and
will require double-encoding.


So we have encoding ":" anyway. What about using ".." (horizontal ":")
- it looks much nicer than %-encoding.


Regards,
Ognyan Kulev


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4E9EE6E0.8020702@tower.3.bg">http://lists.debian.org/4E9EE6E0.8020702@tower.3.bg
 
Old 10-19-2011, 05:19 PM
Joachim Wiedorn
 
Default Bug#645895: ftp.debian.org: epoch should be part of the .deb file name

Tollef Fog Heen <tfheen@err.no> wrote on 2011-10-19 15:49:

> Yes, that's somewhat ugly. You already have to handle % encoded links
> for anything pointing to packages with version numbers including ~
> though, so this won't make any difference there.

And it would be more difficult for reading - at least for me. Every time
copying package files from apt cache which *have* the epoch included I
remove this short part in the file names (e.g. 4%3a) because it is bad to
read and have no benefit.

---
Have a nice day.

Joachim (Germany)


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111019191921.2e637628@jupiter.home">http://lists.debian.org/20111019191921.2e637628@jupiter.home
 
Old 10-19-2011, 07:45 PM
Henrique de Moraes Holschuh
 
Default Bug#645895: ftp.debian.org: epoch should be part of the .deb file name

On Wed, 19 Oct 2011, Ognyan Kulev wrote:
> На 19.10.2011 16:18, Henrique de Moraes Holschuh написа:
> >Well, while % is xml/xhtml/html-friendly, it is *not* http-friendly, and
> >will require double-encoding.
>
> So we have encoding ":" anyway. What about using ".." (horizontal
> ":") - it looks much nicer than %-encoding.

Because that's a valid version in itself, and also a valid component of a
valid version.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111019194545.GA25398@khazad-dum.debian.net">http://lists.debian.org/20111019194545.GA25398@khazad-dum.debian.net
 

Thread Tools




All times are GMT. The time now is 10:41 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org