Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 159684

Summary: rpm looks for /usr/lib/rpm/ia32e-linux instead of /usr/lib/rpm/x86_64
Product: Red Hat Enterprise Linux 4 Reporter: Paul Raines <raines>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED WONTFIX QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.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: 2006-01-06 16:22:23 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 Paul Raines 2005-06-06 22:39:36 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050421 Red Hat/1.0.3-1.4.1.centos4 Firefox/1.0.3

Description of problem:
When the x86_64 release of RHEL4 is installed on an Opteron box, all is fine.
rpmbuild looks for macros under /usr/lib/rpm/x86_64-linux/macros

# rpmbuild --showrc | grep ^macrofiles
macrofiles            : /usr/lib/rpm/macros:/usr/lib/rpm/x86_64-linux/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/x86_64-linux/macros:~/.rpmmacros


However, when installed on a Xeon EM64T box, rpm looks in the wrong place
# rpmbuild --showrc | grep ^macrofiles
macrofiles            : /usr/lib/rpm/macros:/usr/lib/rpm/ia32e-linux/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/ia32e-linux/macros:~/.rpmmacros


/usr/lib/rpm/ia32e-linux/macros does not exist and if someone uses rpmbuild
things like %_sysconfdir will be /usr/etc instead of /etc since the macros
in /usr/lib/rpm/macros are not overridden





Version-Release number of selected component (if applicable):
rpm-4.3.3-7_nonptl

How reproducible:
Always

Steps to Reproduce:
1. install x86_64 release of RHEL4 on a Xeon EM64T box
2. use rpmbuild

  

Actual Results:  %_sysconfdir was set to /usr/etc

Expected Results:  %_sysconfdir was set to /etc

Additional info:

Workaround is to do:  ln -s x86_64-linux /usr/lib/rpm/ia32e-linux

Comment 1 Jeff Johnson 2006-01-06 16:22:23 UTC
For rpm configuration purposes, the arch name is "x86_64", not "ia32e".

Either create the symlink
    ln -s x86_64-linux /usr/lib/rpm/ia32e-linux
or change the arch in /etc/rpm/platform.