Description of problem: Cannot use mock with target epel-5-x86_64. Version-Release number of selected component (if applicable): mock-1.1.1-1.fc13.noarch How reproducible: mock -r epel-5-x86_64 --rebuild Conn-1.0.31-1.src.rpm Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Shoult compile the src rpm just fine. Additional info: mock -r epel-5-x86_64 --rebuild Conn-1.0.31-1.src.rpm INFO: mock.py version 1.1.1 starting... State Changed: init plugins State Changed: start INFO: Start(Conn-1.0.31-1.src.rpm) Config(epel-5-x86_64) State Changed: lock buildroot State Changed: clean State Changed: init State Changed: lock buildroot Mock Version: 1.1.1 INFO: Mock Version: 1.1.1 INFO: enabled root cache INFO: enabled yum cache State Changed: cleaning yum metadata INFO: enabled ccache State Changed: running yum ERROR: Exception(Conn-1.0.31-1.src.rpm) Config(epel-5-x86_64) 1 minutes 3 seconds INFO: Results and/or logs in: /var/lib/mock/epel-5-x86_64/result ERROR: Command failed: # /usr/bin/yum --installroot /var/lib/mock/epel-5-x86_64/root/ install buildsys-build Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: perl Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: rpm-build Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: bash Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: gcc Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: redhat-release Error: Package: redhat-rpm-config-8.0.45-32.el5.centos.noarch (core) Requires: perl(Getopt::Long) Error: Package: redhat-rpm-config-8.0.45-32.el5.centos.noarch (core) Requires: /bin/bash Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: coreutils Error: Package: redhat-rpm-config-8.0.45-32.el5.centos.noarch (core) Requires: /usr/bin/perl You could try using --skip-broken to work around the problem Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: tar Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: diffutils Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: cpio Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: gzip Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: make Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: sed Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: which Error: Package: redhat-rpm-config-8.0.45-32.el5.centos.noarch (core) Requires: /bin/sh Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: elfutils Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: bzip2 Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: gcc-c++ Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: unzip Error: Package: buildsys-build-0.7-2.el5.noarch (groups) Requires: patch You could try running: rpm -Va --nofiles --nodigest
There are usually some rpm database format problems across host vs. guest OS, you may want to try: rpm -r /var/lib/mock/epel-5-x86_64/root -q gcc You may want to do: rm -f /var/lib/mock/epel-5-x86_64/root/var/lib/rpm/__db.* rpm -r /var/lib/mock/epel-5-x86_64/root --rebuilddb
Maybe is because I try to build 64bit on 32bit machine? Shouldn't it error out earlier? Also, because of the chroot, shouldn't it behave correctly. IMHO should work out-of-the-box.
I don't believe that building 64-bit packages from a 32-bit system has ever been supported on Fedora or RHEL. I'll look at detecting this and error'ing out early.
Thanks!
Added code to the upcoming 1.1.2 mock release to catch invalid architecture combinations.
mock-1.1.3-1.fc14 has been submitted as an update for Fedora 14. http://admin.fedoraproject.org/updates/mock-1.1.3-1.fc14
mock-1.1.3-1.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/mock-1.1.3-1.fc13
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.1.3-1.fc14 has been pushed to the Fedora 14 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.1.3-1.fc14
mock-1.1.3-1.fc13 has been pushed to the Fedora 13 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.1.3-1.fc13
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.1.3-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.4-1.fc14 has been submitted as an update for Fedora 14. http://admin.fedoraproject.org/updates/mock-1.1.4-1.fc14
mock-1.1.4-1.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/mock-1.1.4-1.fc13
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.1.4-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.4-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.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.