From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Lirzin Subject: Re: RFC: writable private scratch XDG_CACHE_HOME in build enviroment? Date: Tue, 21 Feb 2017 13:13:11 +0100 Message-ID: <87r32rwxm0.fsf@gnu.org> References: <87r32r94mx.fsf@igalia.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cg9Jj-0004sb-85 for guix-devel@gnu.org; Tue, 21 Feb 2017 07:13:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cg9Ji-0002dT-Dd for guix-devel@gnu.org; Tue, 21 Feb 2017 07:13:15 -0500 In-Reply-To: <87r32r94mx.fsf@igalia.com> (Andy Wingo's message of "Tue, 21 Feb 2017 12:15:18 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Andy Wingo Cc: guix-devel@gnu.org Hello Andy, Andy Wingo writes: > Guile will try to automatically compile .scm files and cache them in > XDG_CACHE_HOME. When building Guile itself, Guile sets XDG_CACHE_HOME > to ${top_builddir}/cache. What if we would set this ourselves for all > packages? That way all packages could benefit from a scratch location > when building that wouldn't propagate to the outputs. > > In Fibers I have some tests that I assume get compiled. If they're not > compiled, they go quite slow (260s vs 5s). Alternately I could add a > XDG_CACHE_HOME setting in Fibers. Which should we do? IIUC the problem you have is that in a Guix build environmnent, Guile tries but *fails* to autocompile ".scm" files because it doesn't find any directory that it can write on? Even if I would not recommend relying on autocompilation in a build process (or anywhere else) I agree that it would be reasonable to have a way to autocompile ".scm" files in a Guix build environment. Since /tmp is writeable in a Guix build environment and in most POSIX systems (I guess), Would it make sense for Guile itself to fallback to /tmp for its compilation cache? Thanks. -- Mathieu Lirzin GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37