diff options
| author | Joey Hess <joeyh@joeyh.name> | 2017-07-25 19:22:46 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2017-07-25 19:22:46 -0400 |
| commit | 31b75f3cf5494e52a1c1a27cb72aa3883bd398a2 (patch) | |
| tree | cc6a58c46c8e85013a86688a05a63cb009bbf564 /doc | |
| parent | a7310f5364cd8e300b6f508ff6262c8696add193 (diff) | |
| parent | 2ca119810e9924081cd4644d7c9ff44e91487748 (diff) | |
Merge branch 'master' of ssh://propellor.branchable.com
Diffstat (limited to 'doc')
3 files changed, 65 insertions, 0 deletions
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? 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). + +"""]] 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. +"""]] |
