Running Autogen with the --no-definitions option causes an output file's
mtime to be an empty value (i.e., immediately before midnight of
1970/01/01). One implication of this is that 'make' will always attempt to
rebuild a target constructed with this option.
Symptoms:
$ make
/usr/local/bin/autogen -S ../../../AUTOGEN-LIB/c-emitter.scm -L
../../../AUTOGEN-LIB -s impl_c -s impl_h ../AGD/test.agd
/usr/local/bin/autogen -S ../../../AUTOGEN-LIB/c-emitter.scm -T
sdlcurses.agt --no-definitions -b sdlcurses --not-writable
$ ls -l sdlcurses.h test.h-frag
-r--r--r-- 1 eric users 2052 Dec 31 1969 sdlcurses.h
-r--r--r-- 1 eric users 1545 Oct 8 20:13 test.h-frag
$ make
/usr/local/bin/autogen -S ../../../AUTOGEN-LIB/c-emitter.scm -T
sdlcurses.agt --no-definitions -b sdlcurses --not-writable
$ ls -l sdlcurses.h test.h-frag
-r--r--r-- 1 eric users 2052 Dec 31 1969 sdlcurses.h
-r--r--r-- 1 eric users 1545 Oct 8 20:13 test.h-frag
Attached is a patch that changes the behavior so that the current time is
imprinted as the output file's mtime. With this patch applied the above
symptoms are resolved:
$ make
/usr/local/bin/autogen -S ../../../AUTOGEN-LIB/c-emitter.scm -T
sdlcurses.agt --no-definitions -b sdlcurses --not-writable
$ ls -l sdlcurses.h test.h-frag
-r--r--r-- 1 eric users 2052 Oct 8 20:29 sdlcurses.h
-r--r--r-- 1 eric users 1545 Oct 8 20:13 test.h-frag
$ make
make: Nothing to be done for `all'.
Thanks.
Bruce Korb
autogen
autogen
Public
|
Date: 2009-10-10 20:44 Looks good, sir. Thank you. |
|
Date: 2009-10-10 16:51 So, my apologies for all the noise. It's been a long time since I looked |
|
Date: 2009-10-10 16:41 For your purposes, consider using: --no-source-time |
|
Date: 2009-10-10 16:33 I definitely agree about the configurable - something that will allow an |
|
Date: 2009-10-10 16:07 Yep. The extraction stuff has an effect, too. The correct thing is using |
|
Date: 2009-10-10 15:48 Thanks for the new prerelease, Bruce. |
|
Date: 2009-10-10 14:34 I think, though, the correct patch is to ensure that the output |
|
Date: 2009-10-09 14:30 Oops. I've rarely used it and I suspect not too many others do, either. |
| Filename | Description | Download |
|---|---|---|
| no-defs-outtime.patch | Fix for Output File Mtime in --no-definitions Mode | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2009-10-10 20:44 | eric_mcdonald |
| close_date | - | 2009-10-10 20:44 | eric_mcdonald |
| allow_comments | 1 | 2009-10-10 20:44 | eric_mcdonald |
| status_id | Pending | 2009-10-10 15:48 | eric_mcdonald |
| close_date | 2009-10-09 14:30 | 2009-10-10 15:48 | eric_mcdonald |
| status_id | Open | 2009-10-09 14:30 | bkorb |
| close_date | - | 2009-10-09 14:30 | bkorb |
| resolution_id | None | 2009-10-09 14:30 | bkorb |
| File Added | 345845: no-defs-outtime.patch | 2009-10-09 00:44 | eric_mcdonald |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use