Bug 915458
| Summary: | mock -r fedora-17-i386 on x86_64 host gives incorrect dependencies | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Anders Blomdell <anders.blomdell> | ||||
| Component: | mock | Assignee: | Clark Williams <williams> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 17 | CC: | mebrown, williams | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-08-01 13:10:27 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Have you tried building the 32-bit RPM on a 32-bit system? Just wondering if the .debug reference still shows up without mock in the picture. I don't have a 32-bit system handy right now, but I'll be able to try it Monday. No, I hadn't. The package build fine on Fedora-14/i686 without the requires, Fedora-15 and later has the incorrect requirement. Listing the package on Feodra-14/i686 reveals that there is something bogus already here:
# rpm -q -l -p /root/rpmbuild/RPMS/i686/bug-1-1.fc14.i686.rpm /usr/lib
/usr/lib/debug
/usr/lib/debug/.build-id
/usr/lib/debug/.build-id/3e
/usr/lib/debug/.build-id/3e/fd0d0ca67ac7aa9753b4200949a7b82323f0ff
/usr/lib/debug/.build-id/3e/fd0d0ca67ac7aa9753b4200949a7b82323f0ff.debug
/usr/lib/debug/usr
/usr/lib/debug/usr/lib
/usr/lib/debug/usr/lib/libbug.so.debug
/usr/lib/libbug.so
Hence, by adding '%exclude %{_libdir}/debug' to the %files section, the problem disappears. So the bug is in rpm.
This message is a reminder that Fedora 17 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 17. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '17'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 17's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 17 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 17's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed. |
Created attachment 702503 [details] Source rpm for demonstrating problem Description of problem: When using mock to build ix86 packages on a x86_64 host generates incorrect library dependencies Version-Release number of selected component (if applicable): mock-1.1.28-1.fc17.noarch How reproducible: Always Steps to Reproduce: 1. On a x86_64 host run: mock -r fedora-17-i386 --rebuild ~/rpmbuild/SRPMS/bug-1-1.fc17.src.rpm Actual results: # rpm -q --requires -p /var/lib/mock/fedora-17-i386/result/bug-1-1.fc17.i686.rpm 11e09ef04cfaa648f15e6e1ba7152683e687a0.debug libc.so.6 libc.so.6(GLIBC_2.1.3) rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rtld(GNU_HASH) rpmlib(PayloadIsXz) <= 5.2-1 Expected results: The same as above, except the 11e09ef04cfaa648f15e6e1ba7152683e687a0.debug requirement. Building for x86_64 works as expected: # sudo mock -r fedora-17-x86_64 --rebuild ~/rpmbuild/SRPMS/bug-1-1.fc17.src.rpm ... # rpm -q --requires -p /var/lib/mock/fedora-17-x86_64/result/bug-1-1.fc17.x86_64.rpm libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rtld(GNU_HASH) rpmlib(PayloadIsXz) <= 5.2-1 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rtld(GNU_HASH) rpmlib(PayloadIsXz) <= 5.2-1 Additional info: