Bug 458648

Summary: %configure sets --target
Product: [Fedora] Fedora Reporter: Stepan Kasal <kasal>
Component: redhat-rpm-configAssignee: Panu Matilainen <pmatilai>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 12CC: jcm, jnovy, jonathan, pmatilai, pnasrat, susi.lehtola, yersinia.spiros
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-02 10:01:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
proposed patch none

Description Stepan Kasal 2008-08-11 10:44:50 UTC
Created attachment 313947 [details]
proposed patch

Macro %configure contains --target=%{_target_platform}.
It should be better removed.

Let me remind that in GNU-style configure scripts, --target means "the plafrom targeted by the tool just built".  For example, if you are building a cross-tool, which is about to run on i386 and generate code for arm, then --target=arm-something.
In most cases, this is not needed, because the rpm package does not contain any cross-building tool.
And in the case that the package is a cross-building tool, this --target definition does not help either, because of the ambivalent tradition of _target* macros in rpm.

Moreover, note that %{_target_platform} is used, not %{_target}, so it can easily happen that
a) it is not right or
b) it is a string different from %{_host} which, though right, can easily confuse the %configure script.

It is best to remove --target from %configure.
(The spec files for cross-build tools can then easily add the right --target.)

Comment 1 Bug Zapper 2008-11-26 02:44:21 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Panu Matilainen 2009-08-13 13:49:58 UTC
Fixed upstream now, but on Fedora redhat-rpm-config overrides the default %configure so the change needs to be done there for it to make any difference.

Comment 3 Panu Matilainen 2009-08-13 13:50:20 UTC
*** Bug 516389 has been marked as a duplicate of this bug. ***

Comment 4 Bug Zapper 2009-11-16 08:11:06 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 5 Panu Matilainen 2010-02-02 10:01:38 UTC
Fixed in rawhide as of redhat-rpm-config-9.1.0.