Bug 719008
| Summary: | Cannot do mock rebuild el5 package under RHEL6 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Kirby Zhou <kirbyzhou> |
| Component: | mock | Assignee: | Clark Williams <williams> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | el6 | CC: | douglas.fraser, mebrown, williams |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | mock-1.1.15-1.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-09-18 22:57:08 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Queued for 1.1.13 release mock-1.1.13-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.1.13-1.el6 mock-1.0.20-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/mock-1.0.20-1.el5 mock-1.1.13-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/mock-1.1.13-1.fc15 mock-1.1.13-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/mock-1.1.13-1.fc14 Package mock-1.1.13-1.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing mock-1.1.13-1.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/mock-1.1.13-1.el6 then log in and leave karma (feedback). mock-1.1.14-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/mock-1.1.14-1.fc14 mock-1.0.21-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/mock-1.0.21-1.el5 mock-1.1.14-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/mock-1.1.14-1.fc15 mock-1.1.14-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.1.14-1.el6 mock-1.1.14-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.14-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.15-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/mock-1.1.15-1.fc15 mock-1.1.15-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.1.15-1.el6 mock-1.0.22-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/mock-1.0.22-1.el5 mock-1.1.15-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/mock-1.1.15-1.fc14 mock-1.1.15-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.15-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.0.22-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.15-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. |
Description of problem: Cannot do mock rebuild el5 package under RHEL6. Host: RHEL6 Mock Chroot Config: RHEL5 The log shows that: ERROR: Exception(lzo-2.02-2.el5.1.src.rpm) Config(test) 0 minutes 46 seconds INFO: Results and/or logs in: /srv/dailybuild/mock//test/result ERROR: Command failed: # ['/usr/bin/yum', '--installroot', '/srv/dailybuild/mock/test/root/', 'resolvedep', 'ccache', '--setopt=tsflags=nocontexts'] error: db3 error(22) from dbenv->open: Invalid argument error: cannot open Packages index using db3 - Invalid argument (22) error: cannot open Packages database in /srv/dailybuild/mock/test/root/var/lib/rpm CRITICAL:yum.main: I checked the code, gives a patch here. I think maybe the reason is thant. backend.builld calls rpm@HOST, then yum@HOST, the two utils takes different db version. Version-Release number of selected component (if applicable): mock-1.1.10-1.el6.noarch How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: --- /tmp/xxx/usr/lib/python2.6/site-packages/mock/backend.py 2011-07-05 19:29:17.000000000 +0800 +++ /usr/lib/python2.6/site-packages/mock/backend.py 2011-07-05 20:39:54.000000000 +0800 @@ -530,6 +530,10 @@ gid=self.chrootgid, ) + # remove rubbish file + for tmp in glob.glob(self.makeChrootPath('var/lib/rpm/__db*')): + os.unlink(tmp) + # rebuild srpm/rpm from SPEC file specs = glob.glob(self.makeChrootPath(self.builddir, "SPECS", "*.spec")) if len(specs) < 1: