From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAuPQ-0006Xx-91 for guix-patches@gnu.org; Wed, 17 May 2017 04:34:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dAuPM-0000qV-8e for guix-patches@gnu.org; Wed, 17 May 2017 04:34:16 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:46858) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dAuPM-0000qQ-5t for guix-patches@gnu.org; Wed, 17 May 2017 04:34:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dAuPC-0001OO-61 for guix-patches@gnu.org; Wed, 17 May 2017 04:34:02 -0400 Subject: bug#26860: [PATCH] Remove hard dependency on guile-json Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87shkdbye4.fsf@gmail.com> <87a86li5ci.fsf@elephly.net> Date: Wed, 17 May 2017 10:33:23 +0200 In-Reply-To: <87a86li5ci.fsf@elephly.net> (Ricardo Wurmus's message of "Wed, 10 May 2017 08:38:37 +0200") Message-ID: <87y3tvzxv0.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ricardo Wurmus Cc: Alex Kost , 26860@debbugs.gnu.org Ricardo Wurmus skribis: > Alex Kost writes: > >> Hello. Currently, Guix cannot be built without guile-json. The >> attached patch fixes it. >> >>>>>From 3a65a2f35b54604327ba69a55381fee0faac18e7 Mon Sep 17 00:00:00 2001 >> From: Alex Kost >> Date: Tue, 9 May 2017 22:44:19 +0300 >> Subject: [PATCH] build: Compile stackage only if 'guile-json' is availab= le. >> >> This is a followup to commit 3089b5d3f5a31b191b68ce3aa9255b646940b642. >> >> * Makefile.am (MODULES): Move "guix/scripts/import/stackage.scm" within >> 'if HAVE_GUILE_JSON'. > > Would it not work to autoload the module? > =E2=80=9Cguix/scripts/import/stackage.scm=E2=80=9D itself does not requir= e guile json. > > Something like that is done in commit > fad5f5fb8dffb4a1cbe40ee9d31a346b901305d1 (in the unmerged wip-installer > branch). Ricardo, could you take a look at this? I=E2=80=99m not sure if autoloading works, unless we use the =E2=80=98modul= e-autoload!=E2=80=99 hack as done in other places. TIA. :-) Ludo=E2=80=99.