[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#703677: lsb-release is not derivative friendly



Package: lsb-release
Version: 4.1+Debian9
Severity: important

A Debian derivative is advised to fork base-files and to update the
information there so that it can be properly distinguished from Debian.
That's what we did for Kali and yet we have reportbug sending bug
reports to Debian:
$ reportbug apt
[...]
Will send report to Debian (per lsb_release).

So I looked at lsb-release's output:
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux Kali Linux 1.0
Release:	Kali Linux 1.0
Codename:	n/a

It's just wrong to return "Debian" as distributor ID when we have
this:
┏(kali-amd64) x230-buxy:~
┗(524)$ cat /etc/os-release 
PRETTY_NAME="Kali GNU/Linux 1.0"
NAME="Kali GNU/Linux"
ID=kali
VERSION="1.0"
VERSION_ID="1.0"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.kali.org/";
SUPPORT_URL="http://forums.kali.org/";
BUG_REPORT_URL="http://bugs.kali.org/";
┏(kali-amd64) x230-buxy:~
┗(525)$ cat /etc/dpkg/origins/default 
Vendor: Kali
Vendor-URL: http://www.kali.org/
Parent: debian
Bugs: http://bugs.kali.org
┏(kali-amd64) x230-buxy:~
┗(526)$ cat /etc/debian_version 
Kali Linux 1.0

So please update lsb_release's logic to use:
1/ /etc/lsb-release if it exists (it doesn't usually)
2/ /etc/os-release if it exists 
3/ /etc/dpkg/origins/default if none of the above exist
4/ some wild guess based on APT otherwise

Please let me know if you need help.


Reply to: