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 1772992 - python3-config --configdir incorrect
Summary: python3-config --configdir incorrect
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: python3
Version: 8.1
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: 8.0
Assignee: Victor Stinner
QA Contact: Lukáš Zachar
URL:
Whiteboard:
Depends On:
Blocks: 1623069
TreeView+ depends on / blocked
 
Reported: 2019-11-15 18:37 UTC by Alex Scheel
Modified: 2020-11-04 01:32 UTC (History)
4 users (show)

Fixed In Version: python3-3.6.8-29.el8
Doc Type: Bug Fix
Doc Text:
On 64-bit architectures, python3.6-config --configdir returned path like /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu which doesn't exist. The command now returns the expected path: /usr/lib64/python3.6/config-3.6m-x86_64-linux-gnu ("/usr/lib64" instead of "/usr/lib").
Clone Of:
Environment:
Last Closed: 2020-11-04 01:30:33 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1772988 0 unspecified CLOSED python3-config --configdir incorrect 2023-01-04 11:17:46 UTC
Red Hat Product Errata RHSA-2020:4433 0 None None None 2020-11-04 01:31:03 UTC

Description Alex Scheel 2019-11-15 18:37:48 UTC
Clone of bz#1772988:

Description of problem:

On RHEL 8 UBI x86_64 (I haven't checked other versions) on all Python versions (python 3.6 and platform-python), the following command displays incorrect information:

> $ python3.6-config --configdir
> /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu

In all cases it points to /usr/lib, when it should point to /usr/lib64, where the file actually exists. E.g.:

> $ ls -alh /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu
> ls: cannot access '/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu': No such file or directory
> $ ls -alh /usr/lib64/python3.6/config-3.6m-x86_64-linux-gnu
> total 232K
> drwxr-xr-x. 3 root root 4.0K Nov 15 18:33 .
> drwxr-xr-x. 3 root root 4.0K Nov 15 18:33 ..
> -rw-r--r--. 1 root root  70K Oct 11 14:28 Makefile
> -rw-r--r--. 1 root root  15K Oct 11 14:28 Setup
> -rw-r--r--. 1 root root  327 Oct 11 14:28 Setup.config
> -rw-r--r--. 1 root root   41 Oct 11 14:28 Setup.local
> drwxr-xr-x. 2 root root 4.0K Nov 15 18:33 __pycache__
> -rw-r--r--. 1 root root 3.3K Oct 11 14:28 config.c
> -rw-r--r--. 1 root root 1.6K Dec 23  2018 config.c.in
> -rwxr-xr-x. 1 root root 7.0K Dec 23  2018 install-sh
> -rwxr-xr-x. 1 root root 7.4K Dec 23  2018 makesetup
> -rwxr-xr-x. 1 root root 2.1K Oct 11 14:28 python-config.py
> -rw-r--r--. 1 root root  96K Oct 11 15:04 python.o


Version-Release number of selected component (if applicable):

[root@267776ee444a /]# rpm -qa | grep -i python36
python36-3.6.8-2.module+el8.1.0+3334+5cb623d7.x86_64
python36-devel-3.6.8-2.module+el8.1.0+3334+5cb623d7.x86_64
[root@267776ee444a /]# rpm -qa | grep -i platform-python
platform-python-pip-9.0.3-15.el8.noarch
platform-python-3.6.8-15.1.el8.x86_64
platform-python-devel-3.6.8-15.1.el8.x86_64
platform-python-setuptools-39.2.0-5.el8.noarch

How reproducible:

Very

Steps to Reproduce:
1. Run python3-config --configdir
2. Try ls-ing the printed path path.

Actual results:

Returned directory doesn't exist. :o /o\


Expected results:

Returned directory should exist!

Comment 1 Victor Stinner 2019-11-19 14:53:35 UTC
I confirm the issue with python36-devel-3.6.8-2.module+el8.1.0+3334+5cb623d7.x86_64 on Red Hat Enterprise Linux release 8.2 Beta:

$ sudo dnf install -y python36-devel
$ python3.6-config --configdir
/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu
$ ls /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu
ls: cannot access '/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu': No such file or directory

whereas /usr/lib64/python3.6/config-3.6m-x86_64-linux-gnu exists:

$ ls /usr/lib64/python3.6/config-3.6m-x86_64-linux-gnu
Makefile  Setup.config  __pycache__  config.c.in  makesetup         python.o
Setup     Setup.local   config.c     install-sh   python-config.py

Comment 2 Petr Viktorin (pviktori) 2020-01-14 14:12:53 UTC
This bug has a low priority for us. Let us know if you need a fix soon.

Comment 4 Petr Viktorin (pviktori) 2020-03-11 12:33:06 UTC
> Could I get a fix in RHEL 8.3?

That's the current plan.

Comment 5 Victor Stinner 2020-04-03 17:33:56 UTC
Ok, I identified the root issue and I'm working on a fix in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1772988 Then the plan is to backport the fix to RHEL.

Comment 6 Honza Horak 2020-05-06 06:42:22 UTC
Alex, as for the testing part of this bug, can we just leave the verification on the freeradius team? You'll probably be best to tell whether the fix addresses your issue.

Comment 7 Alex Scheel 2020-05-06 13:15:55 UTC
Honza,

Sounds good. Let me know when this is implemented so I can try a FreeRADIUS build. Thanks!

Comment 9 Victor Stinner 2020-06-19 12:18:04 UTC
The package python3-3.6.8-29.el8 is now ready for tests.

Comment 17 errata-xmlrpc 2020-11-04 01:30:33 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 (Moderate: python3 security and bug fix 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/RHSA-2020:4433


Note You need to log in before you can comment on or make changes to this bug.