Closed CamJN closed 2 years ago
Recently reported here https://bugzilla.redhat.com/show_bug.cgi?id=2122171
The YUM on EL7 systems doesn't provide the needed feature set to install the Mock's bootstrap chroot. What you need here is the --use-bootstrap-image
option (with Podman installed). See #967.
Short description of the problem
Building an el9 (rocky or alma at least) mock chroot fails with:
when it runs
/usr/bin/yum --installroot /var/lib/mock/rocky+epel-9-x86_64-bootstrap/root/ --releasever 9 install dnf dnf-plugins-core
or/usr/bin/yum --installroot /var/lib/mock/rocky+epel-9-x86_64-bootstrap/root/ --releasever 9 --setopt=install_weak_deps=1 --setopt=includepkgs=glibc-gconv-extra install dnf dnf-plugins-core
Because of https://fedoraproject.org/wiki/Changes/Gconv_package_split_in_glibc
mock chroots don't install recommended packages which is how glibc-gconv-extra is pulled in, and since this error is before chroot_setup_cmd is run, I don't know where in the config to fix this.
config_opts['yum_common_opts'] = ['--setopt=install_weak_deps=1', '--setopt=includepkgs=glibc-gconv-extra']
does not help, it seems the cli flags are overridden by the yum.conf file as I see the following messages:despite
/var/lib/mock/rocky+epel-9-x86_64-bootstrap/root/etc/yum/yum.conf
containinginstall_weak_deps=0
, and it certainly still behaves as ifinstall_weak_deps=0
is set.Output of
rpm -q mock
mock-2.17-1.el7.noarch
Steps to reproduce issue
1.
/usr/bin/mock --verbose --bootstrap-chroot -r rocky+epel-9-x86_64 --enable-plugin=ccache --init
or 1./usr/bin/mock --verbose --bootstrap-chroot -r alma+epel-9-x86_64 --enable-plugin=ccache --init
Any additional notes
Output of `mock --debug-config`