unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Andy Wingo <wingo@pobox.com>
Cc: guile-devel@gnu.org
Subject: mtime of fresh .go
Date: Fri, 16 Jul 2010 10:07:25 +0200	[thread overview]
Message-ID: <87mxtrdf42.fsf@gnu.org> (raw)

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’.



             reply	other threads:[~2010-07-16  8:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-16  8:07 Ludovic Courtès [this message]
2010-07-18 13:03 ` mtime of fresh .go 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mxtrdf42.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guile-devel@gnu.org \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).