This is with ``` config_opts['use_bootstrap_image'] = False ``` as I'm running mock inside a podman container running Fedora. ``` Error: Problem 1: conflicting requests- nothing provides /usr/libexec/platform-python needed by python3-dnf-4.7.0-19.el8.alma.noarch from baseos Problem 2: package python3-dnf-plugins-core-4.0.21-23.el8.alma.1.noarch from baseos requires python3-dnf >= 4.7.0-6, but none of the providers can be installed
- cannot install the best candidate for the job- nothing provides /usr/libexec/platform-python needed by python3-dnf-4.7.0-19.el8.alma.noarch from baseos (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages or '--setopt=optional_metadata_types=filelists' to load additional filelists metadata)
ERROR: Command failed:# /usr/bin/dnf-3 --installroot /var/lib/mock/alma+epel-8-x86_64-bootstrap/root/ --releasever 8 --setopt=deltarpm=False --setopt=allow_vendor_change=yes --allowerasing --disableplugin=local --disableplugin=spacewalk --disableplugin=versionlock install python3-dnf python3-dnf-plugins-core No matches found for the following disable plugin patterns: local, spacewalk, versionlock
```Adding `--setopt=optional_metadata_types=filelists` as suggested and scrubbing the mock chroot seems to work (scrubbing is necessary, otherwise the existing metadata does not have /usr/libexec indexed)
```config_opts['dnf_common_opts'] = ['--setopt=deltarpm=False', '--setopt=allow_vendor_change=yes', '--allowerasing', '--setopt=optional_metadata_types=filelists']
```(taking the existing value from /usr/share/doc/mock/site-defaults.cfg and adding the suggested option)
This seems to only affect those running recent Fedora on the host (where filelists are no longer indexed in the default metadata), who also need to generate their own bootstrap (because `use_bootstrap_image` is disabled), who are working on EL8 (because python3-dnf has a dependency on /usr/libexec/platform-python -- no such thing on EL9 and above) - so I'm not sure if this can be fixed upstream or should just be documented somewhere.
e.g. we could fix it in /etc/mock/templates/{almalinux,centos-stream,rhel}-8.tpl but that would presumably slow down those who just use the bootstrap image?
My workaround now is sticking that dnf_common_opts hack in ~/.config/mock.cfg, and commenting it out when I'm not bootstrapping an EL8 chroot.
Best regards, -- _o) Michel Lind _( ) identities: https://keyoxide.org/5dce2e7e9c3b1cffd335c1d78b229d2f7ccc04f2
Attachment:
OpenPGP_0x8B229D2F7CCC04F2.asc
Description: OpenPGP public key
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature
-- _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue