Bug 2218429 - mock is broken due dnf5 update
Summary: mock is broken due dnf5 update
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Copr Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-29 05:54 UTC by Filipe Rosset
Modified: 2023-06-29 06:01 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-29 06:01:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Filipe Rosset 2023-06-29 05:54:50 UTC
Unknown argument "--allowerasing" for command "dnf5"


[filiperosset@raw rlottie]$ sudo mock -r /etc/mock/fedora-rawhide-x86_64.cfg results_rlottie/0.2/8.fc39/rlottie-0.2-8.fc39.src.rpm
INFO: mock.py version 4.1 starting (python version = 3.11.4, NVR = mock-4.1-1.fc39)...
Start(bootstrap): init plugins
INFO: tmpfs initialized
INFO: selinux enabled
Finish(bootstrap): init plugins
Start: init plugins
INFO: tmpfs initialized
INFO: selinux enabled
Finish: init plugins
INFO: Signal handler active
Start: run
INFO: Start(results_rlottie/0.2/8.fc39/rlottie-0.2-8.fc39.src.rpm)  Config(fedora-rawhide-x86_64)
Start: clean chroot
Finish: clean chroot
Start(bootstrap): chroot init
INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root.
INFO: reusing tmpfs at /var/lib/mock/fedora-rawhide-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: enabled HW Info plugin
Mock Version: 4.1
INFO: Mock Version: 4.1
INFO: Package manager dnf detected and used (fallback)
Start(bootstrap): installing dnf tooling
Unknown argument "--allowerasing" for command "dnf5". Add "--help" for more information about the arguments.
ERROR: Exception(results_rlottie/0.2/8.fc39/rlottie-0.2-8.fc39.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 1 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result
ERROR: Command failed:
 # /usr/bin/dnf --installroot /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root/ --releasever 39 --setopt=deltarpm=False --allowerasing --disableplugin=local --disableplugin=spacewalk --disableplugin=versionlock install dnf dnf-plugins-core --setopt=tsflags=nocontexts
Unknown argument "--allowerasing" for command "dnf5". Add "--help" for more information about the arguments.



Reproducible: Always

Steps to Reproduce:
1. try to use  mock -r /etc/mock/fedora-rawhide-x86_64.cfg xxx.srpm
2. also fedpkg mockbuild --no-clean is broken
3.

Comment 1 Filipe Rosset 2023-06-29 06:01:46 UTC
nevermind, my /etc/mock/site-defaults.cfg was too old


Note You need to log in before you can comment on or make changes to this bug.