Bug 1772992 - python3-config --configdir incorrect
Summary: python3-config --configdir incorrect
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: python3
Version: 8.1
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: 8.0
Assignee: Victor Stinner
QA Contact: Lukáš Zachar
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:
Last Closed: 2020-11-04 01:30:33 UTC
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)

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
[root@267776ee444a /]# rpm -qa | grep -i platform-python

How reproducible:


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
$ 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 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 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

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.


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