From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] emacs: Use 'build-and-use-profile' from (guix scripts package). Date: Tue, 05 Apr 2016 11:59:02 +0200 Message-ID: <877fgcv0k9.fsf@gnu.org> References: <87egazdjue.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anNlM-0002SF-PN for guix-devel@gnu.org; Tue, 05 Apr 2016 05:59:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anNlJ-0003hX-KL for guix-devel@gnu.org; Tue, 05 Apr 2016 05:59:08 -0400 In-Reply-To: <87egazdjue.fsf@gmail.com> (Alex Kost's message of "Fri, 25 Mar 2016 11:48:09 +0300") 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: Alex Kost Cc: guix-devel@gnu.org Alex Kost skribis: > This is to remove code duplication in "emacs/guix-main.scm" and > "guix/scripts/package.scm" ('build-and-use-profile' did not exist until > commits 1b67644 and d1ac5c0). > > The only important (or maybe not) difference is: > > (set-guile-for-build (default-guile)) > > in "guix-main.scm" which does not exist in 'build-and-use-profile'. It > was introduced in commit 4ad2e76 and I don't really understand why it is > needed. For future reference, this was(?) needed because =E2=80=98run-with-store=E2= =80=99 has its #:guile parameter default to (%guile-for-build), which itself defaults to #f (4ad2e76 and e87f059 hint at this.) I presume that somehow =E2=80=98%guile-for-build=E2=80=99 or #:guile gets t= he right value in this case. Ludo=E2=80=99.