Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2209821

Summary: automake: Fix python version check for 3.11+
Product: Red Hat Enterprise Linux 8 Reporter: Ben Woodard <woodard>
Component: automakeAssignee: Frédéric Bérat <fberat>
Status: CLOSED ERRATA QA Contact: Lenka Špačková <lkuprova>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.8CC: codonell, databases-maint, fjanus, fweimer, hhorak, mcermak, praiskup, sipoyare
Target Milestone: rcKeywords: Bugfix, Patch, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: automake-1.16.1-8.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-14 15:35:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ben Woodard 2023-05-24 22:46:22 UTC
Description of problem:
When python 3.11 is available the version string comes back as 3.1

checking for gawk... gawk
...
checking for system type (linux-gnu)... Linux
checking for python3... python3
checking for python version... 3.1

it kind of looks like you need to add a couple more entries to _AM_PYTHON_INTERPRETER_LIST in /usr/share/aclocal-1.16/python.m4

AC_DEFUN([AM_PATH_PYTHON],
 [
  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
  dnl supported. (2.0 was released on October 16, 2000).
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
[python python2 python3 dnl
 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl
 python3.2 python3.1 python3.0 dnl
 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 dnl
 python2.0])

3.10 and 3.11 are lazily matched to 3.1

Version-Release number of selected component (if applicable):
 automake-1.16.1-7.el8.noarch

How reproducible:
always.

Actual results:
3.1

Expected results:
3.11

Additional info:

Comment 1 Ben Woodard 2023-05-24 22:50:02 UTC
This also seems to affect Fedora38 which defaults to python 3.11 and so it probably needs to fan out to other distro versions and be fixed upstream.

Comment 2 Ben Woodard 2023-05-25 16:10:02 UTC
apparently this was fixed in 1.16.3 can we get at least that version in the distros?
https://lists.gnu.org/archive/html/info-gnu/2020-11/msg00005.html

Comment 11 errata-xmlrpc 2023-11-14 15:35:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (automake bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:7031