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): rpm-build-4.4.2.2-0.1.rc1 How reproducible: Always 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 /usr/lib64/libFLAC++.so.6 /usr/lib64/libFLAC++.so.6.0.1 /usr/lib64/libFLAC.so.8 /usr/lib64/libFLAC.so.8.0.1 Actual results: --libdir=/usr/lib64 Expected results: --libdir=/usr/lib Additional info: rpm-build compnent is missing in bugzilla, so I've chosen rpm
Recent RPM 4.4.90 from http://hg.rpm.org/rpm shows the same problem. What year is now? Shame! Peter Kovář 50 65 74 65 72 20 4B 6F 76 C3 A1 C5 99
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.
Apologies, 4.4.7+.
*** This bug has been marked as a duplicate of 232429 ***