Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 232429

Summary: rpmbuild stores i386 libraries in incorrect directory under x86_64.
Product: [Fedora] Fedora Reporter: thsacnc
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: rawhideCC: kas, peter.kovar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-15 14:09:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description thsacnc 2007-03-15 14:34:38 UTC
Description of problem:
rpmbuild stores i386 libraries in incorrect directory under x86_64.fc6 environment. 

#rpmbuild --target=i386 -ba xxxxxx.spec
the .RPM package built should include i386 library files in /usr/lib, but in
/usr/lib64. Of course, rpm installs the files into the wrong directory: /usr/lib64.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Modify the spec file as follows;
echo %_target
echo %_lib
echo %_libdir
...." #rpmbuild --target=i386 -ba xxxxxx.spec

Actual results:
rpmbuild shows me;
+ echo i386-linux
+ echo lib64
+ echo /usr/lib64

Expected results:
+ echo i386-linux
+ echo lib
+ echo /usr/lib

Comment 1 Jeff Johnson 2007-03-15 16:22:52 UTC
This is fixed (by using arch from --target) in rpm-4.4.8. UPSTREAM

Meanwhile, change /etc/rpm/platform to have i386, not x86_64.

Comment 2 Red Hat Bugzilla 2007-08-21 05:32:33 UTC
User's account has been closed

Comment 3 Panu Matilainen 2007-08-22 06:33:44 UTC
Reassigning to owner after bugzilla made a mess, sorry about the noise...

Comment 4 Panu Matilainen 2007-10-08 13:01:39 UTC
*** Bug 231489 has been marked as a duplicate of this bug. ***

Comment 5 Panu Matilainen 2007-10-24 11:51:11 UTC
*** Bug 281401 has been marked as a duplicate of this bug. ***

Comment 6 Panu Matilainen 2007-10-24 11:53:02 UTC
This is not going to get fixed for FC6, moving to devel to avoid "timeouting"
(and yes there are plans to fix this eventually)

Comment 7 Panu Matilainen 2008-01-15 14:09:17 UTC
This should work on rawhide as of rpm