Bug 458648 - %configure sets --target
Summary: %configure sets --target
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: redhat-rpm-config
Version: 12
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 516389 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-08-11 10:44 UTC by Stepan Kasal
Modified: 2010-02-02 10:01 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-02 10:01:38 UTC
Type: ---


Attachments (Terms of Use)
proposed patch (574 bytes, patch)
2008-08-11 10:44 UTC, Stepan Kasal
no flags Details | Diff

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.


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