Devuan bug report logs - #468
python platform.linux_distribution() returns debian

version graph

Package: libpython2.7-minimal; Maintainer for libpython2.7-minimal is (unknown); Source for libpython2.7-minimal is src:python2.7.

Reported by: peter@pwduffy.org.uk

Date: Thu, 21 May 2020 15:48:01 UTC

Severity: normal

Found in version 2.7.13

Done: Mark Hindley <mark@hindley.org.uk>

Full log


Message #8 received at 468@bugs.devuan.org (full text, mbox, reply):

Received: (at 468) by bugs.devuan.org; 22 May 2020 09:50:05 +0000
Return-Path: <mark@hindley.org.uk>
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 <debbugs@localhost> (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 <mark@hindley.org.uk>)
	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 <mark@hindley.org.uk>
To: peter@pwduffy.org.uk, 468@bugs.devuan.org
Subject: Re: bug#468: python platform.linux_distribution() returns debian
Message-ID: <20200522094505.GE32762@hindley.org.uk>
References: <1590075215.2942.97.camel@baldur.shiftshaper.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>
X-Debbugs-No-Ack: No Thanks
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


Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Thu Apr 18 15:57:00 2024;