Description of problem: Building any arbitrary package fails in mock on FC13, with this error message: # mock -r fedora-13-i386 Coin3-3.1.2-0.fc13.src.rpm INFO: mock.py version 1.1.0 starting... State Changed: init plugins State Changed: start INFO: Start(Coin3-3.1.2-0.fc13.src.rpm) Config(fedora-13-i386) State Changed: lock buildroot State Changed: clean State Changed: init State Changed: lock buildroot Mock Version: 1.1.0 INFO: Mock Version: 1.1.0 INFO: enabled root cache State Changed: unpacking root cache INFO: enabled yum cache State Changed: cleaning yum metadata INFO: enabled ccache State Changed: running yum State Changed: setup ERROR: Exception(Coin3-3.1.2-0.fc13.src.rpm) Config(fedora-13-i386) 0 minutes 29 seconds INFO: Results and/or logs in: /var/lib/mock/fedora-13-i386/result ERROR: Command failed: # /usr/bin/yum --installroot /var/lib/mock/fedora-13-i386/root/ install ccache 'zlib-devel' 'doxygen' 'bzip2-devel' 'libXext-devel' 'freetype-devel' 'fontconfig-devel' '/usr/bin/rename' 'libGLU-devel' ... Total size: 54 M Installed size: 181 M Warning: RPMDB altered outside of yum. Traceback (most recent call last): File "/usr/bin/yum", line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 254, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 192, in main return_code = base.doTransaction() File "/usr/share/yum-cli/cli.py", line 496, in doTransaction resultobject = self.runTransaction(cb=cb) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 1182, in runTransaction self.rpmdb.transactionResultVersion(self.tsInfo.futureRpmDBVersion()) File "/usr/lib/python2.6/site-packages/yum/transactioninfo.py", line 580, in futureRpmDBVersion self.rpmdb.preloadPackageChecksums() File "/usr/lib/python2.6/site-packages/yum/rpmsack.py", line 755, in preloadPackageChecksums pkg = self.searchNevra(n, e, v, r, a)[0] IndexError: list index out of range Version-Release number of selected component (if applicable): mock-1.1.0-1.fc13.noarch yum-3.2.27-4.fc13.noarch How reproducible: Deterministic. Steps to Reproduce: Run mock several times in a row. Actual results: The 1st mock run succeeds, subsequent runs fail. Expected results: Function. Additional info: Manually removing /var/lib/mock/*/root_cache before re-running mock seems to work around this issue.
There's a patch to yum to fix this issue by not storing the rpmdb cache in /var/cache/yum - there is also a patch to mock to solve it by having the yumcache plugin that mock includes not copy the installed dir over. Disabling the yumcache plugin in mock also solves this problem.
Seth, thanks for the answer, but ... "FIXED UPSTREAM" or redirecting users of Fedora packages to apply work arounds means NOT FIXED AND IGNORED. Re-opening, because the bug is not fixed. Appropriate time to close this BZ would be when a fixed package is being released.
mock-1.0.8-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/mock-1.0.8-1.fc12
mock-1.0.8-1.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/mock-1.0.8-1.fc11
mock-1.0.8-1.el5 has been submitted as an update for Fedora EPEL 5. http://admin.fedoraproject.org/updates/mock-1.0.8-1.el5
mock-1.0.8-1.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update mock'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/mock-1.0.8-1.fc12
mock-1.0.8-1.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update mock'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/mock-1.0.8-1.fc11
mock-1.0.8-1.el5 has been pushed to the Fedora EPEL 5 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update mock'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/mock-1.0.8-1.el5
Mock is broken in Fedora 13 also. Mock version mock-1.1.0-1.fc13.noarch
(In reply to comment #9) > Mock is broken in Fedora 13 also. My original report was against Fedora 13's mock (mock-1.1.0-1.fc13.noarch) > Mock version mock-1.1.0-1.fc13.noarch A locally rebuilt mock-1.1.1-1.fc13.noarch (currently only in CVS, not in testing) seems to work for me (It at least doesn't crash immediately.
Yes, it works for me. We just need the update for F-13 also
I have the same problem here (F13 x86-64). Over the weekend I had to download about 6GB instead of 350MB one time (which drove me crazy ;-)) because I always had to delete the cache (debugging wasn't fun anymore). Where can I find the patch for yum so I can still use the cache? Regards, Stefan
Here it is: http://koji.fedoraproject.org/koji/buildinfo?buildID=173555
Ahh perfect thanks! Works like expected, no re-downloading is necessary.
mock-1.0.10-1.el5 has been submitted as an update for Fedora EPEL 5. http://admin.fedoraproject.org/updates/mock-1.0.10-1.el5
mock-1.0.10-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/mock-1.0.10-1.fc12
mock-1.0.10-1.el5 has been pushed to the Fedora EPEL 5 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update mock'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/mock-1.0.10-1.el5
mock-1.0.10-1.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update mock'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/mock-1.0.10-1.fc12
mock-1.0.11-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/mock-1.0.11-1.fc12
mock-1.0.11-1.el5 has been submitted as an update for Fedora EPEL 5. http://admin.fedoraproject.org/updates/mock-1.0.11-1.el5
mock-1.0.11-1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.0.12-1.fc12 has been submitted as an update for Fedora 12. https://admin.fedoraproject.org/updates/mock-1.0.12-1.fc12
mock-1.0.12-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/mock-1.0.12-1.el5
mock-1.0.13-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/mock-1.0.13-1.el5
mock-1.0.13-1.fc12 has been submitted as an update for Fedora 12. https://admin.fedoraproject.org/updates/mock-1.0.13-1.fc12
mock-1.0.14-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/mock-1.0.14-1.el5
mock-1.0.15-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/mock-1.0.15-1.el5
mock-1.1.9-1.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/mock-1.1.9-1.fc13
mock-1.0.16-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/mock-1.0.16-1.el5
mock-1.1.9-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.1.9-1.el6
mock-1.1.9-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/mock-1.1.9-1.fc14
mock-1.1.9-1.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.1.9-1.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.1.10-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/mock-1.1.10-1.fc15
mock-1.1.10-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/mock-1.1.10-1.fc14
mock-1.0.17-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/mock-1.0.17-1.el5
mock-1.1.10-1.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/mock-1.1.10-1.fc13
mock-1.1.10-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.1.10-1.el6
mock-1.1.10-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.1.10-1.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.1.10-1.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.0.17-1.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.1.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.