Bug 27589
| Summary: | Inconsistent output from rpm -q --specfile when using BuildArch: | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Toralf <bugzilla> |
| Component: | rpm | Assignee: | Jeff Johnson <jbj> |
| Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.0 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2001-04-18 21:07:50 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: | |||
*** Bug 30650 has been marked as a duplicate of this bug. *** I am having similar problems. With 'BuildArchitecture: noarch', the ouput of rpm -q --changelog --specfile <file> returns nothing. Fixed in rpm-4.0.3-0.15 (be careful if you upgrade, there's still known bugs for rpm > 4.0.3-0.6, you might want to fish out the changes in build/parseSpec.c and apply to rpm-4.0.2 if needed). |
From Bugzilla Helper: User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i686) Using BuildArch: or BuildArchitectures: tag in spec file changes the rpm query output in the following way: 1. When the spec file contains several packages, 'rpm -q --specfile' lists only the name/version of the main one. Expanded names of the sub packages are not included like they are when "BuildArch" is not used. 2. 'rpm -q --queryformat "%{ARCH}"' returns "(none)" rather than the real build architecture. Reproducible: Always Steps to Reproduce: 1.Take a simple spec file containing at least one %package directive, but no BuildArch: 2.rpm -q --specfile <spec file name> 3.Insert 'BuildArch: noarch' in package headers. 4.Repeat 2.