Bug 732296
Summary: | rpmbuild with --target fails to enforce correct BuildRequires | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | John Sullivan <jsrhbz> |
Component: | rpm | Assignee: | Panu Matilainen <pmatilai> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 15 | CC: | ffesti, jnovy, pmatilai |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-08-22 11:54:13 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: |
Description
John Sullivan
2011-08-21 18:23:50 UTC
Rpm does honor the buildrequires expressed in specs to the letter, but many/most packages in Fedora dont bother specifying architecture specific build-dependencies as such, and there's no way for rpm to tell whether an arbitrary dependency should be considered arch-specific or not. You need to tell it: http://rpm.org/wiki/PackagerDocs/ArchDependencies For example the rpm package in Fedora does work correctly wrt build-requires on multilib systems: [pmatilai@localhost SPECS]$ uname -m x86_64 [pmatilai@localhost SPECS]$ rpmbuild -bc rpm.spec error: Failed build dependencies: db4-devel(x86-64) is needed by rpm-4.9.1.1-2.fc15.x86_64 [pmatilai@localhost SPECS]$ rpmbuild -bc --target i686 rpm.spec Building target platforms: i686 Building for target i686 error: Failed build dependencies: db4-devel(x86-32) is needed by rpm-4.9.1.1-2.fc15.i686 elfutils-devel(x86-32) >= 0.112 is needed by rpm-4.9.1.1-2.fc15.i686 elfutils-libelf-devel(x86-32) is needed by rpm-4.9.1.1-2.fc15.i686 readline-devel(x86-32) is needed by rpm-4.9.1.1-2.fc15.i686 zlib-devel(x86-32) is needed by rpm-4.9.1.1-2.fc15.i686 nss-devel(x86-32) is needed by rpm-4.9.1.1-2.fc15.i686 nss-softokn-freebl-devel(x86-32) is needed by rpm-4.9.1.1-2.fc15.i686 popt-devel(x86-32) >= 1.10.2 is needed by rpm-4.9.1.1-2.fc15.i686 file-devel(x86-32) is needed by rpm-4.9.1.1-2.fc15.i686 [...] In other words, this is a general packaging issue, not a bug in rpm. |