Bug 232429 - rpmbuild stores i386 libraries in incorrect directory under x86_64.
rpmbuild stores i386 libraries in incorrect directory under x86_64.
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
rawhide
x86_64 Linux
medium Severity high
: ---
: ---
Assigned To: Panu Matilainen
:
: 231489 281401 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-15 10:34 EDT by thsacnc
Modified: 2008-01-15 09:09 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-01-15 09:09:17 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description thsacnc 2007-03-15 10:34:38 EDT
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):
rpm-build-4.4.2-32.x86_64

How reproducible:
Always

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

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

Expected results:
"....
+ echo i386-linux
i386-linux
+ echo lib
lib
+ echo /usr/lib
/usr/lib
...."
Comment 1 Jeff Johnson 2007-03-15 12:22:52 EDT
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 01:32:33 EDT
User pnasrat@redhat.com's account has been closed
Comment 3 Panu Matilainen 2007-08-22 02:33:44 EDT
Reassigning to owner after bugzilla made a mess, sorry about the noise...
Comment 4 Panu Matilainen 2007-10-08 09:01:39 EDT
*** Bug 231489 has been marked as a duplicate of this bug. ***
Comment 5 Panu Matilainen 2007-10-24 07:51:11 EDT
*** Bug 281401 has been marked as a duplicate of this bug. ***
Comment 6 Panu Matilainen 2007-10-24 07:53:02 EDT
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 09:09:17 EST
This should work on rawhide as of rpm 4.4.2.2-13.

Note You need to log in before you can comment on or make changes to this bug.