From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: mtime of fresh .go Date: Mon, 19 Jul 2010 00:31:24 +0200 Message-ID: <87vd8cv2v7.fsf@gnu.org> References: <87mxtrdf42.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1279492326 31963 80.91.229.12 (18 Jul 2010 22:32:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 18 Jul 2010 22:32:06 +0000 (UTC) Cc: guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jul 19 00:32:05 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OacOe-0004s3-Cf for guile-devel@m.gmane.org; Mon, 19 Jul 2010 00:32:04 +0200 Original-Received: from localhost ([127.0.0.1]:48007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OacOX-0007zH-5X for guile-devel@m.gmane.org; Sun, 18 Jul 2010 18:31:37 -0400 Original-Received: from [140.186.70.92] (port=36203 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OacOP-0007zB-1e for guile-devel@gnu.org; Sun, 18 Jul 2010 18:31:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OacON-0007ca-9Z for guile-devel@gnu.org; Sun, 18 Jul 2010 18:31:28 -0400 Original-Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:14044) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OacON-0007cP-3h for guile-devel@gnu.org; Sun, 18 Jul 2010 18:31:27 -0400 X-IronPort-AV: E=Sophos;i="4.55,224,1278280800"; d="scan'208";a="54418791" Original-Received: from reverse-83.fdn.fr (HELO nixey) ([80.67.176.83]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 19 Jul 2010 00:31:25 +0200 In-Reply-To: (Andy Wingo's message of "Sun, 18 Jul 2010 15:03:12 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 1 Thermidor an 218 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:10691 Archived-At: Hey! Andy Wingo writes: > On Fri 16 Jul 2010 10:07, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> commit 535fb833b34dfc3cc11a679d39390b06fd7e9180 >> Author: Andy Wingo >> 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_new= er. >> Check that the mtines of the .go and .scm match exactly, so we d= on't >> get fooled by rsync-like modifications of the filesystem. >> >> When packaging things =E2=80=9Cnormally=E2=80=9D, the .go has an mtime s= trictly greater >> than that of the source file, so checking for equality doesn=E2=80=99t w= ork. > > But when reinstalling code from a binary packaging system, sometimes the > mtime can go backwards. Please forgive my ignorance, but can you give an example of how this can happen? Besides, what do you think packages that install scm and go files should do? A package of mine basically lists .go=E2=80=99s in =E2=80=98nodist_foobar_D= ATA=E2=80=99 and .scm=E2=80=99s in =E2=80=98foobar_SOURCES=E2=80=99 (or similar). Having to= change the mtime of .go=E2=80=99s in =E2=80=98install-hook=E2=80=99 seems inconvenient and frag= ile to me. Thanks, Ludo=E2=80=99.