[Top][All Lists]

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

Re: Emacs trunk bootstrapping fails since about two days

From: Paul Eggert
Subject: Re: Emacs trunk bootstrapping fails since about two days
Date: Wed, 19 Jan 2011 16:02:52 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20101208 Thunderbird/3.1.7

On 01/19/11 11:11, Glenn Morris wrote:

> Running just autoconf (and sometimes autoheader) used to be all that
> was needed; and some people, like myself, have been in the habit of
> always running autoconf to ensure we have the latest configure.

Thanks, that likely explains things.  Nowadays one must tell autotools
where the macro files are.

> Perhaps you could summarize the autotools steps now necessary to
> consistently regenerate everything. Eg what do I do now when I need to
> regenerate and commit configure? Just running autoconf alone doesn't
> seem to be enough any more. See eg admin/make-tarball.txt which
> documents the previous procedure and needs updating.

I suggest "autoreconf -I m4".  Or if you want to force generation of
'configure' even when it's up-to-date, "autoreconf -I m4 --force".
I've added this to the documentation and Makefile.in; please see below.

> Also, make maintainer-clean deletes aclocal.m4, which is a file in the
> repository. Is this normal? Nothing then seems to recreate it. Is
> --enable-maintainer-mode now necessary for maintainer-clean to work
> right? This didn't use to be the case, and I have often recommended
> people to run `make maintainer-clean' to start from a clean slate.

It's not a big deal either way, and if that's the style here then
let's keep aclocal.m4 after a maintainer-clean.

I installed this, to try to address the above issues:

=== modified file 'ChangeLog'
--- ChangeLog   2011-01-18 05:23:52 +0000
+++ ChangeLog   2011-01-19 23:58:43 +0000
@@ -1,3 +1,10 @@
+2011-01-19  Paul Eggert  <address@hidden>
+       Minor Makefile.in tweaks to build from gnulib better.
+       <http://lists.gnu.org/archive/html/emacs-devel/2011-01/msg00673.html>
+       * Makefile.in (sync-from-gnulib): Also run autoreconf -I m4.
+       (top_maintainer_clean): Don't remove aclocal.m4.
 2011-01-18  Paul Eggert  <address@hidden>
        Minor cleanups for 'bzr status'

=== modified file 'Makefile.in'
--- Makefile.in 2011-01-18 05:23:52 +0000
+++ Makefile.in 2011-01-19 23:58:43 +0000
@@ -343,6 +343,7 @@
          $(gnulib_srcdir)/build-aux/mkinstalldirs \
          $(gnulib_srcdir)/build-aux/move-if-change \
+       cd $(srcdir) && autoreconf -I m4
 .PHONY: sync-from-gnulib
 # These targets should be "${SUBDIR} without `src'".
@@ -832,8 +833,7 @@
 ###      begin to build the program.
        ${top_distclean}; \
-       rm -fr autom4te.cache; \
-       rm -f aclocal.m4
+       rm -fr autom4te.cache
 maintainer-clean: bootstrap-clean FRC
        (cd src;      $(MAKE) $(MFLAGS) maintainer-clean)
        (cd lisp;     $(MAKE) $(MFLAGS) maintainer-clean)

=== modified file 'admin/ChangeLog'
--- admin/ChangeLog     2011-01-17 22:11:13 +0000
+++ admin/ChangeLog     2011-01-19 23:58:43 +0000
@@ -1,3 +1,9 @@
+2011-01-19  Paul Eggert  <address@hidden>
+       * make-tarball.txt: Suggest 'autoreconf -I m4 --force'
+       rather than doing rm and autoconf by hand.  See
+       <http://lists.gnu.org/archive/html/emacs-devel/2011-01/msg00673.html>.
 2011-01-17  Paul Eggert  <address@hidden>
        * notes/bzr (Installing changes from gnulib): New section.

=== modified file 'admin/make-tarball.txt'
--- admin/make-tarball.txt      2010-10-22 03:28:21 +0000
+++ admin/make-tarball.txt      2011-01-19 23:58:43 +0000
@@ -28,7 +28,7 @@
     refer to a newer release of Emacs.  (This is probably needed only
     when preparing a major Emacs release, or branching for it.)
-5.   rm configure src/config.in; autoconf; autoheader
+5.   autoreconf -I m4 --force
      make bootstrap
 6.  Commit configure, src/config.in, etc/AUTHORS, all the files changed
@@ -107,4 +107,3 @@
 13. For a pretest, announce it on emacs-devel and BCC the pretesters.
     For a release, announce it on address@hidden,
     address@hidden, and emacs-devel.

reply via email to

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