Subject: [PATCH] Remove hard dependency on guile-json
From: Alex Kost <[email-masked]>
To: [email-masked]
Date: Tue, 09 May 2017 22:53:07 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

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 <[email-masked]>
Date: Tue, 9 May 2017 22:44:19 +0300
Subject: [PATCH] build: Compile stackage only if 'guile-json' is available.

This is a followup to commit 3089b5d3f5a31b191b68ce3aa9255b646940b642.

* Makefile.am (MODULES): Move "guix/scripts/import/stackage.scm" within
'if HAVE_GUILE_JSON'.
---
 Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index f6a8f66..8ea4f4b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -159,7 +159,6 @@ MODULES =					\
   guix/scripts/import/gnu.scm			\
   guix/scripts/import/nix.scm			\
   guix/scripts/import/hackage.scm		\
-  guix/scripts/import/stackage.scm		\
   guix/scripts/import/elpa.scm  		\
   guix/scripts/environment.scm			\
   guix/scripts/publish.scm			\
@@ -184,7 +183,8 @@ MODULES +=					\
   guix/import/stackage.scm			\
   guix/scripts/import/crate.scm			\
   guix/scripts/import/gem.scm			\
-  guix/scripts/import/pypi.scm
+  guix/scripts/import/pypi.scm			\
+  guix/scripts/import/stackage.scm
 
 endif
 
-- 
2.10.2