Bug 253517
| Summary: | rpm macro %{_sysconfdir} points to /usr/etc rather than /etc | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | David Blundell <david.blundell> |
| Component: | rpm | Assignee: | Panu Matilainen <pmatilai> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 5.0 | ||
| 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: | 2007-08-20 12:34:07 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 of problem: When the x86_64 release of RHEL 5 is installed on a Xeon EM64T box, the rpm macro %{_sysconfdir} points to /usr/etc rather than /etc This causes RPMs to be built incorrectly. This can be checked by the command "rpmbuild --showrc | grep _sysconfdir.*etc" Version-Release number of selected component (if applicable): rpm-4.4.2-37.el5 How reproducible: Always. Steps to Reproduce: 1. install x86_64 release of RHEL4 on a Xeon EM64T box 2. use rpmbuild Actual results: %_sysconfdir is set to /usr/etc causing RPMs to build incorrectly Expected results: %_sysconfdir is set to /etc causing RPMs to build correctly Additional info: The cause of the problem is that the arch in /etc/rpm/platform is set to "ia32e-redhat-linux" which causes the system to look in /usr/lib/rpm/ia32e-linux for macro details. The fix is to either change the arch in /etc/rpm/platform to "x86_64-redhat-linux" or "ln -s x86_64-linux /usr/lib/rpm/ia32e-linux"