automake
[Top][All Lists]
Advanced

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

Re: generated version numbers


From: Harlan Stenn
Subject: Re: generated version numbers
Date: Wed, 26 Feb 2014 18:47:49 +0000

Adding automake to the list, as with the information below this is now
looking like an automake issue.

I rolled another release and here's what I see:

address@hidden ls -ltrT config.h.in sntp/config.h.in aclocal.m4 sntp/aclocal.m4 
sntp/m4/version.m4
-rw-rw-r--  1 harlan  wheel     40 Feb 23 15:10:03 2014 sntp/m4/version.m4
-rw-rw-r--  1 harlan  staff  41166 Feb 23 15:10:10 2014 aclocal.m4
-rw-rw-r--  1 harlan  staff  40943 Feb 23 15:10:15 2014 sntp/aclocal.m4
-rw-rw-r--  1 harlan  wheel  41378 Feb 23 15:10:30 2014 config.h.in
-rw-rw-r--  1 harlan  wheel  25706 Feb 23 15:14:16 2014 sntp/config.h.in
address@hidden (update the repo)
address@hidden ls -ltrT config.h.in sntp/config.h.in aclocal.m4 sntp/aclocal.m4 
sntp/m4/version.m4
-rw-rw-r--  1 harlan  wheel     40 Feb 23 15:10:03 2014 sntp/m4/version.m4
-rw-rw-r--  1 harlan  staff  41166 Feb 23 15:10:10 2014 aclocal.m4
-rw-rw-r--  1 harlan  staff  40943 Feb 23 15:10:15 2014 sntp/aclocal.m4
-rw-rw-r--  1 harlan  wheel  41378 Feb 23 15:10:30 2014 config.h.in
-rw-rw-r--  1 harlan  wheel  25706 Feb 23 15:14:16 2014 sntp/config.h.in
address@hidden ./bootstrap
(update version.m4 if needed)
(touch man pages, sleep 1)
(touch .texi and .menu pages, sleep 1)
(touch .html pages)
(run autoreconf-vi)
autoreconf: Leaving directory `.'
address@hidden ls -ltrT config.h.in sntp/config.h.in aclocal.m4 sntp/aclocal.m4 
sntp/m4/version.m4
-rw-rw-r--  1 harlan  wheel  41378 Feb 23 15:10:30 2014 config.h.in
-rw-rw-r--  1 harlan  wheel  25706 Feb 23 15:14:16 2014 sntp/config.h.in
-rw-rw-r--  1 harlan  wheel     40 Feb 26 10:06:09 2014 sntp/m4/version.m4
-rw-rw-r--  1 harlan  staff  41166 Feb 26 10:06:15 2014 aclocal.m4
-rw-rw-r--  1 harlan  staff  40943 Feb 26 10:06:21 2014 sntp/aclocal.m4
address@hidden

so there it is - for some reason the config.h.in files are not being
regenerated.  Just to be clear, the script that generates m4/version.m4
only updates that file if the version number is different.  Right now,
version.m4 contains:

m4_define([VERSION_NUMBER],[4.2.7p425])

while the two config.h.in files contain:

address@hidden grep VERSION sntp/config.h.in config.h.in
sntp/config.h.in:#undef PACKAGE_VERSION
sntp/config.h.in:#undef VERSION
config.h.in:#undef PACKAGE_VERSION
config.h.in:#undef VERSION
address@hidden

There is no dependency on version.m4 for anything in the Makefile.am .

So automake has am__aclocal_m4_deps that does contain:

 $(top_srcdir)/sntp/m4/version.m4

which makes sense because the first line of configure.ac is:

 m4_include([sntp/m4/version.m4])

So while the filestamps are technically correct, the generated Makefile
*will* see that version.m4 is newer than config.h.in and regenerate it
via Makefile dependencies.

I suspect the answer is that at the end of the bootstrap script, if the
aclocal.m4 file is newer than the config.h.in file we need to touch
the config.h.in file.

H



reply via email to

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