--- Begin Message ---
Package: lsb-release
Version: 9.20170808
Severity: wishlist
Debian's Python implementation of the LSB-standardized lsb_release
command parses various sources of data, including the non-standardized
configuration file /etc/lsb-release. That file doesn't exist in Debian,
but is typically shipped in base-files by derivatives. It is not "API"
itself, although packages designed for Ubuntu sometimes treat it as
though it was.
systemd defines a new "API", which has been adopted in Debian even
for non-systemd systems: the /usr/lib/os-release file (formerly
/etc/os-release, which is now a symlink). This "API" is defined in terms
of parsing a text file, not running a Python program, so it's much faster
to use.
If lsb_release looked at /usr/lib/os-release, then derivatives could edit
that file and /etc/dpkg/origins/default (which they need to do anyway)
and wouldn't usually need to add /etc/lsb-release. /usr/lib/os-release
uses the same subset of shell syntax as /etc/lsb-release.
The fields are:
lsb_release -r, --release: e.g. "9.6"
/etc/lsb-release DISTRIB_RELEASE
This appears to be os-release's optional VERSION_ID (not VERSION,
for which the example given in the man page includes a Fedora release
codename as well as the bare version number), except that stretch's
os-release just says "9", not "9.6". For the sorts of uses people
make of lsb_release (for example gating features that should only be
enabled in newer Debian), I think it would probably make most sense
for this to be 10 for the whole lifetime of buster, ignoring point
releases? Or it could preferentially come from /etc/debian_version,
which would retain the minor version.
lsb_release -c, --codename: e.g. "stretch"
/etc/lsb-release DISTRIB_CODENAME
This is exactly os-release's optional VERSION_CODENAME.
lsb_release -i, --id: e.g. "Debian" or "Ubuntu"
/etc/lsb-release DISTRIB_ID
/etc/dpkg/origins/default Vendor
There is no direct equivalent in os-release (ID is "debian", NAME is
"Debian GNU/Linux", neither of which matches) but /etc/dpkg/origins
should be sufficient to not need /etc/lsb-release; using os-release
ID, possibly transformed to title-case, might be a good fallback.
lsb_release -d, --description: e.g. "Debian GNU/Linux 9.6 (stretch)"
/etc/lsb-release DISTRIB_DESCRIPTION
Fallback is "${ID} ${OS} ${RELEASE} (${CODENAME})"
os-release PRETTY_NAME looks suitable for this. It can include the
OS vendor, version number and/or codename. One difference is that
stretch has PRETTY_NAME="Debian GNU/Linux 9 (stretch)", without the
9.6; but I don't think that's a very important distinction, so it
might make most sense for $(lsb_release -ds) in the buster release
to be "Debian GNU/Linux 10 (buster)" across all point releases.
Regards,
smcv
--- End Message ---
--- Begin Message ---
Source: lsb
Source-Version: 10.2018112800
We believe that the bug you reported is fixed in the latest version of
lsb, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 914287@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Didier Raboud <odyx@debian.org> (supplier of updated lsb package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 28 Nov 2018 20:21:37 +0100
Source: lsb
Binary: lsb-base lsb-release
Architecture: source
Version: 10.2018112800
Distribution: unstable
Urgency: medium
Maintainer: Debian LSB Team <debian-lsb@lists.debian.org>
Changed-By: Didier Raboud <odyx@debian.org>
Description:
lsb-base - Linux Standard Base init script functionality
lsb-release - Linux Standard Base version reporting utility
Closes: 914287
Changes:
lsb (10.2018112800) unstable; urgency=medium
.
* Remove support for /etc/lsb-release in favour of /usr/lib/os-release
(Closes: #914287)
* Rephrase lsb-release's README.Debian
.
* Packaging cleanup
- Bump S-V without changes needed
- Bump debhelper compat to 11
- Move Vcs to Salsa, update Vcs-*
- Drop obsolete X-Python3-Version from d/control
- d/copyright: use https URL
Checksums-Sha1:
d73858bd372cee6f4af083920d4fb52f4cddfb7e 1695 lsb_10.2018112800.dsc
d895b56c9f6da02e8897b84906f3e327bc3e7fa7 42076 lsb_10.2018112800.tar.xz
Checksums-Sha256:
8b280e3fbf938eead60d64c92d23425968b44edd91fcbed8c9206c25229616c9 1695 lsb_10.2018112800.dsc
5a3469feef00979bdc00f85607c35df9f45ff312a44c91179400d63300184c08 42076 lsb_10.2018112800.tar.xz
Files:
b7845c87ead3fcfa6af6ba6407f98a3e 1695 misc extra lsb_10.2018112800.dsc
5de465109944d4b347e9a07fbe4247a9 42076 misc extra lsb_10.2018112800.tar.xz
-----BEGIN PGP SIGNATURE-----
iQGzBAEBCgAdFiEEe+WPIRpjNw1/GSB7i8+nHsoWNFUFAlv+7wUACgkQi8+nHsoW
NFXDqgv/QS7qofnm11n33at97PdIRqRFUakT4+s47lsJt3EUhKPms4wAwh8ooKsP
vVEe3LI2Z2BhpdMBcVX/5Ck+VYYt63rnoMt00nib+JAbGwXZzNiMK7JjPlgQMqck
hhocmPEISpxbV6e2VZdY3UwT2ozsSmtVXVX2e9B3Tik5HkZdJg3O+aQeOMXZTADy
L/x7ItLbcOu1xmUH0x8g3QLcQfYOSaTIfjwwSyrcGF8UznW4JePwTHFtC9dL6czg
mh23lvR/d2AEGcFkE8Izw3KQ/xA2x0hhmv/0ojeCwslgIoI3NlTf7b/chIp2NCdW
4plKPZD3RxtV1kahoDUTCnwwlgH1li5UonH+w9dPcz7thNOOBLtD7w14PUepBmml
LnfPQodXp5+I7TcBm3C/sY32xm7WZMQwPBwadAJkgF+wnckyhlqrKT5JYi2kCim8
ffIUTK5TmQv3ojouSooUxUSyu9XuCOxYuKc9x7NNrgvCkWP72lQDZYox0fZ5zVKS
kLmZ4EMY
=m3gj
-----END PGP SIGNATURE-----
--- End Message ---