-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
5
-
False
-
None
-
False
-
Testable
-
-
-
Important
The mock config generated internally by centpkg --release c8s mockbuild does not set the config_opts['bootstrap_image'] option so default fedora:latest container image is used instead breaking the build.
Logs:
$ rpm -q centpkg centpkg-0.8.2-1.fc39.noarch $ centpkg --release c8s mockbuild Downloading file-5.33.tar.gz ######################################################################## 100.0% setting SOURCE_DATE_EPOCH=1697068800 Wrote: /home/lzaoral/centos-stream/file/file-5.33-26.el8.src.rpm INFO: mock.py version 5.5 starting (python version = 3.12.2, NVR = mock-5.5-1.fc39), args: /usr/libexec/mock/mock --configdir /tmp/c8s-candidate-aarch64.iudc8i6emockconfig -r c8s-candidate-aarch64 --resultdir /home/lzaoral/centos-stream/file/results_file/5.33/26.el8 --rebuild /home/lzaoral/centos-stream/file/file-5.33-26.el8.src.rpm Start(bootstrap): init plugins INFO: selinux enabled Finish(bootstrap): init plugins Start: init plugins INFO: selinux enabled Finish: init plugins INFO: Signal handler active Start: run INFO: Start(/home/lzaoral/centos-stream/file/file-5.33-26.el8.src.rpm) Config(c8s-candidate-aarch64) Start: clean chroot Finish: clean chroot Mock Version: 5.5 INFO: Mock Version: 5.5 Start(bootstrap): chroot init INFO: calling preinit hooks 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/c8s-candidate-aarch64-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/5663d2b0f39cbf19384039014059b724d3e69c4c6585956f862c61164e77495f/merged INFO: umounting image fedora:latest (/var/lib/containers/storage/overlay/5663d2b0f39cbf19384039014059b724d3e69c4c6585956f862c61164e77495f/merged) with podman image umount INFO: Package manager dnf detected and used (fallback) INFO: Bootstrap image not marked ready Start(bootstrap): installing dnf tooling No matches found for the following disable plugin patterns: local, spacewalk, versionlock Last metadata expiration check: 0:00:10 ago on Wed Mar 13 15:07:05 2024. Package python3-dnf-4.18.1-2.fc39.noarch is already installed. Dependencies resolved. Problem: problem with installed package dnf-4.18.1-2.fc39.noarch - package dnf-4.7.0-14.el8.noarch from build requires python3-dnf = 4.7.0-14.el8, but none of the providers can be installed - package dnf-4.7.0-15.el8.noarch from build requires python3-dnf = 4.7.0-15.el8, but none of the providers can be installed - package dnf-4.7.0-17.el8.noarch from build requires python3-dnf = 4.7.0-17.el8, but none of the providers can be installed - package dnf-4.7.0-18.el8.noarch from build requires python3-dnf = 4.7.0-18.el8, but none of the providers can be installed - package dnf-4.7.0-19.el8.noarch from build requires python3-dnf = 4.7.0-19.el8, but none of the providers can be installed - package dnf-4.7.0-20.el8.noarch from build requires python3-dnf = 4.7.0-20.el8, but none of the providers can be installed - package dnf-4.18.1-2.fc39.noarch from @System conflicts with python3-dnf-plugins-core < 4.0.26 provided by python3-dnf-plugins-core-4.0.21-25.el8.noarch from build - cannot install both python3-dnf-4.7.0-14.el8.noarch from build and python3-dnf-4.18.1-2.fc39.noarch from @System - cannot install both python3-dnf-4.7.0-15.el8.noarch from build and python3-dnf-4.18.1-2.fc39.noarch from @System - cannot install both python3-dnf-4.7.0-17.el8.noarch from build and python3-dnf-4.18.1-2.fc39.noarch from @System - cannot install both python3-dnf-4.7.0-18.el8.noarch from build and python3-dnf-4.18.1-2.fc39.noarch from @System - cannot install both python3-dnf-4.7.0-19.el8.noarch from build and python3-dnf-4.18.1-2.fc39.noarch from @System - cannot install both python3-dnf-4.7.0-20.el8.noarch from build and python3-dnf-4.18.1-2.fc39.noarch from @System - cannot install the best candidate for the job ============================================================================================================================================================================================================================================== Package Architecture Version Repository Size ============================================================================================================================================================================================================================================== Installing: python3-dnf-plugins-core noarch 4.0.21-25.el8 build 262 k Installing dependencies: acl aarch64 2.2.53-3.el8 build 79 k chkconfig aarch64 1.19.2-1.el8 build 196 k ... yum noarch 4.7.0-20.el8 build 208 k Skipping packages with conflicts: (add '--best' to command line to force their upgrade): python3-dnf noarch 4.7.0-14.el8 build 548 k python3-dnf noarch 4.7.0-15.el8 build 548 k python3-dnf noarch 4.7.0-17.el8 build 549 k python3-dnf noarch 4.7.0-18.el8 build 549 k python3-dnf noarch 4.7.0-19.el8 build 549 k Skipping packages with broken dependencies: dnf noarch 4.7.0-14.el8 build 541 k dnf noarch 4.7.0-15.el8 build 541 k dnf noarch 4.7.0-17.el8 build 541 k dnf noarch 4.7.0-18.el8 build 541 k dnf noarch 4.7.0-19.el8 build 542 k Transaction Summary ============================================================================================================================================================================================================================================== Install 35 Packages Remove 8 Packages Downgrade 65 Packages Skip 10 Packages Total download size: 49 M Downloading Packages: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 2.5 MB/s | 49 MB 00:19 Running transaction check Transaction check succeeded. Running transaction test Error: Transaction test error: file /usr/sbin/alternatives from install of chkconfig-1.19.2-1.el8.aarch64 conflicts with file from package alternatives-1.25-1.fc39.aarch64 ERROR: Exception(/home/lzaoral/centos-stream/file/file-5.33-26.el8.src.rpm) Config(c8s-candidate-aarch64) 0 minutes 39 seconds INFO: Results and/or logs in: /home/lzaoral/centos-stream/file/results_file/5.33/26.el8 INFO: Cleaning up build root ('cleanup_on_failure=True') Start: clean chroot Finish: clean chroot ERROR: Command failed: # /usr/bin/systemd-nspawn -q -M 65a254d430834ea7b6e4b42fd29eedea -D /var/lib/mock/c8s-candidate-aarch64-bootstrap/root -a --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/var/lib/mock/c8s-candidate-aarch64-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 python3-dnf python3-dnf-plugins-core --setopt=tsflags=nocontexts ...
Workaround: centpkg --release c8s mockbuild -- --no-bootstrap-image