Re: generated version numbers

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

 



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:

harlan@hms-mbp11% 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
harlan@hms-mbp11% (update the repo)
harlan@hms-mbp11% 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
harlan@hms-mbp11% ./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 `.'
harlan@hms-mbp11% 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
harlan@hms-mbp11%

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:

harlan@hms-mbp11% 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
harlan@hms-mbp11%

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

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf




[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux