
On Sat, 13 Mar 2010 Daniel McAllansmith wrote:
Hello.
Short story:
$ cabal install --global --constraint="old-time>=1.0.0.3.1" --reinstall -v darcs
/tmp/hashed-storage-0.4.71127/hashed-storage-0.4.7/Setup.hs:13:7: Could not find module `System': Use -v to see a list of the files searched for.
This is using GHC 6.12.1, cabal-install 0.8.0 and Cabal 1.8.0.2
How do I get darcs installed?
I managed to get hashed-storage installed by patching Setup.hs replacing: import System( system, exitWith ) with: import System.Process( system ) import System.Exit( exitWith ) and adding process>=1.0.1.1 to the build-depends. I also needed to replace: import System( system ) import System.Process ( ProcessHandle, runInteractiveProcess, waitForProcess, getProcessExitCode ) with: import System.Process ( ProcessHandle, runInteractiveProcess, waitForProcess, getProcessExitCode, system ) in darcs' Distribution/ShellHarness.hs to get it to compile. I don't know whether these changes would let these packages continue to build against older versions of GHC/base but if anyone wants them I can create proper darcs patches if they're useful. Cheers Dan
Longer story:
I've been trying to install darcs 2.4 built against a patched version of old- time, 1.0.0.3.1 is effectively 1.0.0.4 just that it's patched locally because 1.0.0.4 hasn't been released to hackage yet.
I ran into various problems with global vs. user packages, no version of base being valid and a few other bits and pieces. So I am trying a global install and have had to reinstall Cabal (and various other packages), presumably because it was built against old-time 1.0.0.3.
Looking at the hashed-storage code it imports System (system, exitWith). Is that old base-3 code?
The debug messages show:
selecting base-3.0.3.2 (installed) and 4.2.0.0 (installed)
and
/usr/local/bin/ghc --make /tmp/hashed-storage-0.4.71127/hashed- storage-0.4.7/Setup.hs -o /tmp/hashed-storage-0.4.71127/hashed- storage-0.4.7/dist/setup/setup -odir /tmp/hashed-storage-0.4.71127/hashed- storage-0.4.7/dist/setup -hidir /tmp/hashed-storage-0.4.71127/hashed- storage-0.4.7/dist/setup -i -i/tmp/hashed-storage-0.4.71127/hashed- storage-0.4.7 -package Cabal-1.8.0.2
so I'm not really sure what version of base it's actually trying to compile hashed-storage against.
Any further information I can provide?
Thanks Dan _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe