Description of problem: rpm introduced option --nocheck with rpm-4.10.1. el5/el6 uses rpm <= 4.8, so if pass --nocheck to rpmbuild we'll get 'unknown option' error Version-Release number of selected component: 1.2.6-1 How reproducible: always Steps to Reproduce: 1. mock -r epel-6-x86_64 /tmp/ccache-3.1.6-2.el6.src.rpm Actual results: ... [output skipped] Finish: build setup for ccache-3.1.6-2.el6.src.rpm Start: rpmbuild ccache-3.1.6-2.el6.src.rpm --nocheck: unknown option ERROR: Exception(/tmp/ccache-3.1.6-2.el6.src.rpm) Config(epel-6-x86_64) 0 minutes 5 seconds INFO: Results and/or logs in: /var/lib/mock/epel-6-x86_64/result ERROR: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps --nocheck /builddir/build/SPECS/ccache.spec Expected results: no errors
Created attachment 991037 [details] using rpm macros redefinition instead of --nocheck proposed patch attached
Sorry, correct step to reproduce must include '--nocheck', for example: mock -r epel-6-x86_64 /tmp/ccache-3.1.6-2.el6.src.rpm --nocheck
I added comments in code. So we know after several years that we can replace it. Commited as: * da8a993 add comment why this previous commit was done [RHBZ#1192128] * 6140191 use rpm macros instead of cmd option for --nocheck [RHBZ#1192128] Thank you.
mock-1.2.8-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/mock-1.2.8-1.fc22
mock-1.2.8-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/mock-1.2.8-1.fc21
mock-1.2.8-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/mock-1.2.8-1.fc20
mock-1.2.8-1.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/mock-1.2.8-1.el7
mock-1.2.8-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.2.8-1.el6
Package mock-1.2.8-1.el7: * should fix your issue, * was pushed to the Fedora EPEL 7 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing mock-1.2.8-1.el7' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-6057/mock-1.2.8-1.el7 then log in and leave karma (feedback).
mock-1.2.8-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.8-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.8-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.10-1.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/mock-1.2.10-1.el7
mock-1.2.10-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.2.10-1.el6
mock-1.2.10-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.10-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.