This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 160572 - %configure macro uses libdir of /usr/lib64 for target i386
%configure macro uses libdir of /usr/lib64 for target i386
Status: CLOSED DUPLICATE of bug 233145
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
: Reopened
Depends On:
  Show dependency treegraph
Reported: 2005-06-15 16:48 EDT by Need Real Name
Modified: 2007-11-30 17:11 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-04-10 15:22:52 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 Need Real Name 2005-06-15 16:48:25 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4

Description of problem:
When using "rpmbuild --target i386" on a spec file which uses the %configure macro, the macro expands on the x86_64 to pass ./configure an argument of "--libdir=/usr/lib64"  When the target platform is any 32 bit arch (i386, i586, i686, athlon, etc.) then the libdir should be set to /usr/lib

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

How reproducible:

Steps to Reproduce:
1.Install FC4 x86_64
2.Take any spec file which uses the %configure macro in the %build section
3.Run rpmbuild --target i386 against the spec file and then watch for what the macro expands to

Actual Results:  ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=i386-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

Expected Results:   ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=i386-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/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info

Additional info:
Comment 1 Jeff Johnson 2005-09-29 15:53:16 EDT
This is a cross compilation problem. Redefine %configure to taste, the default value for %configure is 
unlikely to make you happy.
Comment 2 David Woodhouse 2007-04-10 15:19:02 EDT
Bug still exists. %_libdir is set according to the contents of /etc/rpm/platform
not --target argument.
Comment 3 David Woodhouse 2007-04-10 15:22:52 EDT
OTOH bug 233145 has a supposedly fixed package, so closing as a dupe of that
even though it's newer.

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

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