Bug 2161272 - New dependency on python3-distro possibly not needed on RHEL 9
Summary: New dependency on python3-distro possibly not needed on RHEL 9
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: policycoreutils
Version: 9.2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Petr Lautrbach
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-16 12:51 UTC by Jan Pazdziora
Modified: 2023-01-16 14:44 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-16 14:11:07 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-145196 0 None None None 2023-01-16 12:53:46 UTC

Description Jan Pazdziora 2023-01-16 12:51:01 UTC
Description of problem:

The python3-policycoreutils-3.5-0.rc1.2.el9.noarch added

  Requires: python3-distro

which was not present in python3-policycoreutils-3.4-4.el9.noarch.

It is possible that this dependency is not needed on RHEL 9 at all, for example python3-dnf-plugins-core-4.3.0-4.el9 recently dropped it via https://gitlab.com/redhat/centos-stream/rpms/dnf-plugins-core/-/merge_requests/14?commit_id=89a83b9a38c9a17ed2b0f212b7f98f880e617b81.

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

python3-policycoreutils-3.5-0.rc1.2.el9.noarch

How reproducible:

Deterministic.

Steps to Reproduce:
1. Install RHEL 9.2 nightly @core group.
2. rpm -q python3-distro

Actual results:

python3-distro-1.5.0-7.el9.noarch

Expected results:

package python3-distro is not installed

Additional info:

Comment 2 Petr Lautrbach 2023-01-16 14:11:07 UTC
The requirement is necessary for the following change - https://github.com/SELinuxProject/selinux/commit/3ea0947f1ec8ea8aeaf67371bed1f19a91d0bc84 - which is part of 3.5 released and improved sepolicy in order not to fork and run rpm via getstatusoutput.

Comment 3 Jan Pazdziora 2023-01-16 14:44:16 UTC
Thanks for the explanation and pointer.


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