Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1782966

Summary: powerpc-utils package depends on x11 packages
Product: Red Hat Enterprise Linux 7 Reporter: joserz
Component: powerpc-utilsAssignee: Than Ngo <than>
Status: CLOSED ERRATA QA Contact: Jeff Bastian <jbastian>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.7CC: dhorak, jbastian, jwboyer, rvr
Target Milestone: rc   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: powerpc-utils-1.3.4-11.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 19:46:24 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: 1780582    

Description joserz 2019-12-12 17:26:14 UTC
Description of problem:
If I try to remove x11 packages from a server, powerpc-utils will be removed as well. But such dependency is not expected.

Removing:
 libX11                 ppc64le  1.6.7-2.el7                    @base     1.5 M
 libX11-common          noarch   1.6.7-2.el7                    @base     1.3 M
 libwayland-client      ppc64le  1.15.0-1.el7                   @base      70 k
 libwayland-server      ppc64le  1.15.0-1.el7                   @base     135 k
Removing for dependencies:
 cairo                  ppc64le  1.15.12-4.el7                  @base     2.2 M
 gdk-pixbuf2            ppc64le  2.36.12-3.el7                  @base     3.6 M
 gtk-update-icon-cache  ppc64le  3.22.30-3.el7                  @base      94 k
 gtk2                   ppc64le  2.24.31-1.el7                  @base      15 M
 ...
 powerpc-utils          ppc64le  1.3.4-10.el7                   @base     1.4 M
 powerpc-utils-python   noarch   1.2.1-9.el7                    @base     113 k
 pycairo                ppc64le  1.8.10-8.el7                   @base     365 k
 pygtk2                 ppc64le  2.24.0-9.el7                   @base     4.8 M

I think the problem is that powerpc-utils depends on powerpc-utils-python, which depends on pygtk2. The correct should be powerpc-utils-python depending on powerpc-utils.

$ rpm -qpR powerpc-utils-python-1.2.1-9.el7.noarch.rpm 
/usr/bin/env
pygtk2 >= 2.0
python(abi) = 2.7
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1

$ rpm -qpR powerpc-utils-1.3.4-10.el7.ppc64le.rpm 
/bin/bash
/bin/sh
/usr/bin/perl
bc
...
perl(Getopt::Long)
perl(strict)
perl(vars)
powerpc-utils-python  <----------
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)
which
rpmlib(PayloadIsXz) <= 5.2-1


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

Thank you!

Comment 2 Than Ngo 2019-12-12 19:43:35 UTC
you are right, the dep is wrong here.
Thanks for your report!

Comment 3 Dan HorĂ¡k 2019-12-13 14:47:18 UTC
IIRC the dependency direction is correct, the intention was to install both powerpc-utils and powerpc-utils-python when the request is for powerpc-utils. The -python package might have split out of the main powerpc-utils or something like that. If we should change something, then I suggest to drop the dependency completely. powerpc-utils-python were dropped from RHEL 8 anyway.

Comment 4 Than Ngo 2020-03-16 12:07:09 UTC
it's fixed in powerpc-utils-1.3.4-11.el7

Comment 7 Jeff Bastian 2020-06-18 14:56:38 UTC
Verified with powerpc-utils-1.3.4-14.el7 and powerpc-utils-python-1.2.1-9.el7 in RHEL-7.9 nightly composes.  The two packages are independent now (rpm-dependency-wise) so removing X11 no longer removes powerpc-utils.

[root@ibm-p8-kvm-03-guest-07 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.9 Beta (Maipo)

[root@ibm-p8-kvm-03-guest-07 ~]# yum erase libX11{,-common} libwayland-{client,server}
...
Dependencies Resolved

================================================================================
 Package                       Arch    Version         Repository          Size
================================================================================
Removing:
 libX11                        ppc64le 1.6.7-2.el7     @beaker-Server/7.9 1.5 M
 libX11-common                 noarch  1.6.7-2.el7     @beaker-Server/7.9 1.3 M
 libwayland-client             ppc64le 1.15.0-1.el7    @beaker-Server/7.9  70 k
 libwayland-server             ppc64le 1.15.0-1.el7    @beaker-Server/7.9 135 k
Removing for dependencies:
 ImageMagick                   ppc64le 6.9.10.68-3.el7 @beaker-Server/7.9  14 M
 at-spi2-atk                   ppc64le 2.26.2-1.el7    @beaker-Server/7.9 364 k
 at-spi2-core                  ppc64le 2.28.0-1.el7    @beaker-Server/7.9 627 k
 ...
 ...
 pango                         ppc64le 1.42.4-4.el7_7  @beaker-Server/7.9 1.0 M
 powerpc-utils-python          noarch  1.2.1-9.el7     @beaker-Server     113 k
 pycairo                       ppc64le 1.8.10-8.el7    @beaker-Server     367 k
 pygtk2                        ppc64le 2.24.0-9.el7    @beaker-Server     4.9 M
 urw-base35-bookman-fonts      noarch  20170801-10.el7 @beaker-Server/7.9 1.4 M
 ...
 ...
Is this ok [y/N]: N


[root@ibm-p8-kvm-03-guest-07 ~]# yum erase powerpc-utils-python
...
Dependencies Resolved

================================================================================
 Package                  Arch       Version           Repository          Size
================================================================================
Removing:
 powerpc-utils-python     noarch     1.2.1-9.el7       @beaker-Server     113 k

Transaction Summary
================================================================================
Remove  1 Package

Installed size: 113 k
Is this ok [y/N]: N


[root@ibm-p8-kvm-03-guest-07 ~]# yum erase powerpc-utils
...
Dependencies Resolved

================================================================================
 Package           Arch        Version             Repository              Size
================================================================================
Removing:
 powerpc-utils     ppc64le     1.3.4-14.el7        @beaker-Server/7.9     1.4 M
Removing for dependencies:
 ppc64-diag        ppc64le     2.7.4-3.el7         @beaker-Server/7.9     1.8 M
 ppc64-utils       ppc64le     0.14-16.el7         @beaker-Server/7.9     0.0  

Transaction Summary
================================================================================
Remove  1 Package (+2 Dependent packages)

Installed size: 3.2 M
Is this ok [y/N]: N

Comment 9 errata-xmlrpc 2020-09-29 19:46:24 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 (powerpc-utils bug fix and enhancement 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/RHBA-2020:3893