Description of problem: The "--short-circuit" options is not properly handled. When I use it, is just reports "error: failed to stat // --short-circuit: No such file or directory" and the build fails. Version-Release number of selected component (if applicable): $ rpm -q mock mock-1.3.4-1.fc26.noarch How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: The build fails and the --short-circuit option is ignored Expected results: The "prep" part of the build is executed. Additional info: ~~~ $ LANG=C.utf-8 mock -r fedora-rawhide-x86_64 --offline diorite-0.3.3-0.1git7e26836.fc27.src.rpm --short-circuit=prep INFO: mock.py version 1.3.4 starting (python version = 3.6.1)... Start: init plugins INFO: selinux disabled Finish: init plugins Start: run INFO: Start(diorite-0.3.3-0.1git7e26836.fc27.src.rpm) Config(fedora-rawhide-x86_64) Start: chroot init INFO: LVM plugin enabled. Allocated pool data: 52.93%. Allocated metadata: 29.36%. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled dnf cache INFO: enabled HW Info plugin Mock Version: 1.3.4 INFO: Mock Version: 1.3.4 Finish: chroot init Start: build phase for diorite-0.3.3-0.1git7e26836.fc27.src.rpm Start: build setup for diorite-0.3.3-0.1git7e26836.fc27.src.rpm Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/diorite-0.3.3-0.1git7e26836.fc27.src.rpm Last metadata expiration check: 0:13:27 ago on Thu Apr 13 11:36:06 2017 CEST. Package vala-0.36.1-1.fc27.x86_64 is already installed, skipping. Package gtk3-devel-3.22.12-1.fc27.x86_64 is already installed, skipping. Dependencies resolved. Nothing to do. Complete! Finish: build setup for diorite-0.3.3-0.1git7e26836.fc27.src.rpm Start: rpmbuild diorite-0.3.3-0.1git7e26836.fc27.src.rpm error: failed to stat // --short-circuit: No such file or directory Building target platforms: x86_64 Building for target x86_64 ERROR: Exception(diorite-0.3.3-0.1git7e26836.fc27.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. See logs for output. # /usr/bin/systemd-nspawn -q -M 6d0286f8057e4f2db3e7f601d6356d6d -D /var/lib/mock/fedora-rawhide-x86_64/root -a --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --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 -u mockbuild /usr/bin/rpmbuild -bp --short-circuit --target x86_64 --nodeps /builddir/build/SPECS/diorite.spec ~~~
Hmm first - according 'man rpmbuild' options '--short-circuit' and '-bp' is not valid combination. So we need to alter mock documentation. But this error happen happen even with '-bi'. The reproducer is: 1. mock /tmp/tito/mock-1.4.0-0.git.59.3e15fc0.fc26.src.rpm --no-clean 2. sudo '/usr/bin/systemd-nspawn' '-q' '-M' 'bfdc3846268d4d74b5501bb03a1ef077' '-D' '/var/lib/mock/fedora-24-x86_64/root' '-a' '--setenv=SHELL=/bin/bash' '--setenv=HOME=/builddir' '--setenv=HOSTNAME=mock' '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin' '-u' 'mockbuild' '/usr/bin/rpmbuild' '-bi' ' --short-circuit' '--target' 'x86_64' '--nodeps' '/builddir/build/SPECS/mock.spec' Building target platforms: x86_64 Building for target x86_64 error: failed to stat // --short-circuit: No such file or directory Got it! The problem is the leading space before --short-circuit.
Hmm -bp is not valid according the documentation, but is accepted by rpmbuild. So I will keep it there. Leading space removed in commit 5208f36.
mock-1.4.1-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-99d7379d09
mock-1.4.1-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-f7ba52fb50
mock-1.4.1-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-99d7379d09
mock-1.4.1-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-6b4200df6e
mock-1.4.2-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-21b345dd60
mock-1.4.2-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-3d88d9f8b5
mock-1.4.2-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-21b345dd60
mock-1.4.2-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-3d88d9f8b5
mock-1.4.2-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.4.2-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.