Bug#675731: base-files: Please add VERSION entry to /etc/os-release for unstable/testing too

June 02nd, 2012 - 08:30 pm ET by Jeremy Bicha | Report spam
Package: base-files
Version: 6.8
Severity: wishlist

As requested in http://bugs.debian.org/659853 Debian now includes
/etc/os-release. Therefore, I'd like to drop the lsb-release
dependency from epiphany-browser. We use three pieces of info for the
OS-specific part of the useragent: the distro name, the distro
version, and the package version. Those three pieces (and some
punctuation) currently result in "Debian/unstable (3.4.2-1)" or
"Ubuntu/12.10 (3.5.1-0ubuntu1)".

I'd like to use the ID and VERSION fields of /etc/os-release to fill
in these fields, but Debian's implementation does not include a
VERSION entry except for stable releases. I'd like to propose setting
both VERSION and VERSION_ID to "wheezy". This can be distinguished
from the released form because it doesn't include the version number
(i.e 7.0). I believe the useragent generated would then be
"debian/wheezy (3.4.2-2)". (I don't want to use the NAME field as the
extra slash in GNU/Linux might not play well with useragent
parsers...)

Also, you should probably include HOME_URL and BUG_REPORT_URL values.

Thanks,
Jeremy

Debian Release: wheezy/sid
APT prefers quantal-updates
APT policy: (500, 'quantal-updates'), (500, 'quantal-security'),
(500, 'quantal'), (100, 'quantal-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4.0-3-generic (SMP w/2 CPU cores)

Versions of packages base-files depends on:
ii gawk [awk] 1:4.0.1+dfsg-2
ii mawk [awk] 1.3.3-17

base-files recommends no packages.

base-files suggests no packages.




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Santiago Vila
June 03rd, 2012 - 08:10 am ET | Report spam
On Sat, 2 Jun 2012, Jeremy Bicha wrote:

Package: base-files
Version: 6.8
Severity: wishlist

As requested in http://bugs.debian.org/659853 Debian now includes
/etc/os-release. Therefore, I'd like to drop the lsb-release
dependency from epiphany-browser. We use three pieces of info for the
OS-specific part of the useragent: the distro name, the distro
version, and the package version. Those three pieces (and some
punctuation) currently result in "Debian/unstable (3.4.2-1)" or
"Ubuntu/12.10 (3.5.1-0ubuntu1)".

I'd like to use the ID and VERSION fields of /etc/os-release to fill
in these fields, but Debian's implementation does not include a
VERSION entry except for stable releases.



Which is right. Wheezy is not a version, it's just a codename.
It will become Debian 7.0 when it's stable, but it's wrong to think
of "wheezy" as a version.

I feel that you are trying to fix an aesthetic bug in the user-agent
by requesting that everybody else does things in a different way.

If you want "wheezy", why can't you do this if VERSION is empty?

echo $PRETTY_NAME | awk '{ print $3 }' | sed -e 's#/.*##'



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics