Bug 2193157
| Summary: | "dnf builddep" fails to detect the architecture in use | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Renaud Métrich <rmetrich> |
| Component: | dnf-plugins-core | Assignee: | Marek Blaha <mblaha> |
| Status: | NEW --- | QA Contact: | swm-qe |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 8.7 | CC: | james.antill, kwalker, mblaha, mcurlej, pmatilai |
| Target Milestone: | rc | Keywords: | MigratedToJIRA, Triaged |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 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: | |||
|
Description
Renaud Métrich
2023-05-04 13:52:40 UTC
builddep on an src.rpm uses the exact recorded dependencies in the src.rpm header, which are specific to the platform and environment the src.rpm was built on. That's a feature on which our buildsystems rely on, but in the buildsystem the src.rpm is always specific to that architecture. Where this all goes missing is when an src.rpm of a random arch is thrown into the repo, and then used in the same manner for other platforms. Using src.rpm recorded data is only valid for the platform and the distro it was created on, everything else needs to parse the spec to get something meaningful. For that, unpack the src.rpm and run 'dnf builddep kernel.spec' instead. What the builddep plugin could and should do is check whether the architecture matches and complain when it doesn't. And have an option to automatically pull the spec from an src.rpm and parse for dependencies. The bug is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2087703 |