GNU bug report logs - #44239
[PATCH] Python double-digit version detection broken

Previous Next

Package: automake;

Reported by: Patrik Novotny <panovotn <at> redhat.com>

Date: Mon, 26 Oct 2020 15:29:02 UTC

Severity: normal

Tags: patch

Done: Karl Berry <karl <at> freefriends.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Patrik Novotny <panovotn <at> redhat.com>
To: 44239 <at> debbugs.gnu.org
Subject: bug#44239: [PATCH] Python double-digit version detection broken
Date: Mon, 26 Oct 2020 14:00:43 +0100
[Message part 1 (text/plain, inline)]
Hi,

we have encountered an issue[1] with the python double-digit version
detection.

The used `sys.version[:3]` used in automake strips digits from the python
version. For example '3.10' is detected as '3.1'.

To fix this issue, `sys.version[:3]` is changed to `sys.version_info[:2]`
in the attached patch.

Version: 1.16.2
How to reproduce: Use automake with python 3.10 (or any double-digit
version)

More details can be found in the bugzilla below if needed.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1889732

--
Patrik Novotný
Associate Software Engineer
Red Hat
panovotn <at> redhat.com
[Message part 2 (text/html, inline)]
[0001-Fix-double-digit-python-version-detection.patch (application/x-patch, attachment)]

This bug report was last modified 4 years and 209 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.