From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user,gmane.comp.gnu.lilypond.devel Subject: Re: Generating compiled scm (.go) files as part of LilyPond build Date: Tue, 19 Jul 2011 16:28:41 +0200 Message-ID: <8762myjqee.fsf@pobox.com> References: <4CF14302.1020502@hulin.org.uk> <4CF6BC51.3090909@hulin.org.uk> <4D1C7061.1000701@hulin.org.uk> <4D433723.50501@hulin.org.uk> <4E25843A.2000803@hulin.org.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1311086463 22598 80.91.229.12 (19 Jul 2011 14:41:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Jul 2011 14:41:03 +0000 (UTC) Cc: guile-user@gnu.org, "lilypond-devel@gnu.org" To: Ian Hulin Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jul 19 16:40:58 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QjBTi-0003Sj-Jj for guile-user@m.gmane.org; Tue, 19 Jul 2011 16:40:54 +0200 Original-Received: from localhost ([::1]:35535 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjBTh-0005RT-6y for guile-user@m.gmane.org; Tue, 19 Jul 2011 10:40:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjBI7-0001zV-9s for guile-user@gnu.org; Tue, 19 Jul 2011 10:28:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjBI2-0004Yb-Ds for guile-user@gnu.org; Tue, 19 Jul 2011 10:28:55 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:34365 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjBI1-0004Xf-P3; Tue, 19 Jul 2011 10:28:50 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 05028575E; Tue, 19 Jul 2011 10:28:47 -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; s=sasl; bh=OlkciKALXJEGs8HGeI3VLeBmNFk=; b=g9W1qZ 0HfFSZRk8EoCkmVHyCHjFz8IOJ5S25yl6B8b0eeygJQmHpe7S/PhMazrxS1rIXfV yXK/M2l74NdpCeWQTOlms2XZZFNeDEfWLlh+NgTbvkK6c6PUcuvJsgGC6o+GCImZ GaYsDO8VbScViMMK2+cUcIr71WitKu4vT4PiI= 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; q=dns; s=sasl; b=c4jGROA2hRnzzFLiMq/fwkf8Cy8vVyfV AGtzPtVKmTQ0G5QZJMnfF7jyAcPQ2govwynXiQJnQtU0+yyYhC5pLNIxI3VP7ygo SZjXOkK8UNSvWJkklWOgStKfNDyzBk1ZP8dtF17i/GKc2stQgzOC3PmLiAsMw3Uz fW0MB62WeYs= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id F0906575D; Tue, 19 Jul 2011 10:28:46 -0400 (EDT) Original-Received: from badger (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 36139575C; Tue, 19 Jul 2011 10:28:46 -0400 (EDT) In-Reply-To: <4E25843A.2000803@hulin.org.uk> (Ian Hulin's message of "Tue, 19 Jul 2011 14:18:50 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Pobox-Relay-ID: 69692614-B213-11E0-8679-B797DE995924-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 74.115.168.62 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8685 gmane.comp.gnu.lilypond.devel:37998 Archived-At: Hi Ian, On Tue 19 Jul 2011 15:18, Ian Hulin writes: > It may boil down to a matter of taste, but I find double and triple > extensions on a filename intrinsically nasty. I've normally come across > them before on Windows systems where a filename such as thing.htm.exe > usually means there's malware or a trojan or suchlike on your system. > See also comments below. Consider it an opaque key into a cache. We could change in the future to default to the SHA1 of the whole path. That does have some advantages regarding flattening the directory hierarchy, resulting in fewer stat operations. > ian@nanny-ogg:~/src/Guile/guile-2.0.2$ meta/guile -L $PWD This will set XDG_CACHE_HOME=${top_builddir}/cache. > The problem is knowing where the cache is. For Lilypond, we need to have > a common root directory off of which we can hang the compiled files in > scm/out. Why do you care? (Honest question.) To me there are two cases: 1) You compile the files yourself. You either ensure that the .go files end up in the right places, or adjust GUILE_LOAD_COMPILED_PATH. 2) You rely on autocompilation. In this case there is no guarantee about where the files go, besides residing in the XDG_CACHE_DIR/guile. Regards, Andy -- http://wingolog.org/