Broken mock configuration: Using bootstrap image: fedora:latest

for those who still use make-rpms I got a broken mock configuration with mock 5.2 on fedora 38

I needed to update my /etc/mock/nethserver-7-x86_64.cfg

+include('templates/centos-7.tpl')
+include('templates/epel-7.tpl')
-config_opts['root'] = 'nethserver-7-x86_64'
+config_opts['root'] = 'centos+epel-7-x86_64'
+config_opts['description'] = 'CentOS 7 + EPEL'

the error was

make-rpms libwbxml.spec

prep-sources [WARNING] git not installed, or git repository not found!
Downloading: http://downloads.sourceforge.net/libwbxml/libwbxml-0.11.6.tar.bz2
File '/home/data/dev/git_work/SOGo-spec/libwbxml-0.11.6.tar.bz2' already present.
INFO: mock.py version 5.2 starting (python version = 3.11.6, NVR = mock-5.2-1.fc38), args: /usr/libexec/mock/mock --resultdir=. -r nethserver-7-x86_64 -D 'dist .ns7' --buildsrpm --spec libwbxml.spec --sources .
Start(bootstrap): init plugins
INFO: tmpfs initialized
INFO: selinux enabled
INFO: {'cmd': 'rpmsign', 'opts': '--addsign %(rpms)s', 'basedir': '/var/lib/mock/nethserver-7-x86_64-bootstrap', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/nethserver-7-x86_64-bootstrap', 'root': 'nethserver-7-x86_64-bootstrap', 'resultdir': '/var/lib/mock/nethserver-7-x86_64-bootstrap/results'}
INFO: enabled package signing
Finish(bootstrap): init plugins
Start: init plugins
INFO: tmpfs initialized
INFO: selinux enabled
INFO: {'cmd': 'rpmsign', 'opts': '--addsign %(rpms)s', 'basedir': '/var/lib/mock/nethserver-7-x86_64', 'cache_topdir': '/var/cache/mock', 'cachedir': '/var/cache/mock/nethserver-7-x86_64', 'root': 'nethserver-7-x86_64', 'resultdir': '.'}
INFO: enabled package signing
Finish: init plugins
INFO: Signal handler active
Start: run
INFO: Start(libwbxml.spec)  Config(nethserver-7-x86_64)
Start: clean chroot
Finish: clean chroot
Mock Version: 5.2
INFO: Mock Version: 5.2
Start(bootstrap): chroot init
INFO: mounting tmpfs at /var/lib/mock/nethserver-7-x86_64-bootstrap/root.
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled package manager cache
Start(bootstrap): cleaning package manager metadata
Finish(bootstrap): cleaning package manager metadata
INFO: Guessed host environment type: unknown
INFO: Using bootstrap image: fedora:latest
INFO: Pulling image: fedora:latest
INFO: Copy content of container fedora:latest to /var/lib/mock/nethserver-7-x86_64-bootstrap/root
INFO: Checking that fedora:latest image matches host's architecture
INFO: mounting fedora:latest with podman image mount
INFO: image fedora:latest as /var/lib/containers/storage/overlay/f29face791dfb00155b668c68409ac8022a17e31230363148ee8145fd7cda6ab/merged
INFO: umounting image fedora:latest (/var/lib/containers/storage/overlay/f29face791dfb00155b668c68409ac8022a17e31230363148ee8145fd7cda6ab/merged) with podman image umount
INFO: Using 'dnf' instead of 'yum' for bootstrap chroot
INFO: Package manager dnf detected and used (fallback)
INFO: Bootstrap image not marked ready
Start(bootstrap): installing yum tooling
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
Package yum-4.17.0-6.fc38.noarch is already installed.
(try to add '--skip-broken' to skip uninstallable packages)
Error: 
 Problem: The operation would result in removing the following protected packages: dnf
ERROR: Exception(libwbxml.spec) Config(nethserver-7-x86_64) 0 minutes 6 seconds
INFO: Results and/or logs in: .
INFO: Cleaning up build root ('cleanup_on_failure=True')
Start: clean chroot
Finish: clean chroot
INFO: unmounting tmpfs.
ERROR: Command failed: 
 # /usr/bin/systemd-nspawn -q -M 890ffb2376284330b5ec7b444d8d073b -D /var/lib/mock/nethserver-7-x86_64-bootstrap/root -a --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/var/lib/mock/nethserver-7-x86_64-bootstrap/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-3 --setopt=deltarpm=False --setopt=allow_vendor_change=yes --allowerasing --disableplugin=local --disableplugin=spacewalk --disableplugin=versionlock install yum yum-utils --setopt=tsflags=nocontexts
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
Package yum-4.17.0-6.fc38.noarch is already installed.
(try to add '--skip-broken' to skip uninstallable packages)
Error: 
 Problem: The operation would result in removing the following protected packages: dnf
2 Likes