From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: [PATCH] gnu: bootstrap: Create a wrapper for guile to set the system load path Date: Wed, 08 Jul 2015 16:39:45 -0400 Message-ID: <87d202z8mm.fsf@netris.org> References: <87380y1tu3.fsf@netris.org> <87h9pezae5.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCw8P-0004rA-Hu for guix-devel@gnu.org; Wed, 08 Jul 2015 16:40:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCw8K-0004PD-8B for guix-devel@gnu.org; Wed, 08 Jul 2015 16:40:01 -0400 Received: from world.peace.net ([50.252.239.5]:38959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCw8K-0004Oz-0n for guix-devel@gnu.org; Wed, 08 Jul 2015 16:39:56 -0400 In-Reply-To: <87h9pezae5.fsf@netris.org> (Mark H. Weaver's message of "Wed, 08 Jul 2015 16:01:38 -0400") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Mark H Weaver writes: > Mark H Weaver writes: > >> We currently use gnu/packages/patches/guile-relocatable.patch to set the >> system load path in the bootstrap guile. However, that patch depends on >> /proc/self/exe which is not present on the Hurd. Therefore, I came up >> with another approach in the attached patch. After unpacking the >> bootstrap guile, we use it to create its own wrapper that sets the >> GUILE_SYSTEM_PATH and GUILE_SYSTEM_COMPILED_PATH environment variables. >> >> My only concern is that these variables will be present in the >> environment in any subprograms launched by the bootstrap guile, and so >> if the bootstrap guile ever tries to run a different version of guile, >> those variable settings may cause trouble. > > 'guile-final' built successfully on x86_64 with this patch, and that was > the package that I was most worried about, so maybe everything will work > out in practice. FYI, I successfully built GNU Hello with that patch applied. Mark