Bug#914287: marked as done (lsb-release: please parse /usr/lib/os-release and deprecate /etc/lsb-release)
"Debian Bug Tracking System" <[email protected]> Wed, 28 Nov 2018 19:51:07 +0000
| Newsgroups | gmane.linux.debian.devel.lsb |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format... ------------=_1543434667-303-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your message dated Wed, 28 Nov 2018 19:49:38 +0000 with message-id <[email protected]> and subject line Bug#914287: fixed in lsb 10.2018112800 has caused the Debian Bug report #914287, regarding lsb-release: please parse /usr/lib/os-release and deprecate /etc/= lsb-release to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) --=20 914287: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D914287 Debian Bug Tracking System Contact [email protected] with problems ------------=_1543434667-303-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by bugs.debian.org; 21 Nov 2018 16:12:41 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02 (2018-09-13) on buxtehude.debian.org X-Spam-Level: X-Spam-Status: No, score=-22.6 required=4.0 tests=BAYES_00,FOURLA, FROMDEVELOPER,HAS_PACKAGE,RCVD_IN_DNSWL_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.2-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 15; hammy, 150; neutral, 106; spammy, 0. spammytokens: hammytokens:0.000-+--H*F:U*smcv, 0.000-+--H*r:[email protected], 0.000-+--H*rp:U*smcv, 0.000-+--H*RU:[email protected], 0.000-+--Hx-spam-relays-external:[email protected] Return-path: <[email protected]> Received: from illusion.pseudorandom.co.uk ([93.93.129.19]) by buxtehude.debian.org with esmtp (Exim 4.89) (envelope-from <[email protected]>) id 1gPV7I-0007nv-Ud for [email protected]; Wed, 21 Nov 2018 16:12:41 +0000 Received: by illusion.pseudorandom.co.uk (Postfix, from userid 1000) id 09D03122514; Wed, 21 Nov 2018 16:12:39 +0000 (GMT) Date: Wed, 21 Nov 2018 16:12:35 +0000 From: Simon McVittie <[email protected]> To: Debian Bug Tracking System <[email protected]> Subject: lsb-release: please parse /usr/lib/os-release and deprecate /etc/lsb-release Message-ID: <[email protected]> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mutt-Fcc: =.lists.debian/ X-Reportbug-Version: 7.5.0 User-Agent: Mutt/1.10.1 (2018-07-13) Delivered-To: [email protected] 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 ------------=_1543434667-303-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 914287-close) by bugs.debian.org; 28 Nov 2018 19:49:39 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02 (2018-09-13) on buxtehude.debian.org X-Spam-Level: X-Spam-Status: No, score=-23.6 required=4.0 tests=BAYES_00,DIGITS_LETTERS, FROMDEVELOPER,FVGT_m_MULTI_ODD,HAS_BUG_NUMBER,MD5_SHA1_SUM, PGPSIGNATURE,RCVD_IN_DNSWL_MED,TXREP autolearn=ham autolearn_force=no version=3.4.2-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 90; hammy, 150; neutral, 159; spammy, 0. spammytokens: hammytokens:0.000-+--HX-Debian:DAK, 0.000-+--H*rp:D*ftp-master.debian.org, 0.000-+--HX-DAK:process-upload, 0.000-+--Hx-spam-relays-external:sk:envelop, 0.000-+--H*r:138.16.160 Return-path: <[email protected]> Received: from muffat.debian.org ([2607:f8f0:614:1::1274:33]) from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=muffat.debian.org,[email protected] (verified) by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <[email protected]>) id 1gS5q7-0008Ny-KR for [email protected]; Wed, 28 Nov 2018 19:49:39 +0000 Received: from fasolo.debian.org ([138.16.160.17]) from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=fasolo.debian.org,[email protected] (verified) by muffat.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <[email protected]>) id 1gS5q7-0003Cc-5q; Wed, 28 Nov 2018 19:49:39 +0000 Received: from dak by fasolo.debian.org with local (Exim 4.89) (envelope-from <[email protected]>) id 1gS5q6-00008R-7J; Wed, 28 Nov 2018 19:49:38 +0000 From: Didier Raboud <[email protected]> To: [email protected] X-DAK: dak process-upload X-Debian: DAK X-Debian-Package: lsb MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: Bug#914287: fixed in lsb 10.2018112800 Message-Id: <[email protected]> Date: Wed, 28 Nov 2018 19:49:38 +0000 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 [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Didier Raboud <[email protected]> (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 [email protected]) -----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 <[email protected]> Changed-By: Didier Raboud <[email protected]> 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----- ------------=_1543434667-303-0--