From unknown Thu Mar 28 21:46:08 2024 X-Loop: owner@bugs.devuan.org Subject: bug#468: python platform.linux_distribution() returns debian Reply-To: Mark Hindley , 468@bugs.devuan.org Resent-From: Mark Hindley Resent-To: devuan-bugs@lists.dyne.org Resent-CC: devuan-dev@lists.dyne.org X-Loop: owner@bugs.devuan.org Resent-Date: Fri, 22 May 2020 10:03:01 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.devuan.org X-Devuan-PR-Message: followup 468 X-Devuan-PR-Package: libpython2.7-minimal X-Devuan-PR-Keywords: References: <1590075215.2942.97.camel@baldur.shiftshaper.org.uk> <1590075215.2942.97.camel@baldur.shiftshaper.org.uk> Received: via spool by 468-submit@bugs.devuan.org id=B468.159014100518265 (code B ref 468); Fri, 22 May 2020 10:03:01 +0000 Received: (at 468) by bugs.devuan.org; 22 May 2020 09:50:05 +0000 Delivered-To: devuanbugs@dyne.org Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for (single-drop); Fri, 22 May 2020 09:50:05 +0000 (UTC) Received: from mx.hindley.org.uk (mohindley.plus.com [81.174.245.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 357A7F609D9 for <468@bugs.devuan.org>; Fri, 22 May 2020 11:45:07 +0200 (CEST) Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk) by mx.hindley.org.uk with smtp (Exim 4.84_2) (envelope-from ) id 1jc4Ej-00070Z-O4; Fri, 22 May 2020 10:45:05 +0100 Received: (nullmailer pid 3138 invoked by uid 1000); Fri, 22 May 2020 09:45:05 -0000 Date: Fri, 22 May 2020 10:45:05 +0100 From: Mark Hindley To: peter@pwduffy.org.uk, 468@bugs.devuan.org Message-ID: <20200522094505.GE32762@hindley.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1590075215.2942.97.camel@baldur.shiftshaper.org.uk> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_PASS autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Peter, Thanks for this. It is somewhat problematic for a number of reasons: - python2 is EOL. - as you point out, platform.linux_distribution() is deprecated and slated for removal in python3 (presumably for the very reason you have discovered -- it isn't reliable). - In my opinion, applications and functions should use output of lsb_release -a directly (as many already do). - Devuan beowulf deliberately has ID=Debian in lsb_release -a (see the Release Notes[1] for an explanation why). This has been changed to ID=Devuan for ceres/chimaera. - neither python2 nor python3 are forked packages and Devuan uses Debian's packages directly. Considering all that, I find it difficult to see a feasible route to fixing this. Having /etc/lsb_release as another source of information only consulted by some applications seems a retrograde step. Best wishes, Mark [1] https://files.devuan.org/devuan_beowulf/Release_notes.txt