Bug 1772992

Summary: python3-config --configdir incorrect
Product: Red Hat Enterprise Linux 8 Reporter: Alex Scheel <ascheel>
Component: python3Assignee: Victor Stinner <vstinner>
Status: CLOSED ERRATA QA Contact: Lukáš Zachar <lzachar>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 8.1CC: cstratak, hhorak, pviktori, vstinner
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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").
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 01:30:33 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:
Bug Depends On:    
Bug Blocks: 1623069    

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