Bug 2133847

Summary: Downstream-only patch in Python 3: #001 rpath
Product: [Fedora] Fedora Reporter: Tomas Orsava <torsava>
Component: python3.12Assignee: Miro Hrončok <mhroncok>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: low    
Version: rawhideCC: cstratak, mhroncok, python-maint, python-packagers-sig, rkuska, thrnciar, torsava, vstinner
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python3.12-3.12.0~a2-1.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-17 00:41:36 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 Tomas Orsava 2022-10-11 15:06:17 UTC
From python3.11.spec:

# 00001 # d06a8853cf4bae9e115f45e1d531d2dc152c5cc8
# Fixup distutils/unixccompiler.py to remove standard library path from rpath
# Was Patch0 in ivazquez' python3000 specfile
Patch1: 00001-rpath.patch

Comment 1 Tomas Orsava 2022-10-11 15:10:02 UTC
Previously tracked in BZ#1287556.

Comment 2 Miro Hrončok 2022-10-11 15:11:29 UTC
That'll go away with Python 3.12.

Comment 3 Tomas Orsava 2022-10-11 15:13:44 UTC
*** Bug 1287556 has been marked as a duplicate of this bug. ***

Comment 4 Miro Hrončok 2022-10-31 15:13:03 UTC
Python 3.11.0a1 was released with distutils, but the module should be removed in a2: https://github.com/python/cpython/issues/92584#issuecomment-1290886108

Comment 5 Victor Stinner 2022-11-04 16:07:17 UTC
I just removed the distutils packages in Python 3.12: https://github.com/python/cpython/commit/0faa0ba240e815614e5a2900e48007acac41b214

Let's see how it goes. I hope that the change will not be reverted soon, and that one year (until Python 3.12.0 final release) will be enough to go through all distutils/setuptools issues.

See also the related discussion: https://discuss.python.org/t/collaboration-on-handling-python-3-12-incompatible-changes-distutils-removal-invalid-escape-escape-etc/20721

Comment 6 Miro Hrončok 2022-11-15 18:00:03 UTC
https://src.fedoraproject.org/rpms/python3.12/pull-request/8 updates to Python 3.12.0a2 and removes this patch together with distutils.

Comment 7 Fedora Update System 2022-11-17 00:38:43 UTC
FEDORA-2022-9bc92ee714 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-9bc92ee714

Comment 8 Fedora Update System 2022-11-17 00:41:36 UTC
FEDORA-2022-9bc92ee714 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.