Bug 211069 - %configure kills config.sub
Summary: %configure kills config.sub
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: redhat-rpm-config
Version: 8
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jon Masters
QA Contact:
URL:
Whiteboard: bzcl34nup
Depends On: 234778
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-17 04:26 UTC by Ralf Corsepius
Modified: 2008-05-23 20:41 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-05-06 22:30:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
rebuild this rpm to reproduce this bug (73.62 KB, application/x-redhat-package-manager)
2006-10-17 04:26 UTC, Ralf Corsepius
no flags Details

Description Ralf Corsepius 2006-10-17 04:26:24 UTC
Description of problem:

%configure recursively removes config.sub.

This is a mistake. Config.sub is only being used for cross-compilation and is
supposed to be customisable by packages.

redhat-rpm-config kills such customisations upstream might have applied, which
can render such packages unbuildable.
=> %configure MUST NOT remove config.sub.

Example:
rpmbuild -ba test.spec
...
++ find . -name config.guess -o -name config.sub
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./config.sub
+ '[' -f /usr/lib/rpm/redhat/config.sub ']'
+ /bin/rm -f ./config.sub
++ basename ./config.sub
+ /bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub
`/usr/lib/rpm/redhat/config.sub' -> `./config.sub'
..
+ ./configure --build=i686-redhat-linux-gnu --host=i686-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/sha re/man --infodir=/usr/share/info --host=nios2-rtems4.8
--target=nios2-rtems4.8
...
checking host system type... Invalid configuration `nios2-rtems4.8': machine
`nios2' not recognized
configure: error: /bin/sh ./config.sub nios2-rtems4.8 failed
error: Bad exit status from /var/tmp/rpm-tmp.13746 (%build)


Version-Release number of selected component (if applicable):
redhat-rpm-config-8.0.40-1

How reproducible:
Deterministic.

Steps to Reproduce:
1. rebuild the rpm from the attachment
 
Actual results:
c.f. above.

Expected results:
%configure not to touch config.sub

Additional info:
=> packages to be cross compiled have to resort to NOT using %configure

Comment 1 Ralf Corsepius 2006-10-17 04:26:24 UTC
Created attachment 138654 [details]
rebuild this rpm to reproduce this bug

Comment 2 Jon Masters 2007-08-20 06:31:46 UTC
Thanks. I will add this to the TODO.

Jon.


Comment 3 Bug Zapper 2008-04-04 04:00:01 UTC
Fedora apologizes that these issues have not been resolved yet. We're
sorry it's taken so long for your bug to be properly triaged and acted
on. We appreciate the time you took to report this issue and want to
make sure no important bugs slip through the cracks.

If you're currently running a version of Fedora Core between 1 and 6,
please note that Fedora no longer maintains these releases. We strongly
encourage you to upgrade to a current Fedora release. In order to
refocus our efforts as a project we are flagging all of the open bugs
for releases which are no longer maintained and closing them.
http://fedoraproject.org/wiki/LifeCycle/EOL

If this bug is still open against Fedora Core 1 through 6, thirty days
from now, it will be closed 'WONTFIX'. If you can reporduce this bug in
the latest Fedora version, please change to the respective version. If
you are unable to do this, please add a comment to this bug requesting
the change.

Thanks for your help, and we apologize again that we haven't handled
these issues to this point.

The process we are following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.

And if you'd like to join the bug triage team to help make things
better, check out http://fedoraproject.org/wiki/BugZappers

Comment 4 Ralf Corsepius 2008-04-04 05:22:34 UTC
bug has been ignored ever since and is still present in fc8

Comment 5 Jon Masters 2008-04-04 15:18:42 UTC
Actually, it hasn't been ignored per se. I just prioritized other fixes over
this one because this bug only only affects those using their own config.sub. Do
you have a preferred way to fix this? i.e. we should ship a config.sub, or do
you think we should not be shipping one in redhat-rpm-config?

Jon.

Comment 6 Jon Masters 2008-04-04 15:30:27 UTC
Thanks for refiling against fc8 too :)

Comment 7 Ralf Corsepius 2008-04-08 11:30:40 UTC
(In reply to comment #5)
> Actually, it hasn't been ignored per se. I just prioritized other fixes over
> this one because this bug only only affects those using their own config.sub. Do
> you have a preferred way to fix this? i.e. we should ship a config.sub, or do
> you think we should not be shipping one in redhat-rpm-config?

Neither. The problem is this crazy rpm-macro which automatically replaces
config.sub. rpmbuild simply should not touch config.subs at all.





Comment 8 Anthony Green 2008-05-05 20:47:43 UTC
This one is a problem for me as well.  I was trying to create RPMs for ggx cross
tools, but ggx isn't in any upstream config.sub yet so this is impossible
(without touching redhat-rpm-config's installed files).

Please fix this.  I don't believe there's any reason to stomp on a package's
config.sub.


Comment 9 Jon Masters 2008-05-06 22:29:43 UTC
I can't see a good reason to stomp on either config.stub or config.guess, so
I've removed both. We'll see who complains :)

Comment 10 Robert Scheck 2008-05-23 20:15:05 UTC
Sorry, I heavily dislike this change. This breaks for example libnids from my
packages...

Comment 11 Jon Masters 2008-05-23 20:41:54 UTC
Well, we can't have it both ways. Is there any problem with keeping a copy of
config.sub in your package?


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