unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* mtime of fresh .go
@ 2010-07-16  8:07 Ludovic Courtès
  2010-07-18 13:03 ` Andy Wingo
  0 siblings, 1 reply; 11+ messages in thread
From: Ludovic Courtès @ 2010-07-16  8:07 UTC (permalink / raw)
  To: Andy Wingo; +Cc: guile-devel

Hello!

Can you re-explain the rationale for this:

  commit 535fb833b34dfc3cc11a679d39390b06fd7e9180
  Author: Andy Wingo <wingo@pobox.com>
  Date:   Fri Jun 5 10:51:21 2009 +0200

      stamp .go with timestamp of .scm; a fresh go has same mtime of .scm

      * libguile/load.c (compiled_is_fresh): Rename from compiled_is_newer.
        Check that the mtines of the .go and .scm match exactly, so we don't
        get fooled by rsync-like modifications of the filesystem.

When packaging things “normally”, the .go has an mtime strictly greater
than that of the source file, so checking for equality doesn’t work.

(‘make’ implementations check target >= source, too.)

Also, the code is similar to ‘fresh-compiled-file-name’ in boot-9.scm.
Do you think they could be factorized?

Thanks,
Ludo’.



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-07-21 15:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-16  8:07 mtime of fresh .go Ludovic Courtès
2010-07-18 13:03 ` Andy Wingo
2010-07-18 22:31   ` Ludovic Courtès
2010-07-19 19:10     ` Andy Wingo
2010-07-19 22:17       ` Ludovic Courtès
2010-07-20  7:46         ` Andy Wingo
2010-07-20 16:13           ` Ludovic Courtès
2010-07-20 19:19             ` Andy Wingo
2010-07-21 15:57               ` Ludovic Courtès
2010-07-20  7:46         ` Andy Wingo
2010-07-20 16:30           ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).