From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: mtime of fresh .go Date: Sun, 18 Jul 2010 15:03:12 +0200 Message-ID: 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 1279458063 31302 80.91.229.12 (18 Jul 2010 13:01:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 18 Jul 2010 13:01:03 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jul 18 15:01:01 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 1OaTUH-0002B8-Jj for guile-devel@m.gmane.org; Sun, 18 Jul 2010 15:00:57 +0200 Original-Received: from localhost ([127.0.0.1]:44243 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OaTUH-0002XL-3Q for guile-devel@m.gmane.org; Sun, 18 Jul 2010 09:00:57 -0400 Original-Received: from [140.186.70.92] (port=35620 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OaTTw-0002Wt-SO for guile-devel@gnu.org; Sun, 18 Jul 2010 09:00:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OaTTv-0001EE-CL for guile-devel@gnu.org; Sun, 18 Jul 2010 09:00:36 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:43445 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaTTv-0001E4-AZ; Sun, 18 Jul 2010 09:00:35 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 61B72C5596; Sun, 18 Jul 2010 09:00:34 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=xE8coXfzUXom b5VhqgwZw4/g6aA=; b=mx3bu5cy3wELzgQe8WYhsZZY7nJvQscIjH9/YmyGnsm0 nyDV0Hd9lIJW1MZ6f2+tUfg79uoB+YymMs0RZGpivjYkk93wclFcXjR4g1VY2Snd dJmFMgailkCRKfN21ve9kedY51mXNzRGSiqLzOqOmAQetfmTeh2q3LeF9FxmiJg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=cFDt+d 1BXx1UaNJbotKg795aC4NenoRzxrl8GAbE3JZKZWFQn8QqK2LPpKXWjh5ojqcbSQ RP20O8WLE9dFXISKSmD/uijq7OVEErmH4yGjxdcdZ0yvPCqRHFgApUtwgIWt3WIB D3rTGXQ4ShpyViWyYmmxYSK5e9TY2N9Iln0ME= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 4FF30C5595; Sun, 18 Jul 2010 09:00:33 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [81.38.186.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 8A2B1C558B; Sun, 18 Jul 2010 09:00:27 -0400 (EDT) In-Reply-To: <87mxtrdf42.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Fri, 16 Jul 2010 10:07:25 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 734D3048-926C-11DF-A05E-9056EE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:10689 Archived-At: Heya, 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_newe= r. > Check that the mtines of the .go and .scm match exactly, so we do= n't > get fooled by rsync-like modifications of the filesystem. > > When packaging things =E2=80=9Cnormally=E2=80=9D, the .go has an mtime st= rictly greater > than that of the source file, so checking for equality doesn=E2=80=99t wo= rk. But when reinstalling code from a binary packaging system, sometimes the mtime can go backwards. In a perfect world target >=3D source should be sufficient but this is how all caches that I know of (the gtk icon cache, the gstreamer registry, etc) do things. > Also, the code is similar to =E2=80=98fresh-compiled-file-name=E2=80=99 i= n boot-9.scm. > Do you think they could be factorized? Tough to tell without a patch ;-) IIRC it's not the same code due to boot considerations. Andy --=20 http://wingolog.org/