From dcdfb4bd3543df44da963aece49e79d6e9404656 Mon Sep 17 00:00:00 2001 From: mithrandi Date: Tue, 25 Jul 2017 22:06:34 +0000 Subject: --- doc/forum/Error_building_on_remote_host.mdwn | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 doc/forum/Error_building_on_remote_host.mdwn (limited to 'doc') diff --git a/doc/forum/Error_building_on_remote_host.mdwn b/doc/forum/Error_building_on_remote_host.mdwn new file mode 100644 index 00000000..240db464 --- /dev/null +++ b/doc/forum/Error_building_on_remote_host.mdwn @@ -0,0 +1,31 @@ +I recently updated to the latest Propellor and now I'm getting an error building on a remote host: + + [86 of 94] Compiling Propellor.Bootstrap ( src/Propellor/Bootstrap.hs, dist/build/propellor-config/propellor-config-tmp/Propellor/Bootstrap.o ) + + src/Propellor/Bootstrap.hs:237:22: + No instance for (Typeable Bootstrapper) + arising from a use of `fromInfo' + Possible fix: + add an instance declaration for (Typeable Bootstrapper) + In the expression: fromInfo (maybe mempty hostInfo mh) + In a stmt of a 'do' block: + case fromInfo (maybe mempty hostInfo mh) of { + NoInfoVal + -> do { bs <- getGitConfigValue "propellor.buildsystem"; + case bs of { + Just "stack" -> ... + _ -> ... } } + InfoVal bs + -> case getBuilder bs of { + Cabal -> cabalBuild msys + Stack -> stackBuild msys } } + In the second argument of `($)', namely + `do { case fromInfo (maybe mempty hostInfo mh) of { + NoInfoVal -> do { ... } + InfoVal bs + -> case getBuilder bs of { + Cabal -> ... + Stack -> ... } } }' + propellor: cabal build failed + +I guess I'm missing something, but not sure what? -- cgit v1.2.3 From 2f373265faa586763d3f28857531f00347363c5e Mon Sep 17 00:00:00 2001 From: mithrandi Date: Tue, 25 Jul 2017 22:22:49 +0000 Subject: Added a comment --- ...ment_1_f0f6f241e971d048486ae159585a4ab2._comment | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 doc/forum/Error_building_on_remote_host/comment_1_f0f6f241e971d048486ae159585a4ab2._comment (limited to 'doc') diff --git a/doc/forum/Error_building_on_remote_host/comment_1_f0f6f241e971d048486ae159585a4ab2._comment b/doc/forum/Error_building_on_remote_host/comment_1_f0f6f241e971d048486ae159585a4ab2._comment new file mode 100644 index 00000000..eca6c8c6 --- /dev/null +++ b/doc/forum/Error_building_on_remote_host/comment_1_f0f6f241e971d048486ae159585a4ab2._comment @@ -0,0 +1,21 @@ +[[!comment format=mdwn + username="mithrandi" + avatar="http://cdn.libravatar.org/avatar/869963bdf99b541c9f0bbfb04b0320f1" + subject="comment 1" + date="2017-07-25T22:22:49Z" + content=""" +I tried adding: + + & bootstrapWith (Robustly Stack) + +But that fails trying to install stack: + + Fetched 413 kB in 7s (54.3 kB/s) + Reading package lists... + E: Unable to locate package haskell-stack + sh: 1: stack: not found + sh: 1: stack: not found + +That's not really too surprising, of course, since this package isn't in jessie (or stretch, for that matter). + +"""]] -- cgit v1.2.3 From 2ca119810e9924081cd4644d7c9ff44e91487748 Mon Sep 17 00:00:00 2001 From: mithrandi Date: Tue, 25 Jul 2017 22:50:42 +0000 Subject: Added a comment --- .../comment_2_9029575e378c3ed67ea7b7d9fd0a11b5._comment | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 doc/forum/Error_building_on_remote_host/comment_2_9029575e378c3ed67ea7b7d9fd0a11b5._comment (limited to 'doc') diff --git a/doc/forum/Error_building_on_remote_host/comment_2_9029575e378c3ed67ea7b7d9fd0a11b5._comment b/doc/forum/Error_building_on_remote_host/comment_2_9029575e378c3ed67ea7b7d9fd0a11b5._comment new file mode 100644 index 00000000..34750553 --- /dev/null +++ b/doc/forum/Error_building_on_remote_host/comment_2_9029575e378c3ed67ea7b7d9fd0a11b5._comment @@ -0,0 +1,13 @@ +[[!comment format=mdwn + username="mithrandi" + avatar="http://cdn.libravatar.org/avatar/869963bdf99b541c9f0bbfb04b0320f1" + subject="comment 2" + date="2017-07-25T22:50:42Z" + content=""" +Okay, got it to work: + +1. Installed haskell-stack by hand from unstable (the package works fine even on jessie). +2. Removed the \"dist\" directory in the remote /usr/local/propellor. + +After that the build was successful; I think that points to the original failure being due to the ancient GHC in jessie, but I'm not 100% sure. +"""]] -- cgit v1.2.3