Bug 1709576

Summary: python3-libselinux: missing Python metadata
Product: [Fedora] Fedora Reporter: Carl George <carl>
Component: libselinuxAssignee: Petr Lautrbach <plautrba>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, mgrepl, plautrba, vmojzis
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python3-libselinux-2.9-2.fc31.x86_64 libselinux-2.9-3.1.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-31 06:18:34 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 Carl George 2019-05-13 20:59:38 UTC
Description of problem:
Installing the libselinux Python bindings via the python3-libselinux package is not recognized by Python packaging tools.

Version-Release number of selected component (if applicable):
python3-libselinux-2.8-6.fc29
python3-libselinux-2.9-1.fc30
python3-libselinux-2.9-1.fc31

Steps to Reproduce:
1. dnf install python3-libselinux
2. pip3 list | grep -i selinux

Actual results:
no output

Expected results:
selinux         2.9

Additional info:
I have a CLI tool that imports selinux in order to run a restorecon.  That works, but the tool is installed with a setuptools entry point, which uses pkg_resources to verify all the requirements are installed.  The missing metadata causes pkg_resources to abort the CLI execution.  The only way to work around it is to not list selinux in my setup.py requirements.

Comment 1 Petr Lautrbach 2019-05-31 06:18:34 UTC
^_^ rpm -q python3-libselinux                
python3-libselinux-2.9-2.fc31.x86_64

^_^ pip3 list | grep -i selinux
selinux              2.9

Comment 2 Carl George 2019-06-12 12:42:12 UTC
Thanks Petr for that fix.  Any chance it can be backported to Fedora 30?

Comment 3 Fedora Update System 2019-08-29 14:08:42 UTC
FEDORA-2019-8278841292 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-8278841292

Comment 4 Petr Lautrbach 2019-08-29 14:10:18 UTC
(In reply to Carl George from comment #2)
> Thanks Petr for that fix.  Any chance it can be backported to Fedora 30?

Sure. I prepared the update back in June but then I somehow forgot about it. Sorry.

Comment 5 Fedora Update System 2019-08-30 00:04:57 UTC
libselinux-2.9-3.1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-8278841292

Comment 6 Fedora Update System 2019-09-11 19:23:47 UTC
libselinux-2.9-3.1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.