Bug 2149881

Summary: Can't install perl on i*86 due to missing dependencies
Product: [Fedora] Fedora Reporter: Frantisek Sumsal <fsumsal>
Component: perl-Compress-Raw-LzmaAssignee: Jitka Plesnikova <jplesnik>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: caillon+fedoraproject, extras-qa, iarnell, jnovy, jplesnik, kasal, mmaslano, mspacek, paul, perl-devel, ppisar, psabata, rhughes, sandmann, spotrh
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard:
Fixed In Version: perl-Compress-Raw-Lzma-2.201-5.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2134183 Environment:
Last Closed: 2022-12-01 10:06:42 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 Frantisek Sumsal 2022-12-01 09:42:00 UTC
Cloning the original bug (BZ#2134183) as the issue resurfaced again, since xz was bumped to 5.2.9 (https://bodhi.fedoraproject.org/updates/FEDORA-2022-63d3579f87).

Description of problem:
Today in our upstream systemd CI I noticed we can't no longer rebuild systemd in the i*86 Rawhide chroot due to unmet dependencies for perl:

```
ERROR: Command failed: 
 # /usr/bin/systemd-nspawn -q -M b32de243c78b491e97eabc2f7c8156d7 -D /var/lib/mock/fedora-rawhide-i686-bootstrap-1669885947.105123/root -a --capability=cap_ipc_lock --rlimit=RLIMIT_NOFILE=10240 --capability=cap_ipc_lock --bind=/tmp/mock-resolv.yaxokt5k:/etc/resolv.conf --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/var/lib/mock/fedora-rawhide-i686-1669885947.105123/root/installation-homedir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=PS1=<mock-chroot> \s-\v\$  --setenv=LANG=C.UTF-8 --setenv=LC_MESSAGES=C.UTF-8 --setenv=SYSTEMD_NSPAWN_TMPFS_TMP=0 --setenv=SYSTEMD_SECCOMP=0 --resolv-conf=off /usr/bin/dnf builddep --installroot /var/lib/mock/fedora-rawhide-i686-1669885947.105123/root/ --releasever 38 --setopt=deltarpm=False --allowerasing --disableplugin=local --disableplugin=spacewalk --disableplugin=versionlock --disableplugin=local --disableplugin=spacewalk --disableplugin=versionlock /var/lib/mock/fedora-rawhide-i686-1669885947.105123/root//builddir/build/SRPMS/systemd-252-1.20221201091145016415.pr25586.586.ga44c0d8b3b.src.rpm --setopt=tsflags=nocontexts --setopt=tsflags=nocontexts --setopt=tsflags=nocontexts
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
Copr repository                                  34 kB/s | 3.3 kB     00:00    
local                                            21 kB/s | 3.8 kB     00:00    
Package util-linux-2.38.1-2.fc38.i686 is already installed.
Package coreutils-9.1-8.fc38.i686 is already installed.
Package gawk-5.1.1-4.fc37.i686 is already installed.
Package pkgconf-pkg-config-1.8.0-3.fc37.i686 is already installed.
Package xz-5.2.9-1.fc38.i686 is already installed.
Error: 
 Problem: package perl-Archive-Tar-2.40-490.fc37.noarch requires perl(IO::Uncompress::UnXz), but none of the providers can be installed
  - package perl-Archive-Tar-2.40-490.fc37.noarch requires perl(IO::Compress::Xz), but none of the providers can be installed
  - package perl-4:5.36.0-492.fc38.i686 requires perl-Archive-Tar, but none of the providers can be installed
  - package perl-IO-Compress-Lzma-2.201-2.fc37.noarch requires perl(Compress::Raw::Lzma) >= 2.201, but none of the providers can be installed
  - conflicting requests
  - nothing provides xz-libs(x86-32) = 5.2.7 needed by perl-Compress-Raw-Lzma-2.201-4.fc38.i686
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
```

Version-Release number of selected component (if applicable):
perl-4:5.36.0-492.fc38.i686

How reproducible:
always

Steps to Reproduce:
$ mock --init --install perl -r fedora-rawhide-i386

Actual results:
```
$ mock --init --install perl -r fedora-rawhide-i386 
...
INFO: installing package(s): perl
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
local                                                                                                             6.9 kB/s | 3.8 kB     00:00    
Error: 
 Problem: package perl-Archive-Tar-2.40-490.fc37.noarch requires perl(IO::Uncompress::UnXz), but none of the providers can be installed
  - package perl-Archive-Tar-2.40-490.fc37.noarch requires perl(IO::Compress::Xz), but none of the providers can be installed
  - package perl-4:5.36.0-492.fc38.i686 requires perl-Archive-Tar, but none of the providers can be installed
  - package perl-IO-Compress-Lzma-2.201-2.fc37.noarch requires perl(Compress::Raw::Lzma) >= 2.201, but none of the providers can be installed
  - conflicting requests
  - nothing provides xz-libs(x86-32) = 5.2.7 needed by perl-Compress-Raw-Lzma-2.201-4.fc38.i686
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
ERROR: Command failed: 
 # /usr/bin/systemd-nspawn -q -M 8e0f0ce18df44c18a2646e695084d338 -D /var/lib/mock/fedora-rawhide-i686-bootstrap/root -a --capability=cap_ipc_lock --bind=/tmp/mock-resolv.vdkknije:/etc/resolv.conf --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/var/lib/mock/fedora-rawhide-i686/root/installation-homedir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=PS1=<mock-chroot> \s-\v\$  --setenv=LANG=C.UTF-8 --setenv=LC_MESSAGES=C.UTF-8 --resolv-conf=off /usr/bin/dnf --installroot /var/lib/mock/fedora-rawhide-i686/root/ --releasever 38 --setopt=deltarpm=False --allowerasing --disableplugin=local --disableplugin=spacewalk --disableplugin=versionlock --disableplugin=local --disableplugin=spacewalk --disableplugin=versionlock install perl --setopt=tsflags=nocontexts
```

Expected results:
The perl package should be installable on i*86.

Comment 1 Petr Pisar 2022-12-01 10:16:17 UTC
This issue was observed by Fedora CI <https://artifacts.dev.testing-farm.io/cc6f0fc7-a772-4e21-843c-a97155e64c53/>. It would be great if Bodhi respected the tests results by default. Alternatively we can enable respecting the dependency test for xz component.

Comment 2 Petr Pisar 2022-12-01 11:31:53 UTC
A proposed gating enablement for xz <https://src.fedoraproject.org/rpms/xz/pull-request/9>.