Seems like because filelists are no longer part of the default metadata in Fedora's dnf, python3-dnf cannot be installed because it depends on ... /usr/libexec/platform-python
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,