libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libtool--gary--1.0--patch-40


From: Gary V. Vaughan
Subject: libtool--gary--1.0--patch-40
Date: Fri, 27 Aug 2004 12:41:35 +0100 (BST)
User-agent: mailnotify/0.3

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Okay to commit?

This is a replacement for --patch-37 in light of Alexandre's insightful
comments :-)

Cheers,
        Gary.
- -- 
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook
_________________________________________________________
This patch notification generated by tlaapply version 0.5
http://tkd.kicks-ass.net/arch/address@hidden/cvs-utils--tla--1.0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (Darwin)

iD8DBQFBLx3vFRMICSmD1gYRAhzrAJ0W/uoMLD86N+eC8TeZt7YjtmIxFwCffAC2
6gSASnNvlUYbCPAqOQt/v44=
=6iaM
-----END PGP SIGNATURE-----
* looking for address@hidden/libtool--gary--1.0--patch-39 to compare with
* comparing to address@hidden/libtool--gary--1.0--patch-39
M  ChangeLog
M  Makefile.am

* modified files

Index: Changelog
from  Gary V. Vaughan  <address@hidden>

        Two things to stop `make distcheck' from trying to rebuild
        distributed files (m4/ltversion.m4 and config/ltmain.in) in the
        readonly source tree:

        * Makefile.am (stamp-vcl): Keep only one copy of stamp-vcl; in
        $(top_srcdir), so that an up-to-date version is rolled into the
        dist tarball even from a VPATH build.
        ($(top_srcdir)/config/ltmain.sh): Don't depend on Makefile,
        otherwise ltmain.sh needs to be rebuilt after every config.status
        run, and then configure needs to be rebuilt, and it all goes
        horribly wrong :-/  Unfortunately, we can't depend on Makefile.am
        either, because that is a circular dependency.  The downside of
        this change is that it is now possible to edit Makefile.am to
        change the way ltmain.sh is generated, and the dependency
        information can't tell that ltmain.sh needs regenerating.

--- orig/Makefile.am
+++ mod/Makefile.am
@@ -59,18 +59,18 @@
 aclocal_DATA = m4/argz.m4 m4/libtool.m4 m4/ltdl.m4 \
        m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4
 
-## If mkstamp does not match $(srcdir)/stamp-vcl, we still put the new one
-## in the current dir, incase $(srcdir) is not writable.  The dir selection
-## at the top of this rule takes care of prefering the right one on
-## subsequent runs.
+## We know that $(top_srcdir)/ChangeLog has been edited if stamp-vcl
+## needs updating, so we assume we have write access to $(top_srcdir).
+## If we try to maintain ./stamp-vcl to avoid writing to a possibly
+## read-only $(top_srcdir), then when the two stamp-vcls differ, distcheck
+## will try to update the one in the read-only source tree it makes.
 MKSTAMP = $(SHELL) $(top_srcdir)/config/mkstamp
-stamp-vcl: vcl-tmp ChangeLog
+$(top_srcdir)/stamp-vcl: vcl-tmp ChangeLog
 vcl-tmp:
-       @dir=.; test -f $$dir/stamp-vcl || dir=$(srcdir); \
-       set -- `$(MKSTAMP) < $(top_srcdir)/ChangeLog`; \
+       @set -- `$(MKSTAMP) < $(top_srcdir)/ChangeLog`; \
        echo "$$1" > vcl.tmp; \
-       cmp -s vcl.tmp $$dir/stamp-vcl \
-         || (echo "Updating stamp-vcl"; cp vcl.tmp ./stamp-vcl)
+       cmp -s vcl.tmp $(top_srcdir)/stamp-vcl \
+         || (echo "Updating stamp-vcl"; cp vcl.tmp $(top_srcdir)/stamp-vcl)
        address@hidden -f vcl.tmp
 
 # We build ltversion.m4 here, instead of from config.status,
@@ -94,8 +94,14 @@
        mv -f m4/ltversion.tmp m4/ltversion.m4
 
 ## And for similar reasons, ltmain.sh can't be built from config.status.
+## WARNING: If you edit this rule to change the contents of ltmain.sh,
+##          you must `touch $(top_srcdir)/config/ltmain.in' from the
+##          shell if you need ltmain.sh to be regenerated.  Ideally, we
+##          should make this rule depend on Makefile but that will break
+##          distcheck (at least) by rebuilding ltmain.sh in the source
+##          tree whenever config.status regenerates the Makefile.
 EXTRA_DIST += config/ltmain.sh
-$(top_srcdir)/config/ltmain.sh: config/ltmain.in configure.ac stamp-vcl 
Makefile
+$(top_srcdir)/config/ltmain.sh: config/ltmain.in configure.ac stamp-vcl
        $(timestamp); \
        cd $(top_srcdir); \
        rm -f config/ltmain.tmp; \




reply via email to

[Prev in Thread] Current Thread [Next in Thread]