[Bug 225296] Merge Review: autoconf

bugzilla at redhat.com bugzilla at redhat.com
Fri Feb 16 02:51:05 UTC 2007


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.

Summary: Merge Review: autoconf


https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225296





------- Additional Comments From rc040203 at freenet.de  2007-02-15 21:51 EST -------
(In reply to comment #2)
> - I don't use autoconf's config.sub/guess as they require help2man.
Sorry, what you say here does not apply. It's a side-effect of a questionable
feature in %configure:

%configure replaces config.guess/config.sub
=> Timestamps are being altered => rebuilding the corresponding man-pages

With your spec:

# rpmbuild autoconf.spec
...
++ find . -name config.guess -o -name config.sub
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./build-aux/config.guess
+ '[' -f /usr/lib/rpm/redhat/config.guess ']'
+ /bin/rm -f ./build-aux/config.guess
++ basename ./build-aux/config.guess 
+ /bin/cp -fv /usr/lib/rpm/redhat/config.guess ./build-aux/config.guess
`/usr/lib/rpm/redhat/config.guess' -> `./build-aux/config.guess'
+ for i in '$(find . -name config.guess -o -name config.sub)'   
++ basename ./build-aux/config.sub
+ '[' -f /usr/lib/rpm/redhat/config.sub ']'
+ /bin/rm -f ./build-aux/config.sub
++ basename ./build-aux/config.sub 
+ /bin/cp -fv /usr/lib/rpm/redhat/config.sub ./build-aux/config.sub
`/usr/lib/rpm/redhat/config.sub' -> `./build-aux/config.sub'
...
=> %configure messed up the sources


I.e. if using plain ./configure instead of %configure, this issue goes away.

Try this patch and you will see:

Index: autoconf.spec
===================================================================
RCS file: /cvs/dist/devel/autoconf/autoconf.spec,v
retrieving revision 1.41
diff -u -r1.41 autoconf.spec
--- autoconf.spec       15 Feb 2007 11:34:43 -0000      1.41
+++ autoconf.spec       16 Feb 2007 02:47:02 -0000
@@ -33,13 +33,8 @@
 %setup -q

 %build
-# move config files out of they way as they require help2man from extras:
-cp -p build-aux/config{.,-}guess
-cp -p build-aux/config{.,-}sub
-%configure
-# ... and restore them:
-mv build-aux/config{-,.}guess
-mv build-aux/config{-,.}sub
+./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
+  --bindir=%{_bindir} --datadir=%{_datadir}
 make #  %{?_smp_mflags}  Makefile not smp save

 #check

-- 
Configure bugmail: https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.




More information about the Fedora-package-review mailing list