Bug 281401 - rpmbuild --target i686 creates package with --libdir=/usr/lib64
rpmbuild --target i686 creates package with --libdir=/usr/lib64
Status: CLOSED DUPLICATE of bug 232429
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Panu Matilainen
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-09-06 16:34 EDT by Peter Kovář
Modified: 2007-11-30 17:12 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-10-24 07:51:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Peter Kovář 2007-09-06 16:34:54 EDT
Description of problem:
rpmbuild with --target i686 creates correct 32 bit binaries and libraries but
libdir variable points to /usr/lib64 instead of /usr/lib

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

How reproducible:

Steps to Reproduce:
rpmbuild -bb --target i686 /usr/src/redhat/SPECS/flac.spec
Building target platforms: i686
Building for target i686

+ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu
--target=i686-redhat-linux-gnu --program-prefix= --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
--mandir=/usr/share/man --infodir=/usr/share/info --with-pic

/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..
      -I../.. -I./include -I../../include -DNDEBUG -O3 -funroll-loops
-finline-functions -Wall -W -Winline -DFLaC__INLINE=__inline__ -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=generic
-fasynchronous-unwind-tables -MT bitmath.lo -MD -MP -MF .deps/bitmath.Tpo -c -o
bitmath.lo bitmath.c

rpm -qilp /usr/src/redhat/RPMS/i686/flac-1.1.4-5.fc8.i686.rpm

Actual results:

Expected results:

Additional info:
rpm-build compnent is missing in bugzilla, so I've chosen rpm
Comment 1 Peter Kovář 2007-09-06 17:26:48 EDT
Recent RPM 4.4.90 from http://hg.rpm.org/rpm shows the same problem.

What year is now?


Peter Kovář
50 65 74 65 72 20 4B 6F 76 C3 A1 C5 99
Comment 2 Jeff Johnson 2007-09-06 20:44:32 EDT
This is fixed over a year now in rpm-4.5.7+.

But if you insist on using rpm-4.4.2 from rpm.org, the answer is to edit
/etc/rpm/platform, and change the arch to one that supports 64 bit builds.
Comment 3 Jeff Johnson 2007-09-06 20:44:49 EDT
Apologies, 4.4.7+.
Comment 4 Panu Matilainen 2007-10-24 07:51:10 EDT

*** This bug has been marked as a duplicate of 232429 ***

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