Bug 893381 - %configure sets --build and --host prefixes (uknown) mismatching gcc prefix (redhat)
Summary: %configure sets --build and --host prefixes (uknown) mismatching gcc prefix (...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 17
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-09 09:42 UTC by Petr Pisar
Modified: 2013-04-11 23:36 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-11 23:36:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2013-01-09 09:42:45 UTC
I have a build script which sets CC for make as "${BUILD}-gcc", however rpmbuild sends wrong --build string to configure so, the compiler cannot be executed:

Provádění(%build): /bin/sh -e /var/tmp/rpm-tmp.pqkluz
+ umask 022
+ cd /home/petr/rpmbuild/BUILD
+ cd asekey-3.7
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ LDFLAGS='-Wl,-z,relro '
+ export LDFLAGS
+ ./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --program-prefix= --disable-dependency-tracking --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=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-udev-rules-dir=/usr/lib/udev/rules.d
+ make -j5
x86_64-unknown-linux-gnu-gcc -o libASEKey.so usb.c atr.c DriverIO.c CommandTypes.c ReaderCommands.c T1Protocol.c MemoryCards.c InitCardParams.c ifdhandler.c -fPIC -D_REENTRANT -DIFDHANDLERv2 -Wall -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic -pthread -I/usr/include/PCSC   -Wl,-z,relro  -lpcsclite   -lusb -shared
make: x86_64-unknown-linux-gnu-gcc: Command not found
make: *** [libASEKey.so] Error 127

This is because rpmbuild stated x86_64-unknown-linux-gnu, but gcc is named  x86_64-redhat-linux.

$ rpm -qf /usr/bin/rpmbuild --qf '%{SOURCERPM}\n'
rpm-4.9.1.3-7.fc17.src.rpm

See similar RHEL-6 bug #743229 where this has been recognized as a bug.

Comment 1 Fedora Update System 2013-03-27 06:38:57 UTC
rpm-4.9.1.3-8.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/rpm-4.9.1.3-8.fc17

Comment 2 Fedora Update System 2013-03-27 20:31:59 UTC
Package rpm-4.9.1.3-8.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing rpm-4.9.1.3-8.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-4488/rpm-4.9.1.3-8.fc17
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2013-04-11 23:36:18 UTC
rpm-4.9.1.3-8.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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