Fix build without SSH support.
authorMathieu Othacehe <othacehe@gnu.org>
Thu, 2 Jul 2020 10:01:53 +0000 (12:01 +0200)
committerMathieu Othacehe <othacehe@gnu.org>
Thu, 2 Jul 2020 11:19:30 +0000 (13:19 +0200)
* gnu/local.mk (GNU_SYSTEM_MODULES): Only include
gnu/machine/digital-ocean.scm and gnu/machine/ssh.scm if HAVE_GUILE_SSH is
set.

gnu/local.mk

index 5e9dba5..deece17 100644 (file)
@@ -637,8 +637,6 @@ GNU_SYSTEM_MODULES =                                \
   %D%/system/images/hurd.scm                   \
                                                \
   %D%/machine.scm                              \
-  %D%/machine/digital-ocean.scm                        \
-  %D%/machine/ssh.scm                          \
                                                \
   %D%/build/accounts.scm                       \
   %D%/build/activation.scm                     \
@@ -716,6 +714,14 @@ INSTALLER_MODULES =                             \
   %D%/installer/newt/welcome.scm               \
   %D%/installer/newt/wifi.scm
 
+if HAVE_GUILE_SSH
+
+GNU_SYSTEM_MODULES +=                          \
+  %D%/machine/digital-ocean.scm                        \
+  %D%/machine/ssh.scm
+
+endif HAVE_GUILE_SSH
+
 # Always ship the installer modules but compile them only when
 # ENABLE_INSTALLER is true.
 if ENABLE_INSTALLER