summaryrefslogtreecommitdiff
path: root/doc/bugs/building_on_lenny.mdwn
blob: 654b1283e0632649c0929ed6dcbf2a4280ab72e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
hi,

I am trying to build git annex on lenny.

I checked out the latest from git c88d4939453845efee04da811d64aa41046f9c11,
installed all the packages (some from backports) as required by dpkg-buildpackage

Then I get this:

	...
	mkdir -p build
	ghc -odir build -hidir build --make git-annex
	[ 1 of 19] Compiling Utility          ( Utility.hs, build/Utility.o )
	[ 2 of 19] Compiling GitRepo          ( GitRepo.hs, build/GitRepo.o )
	[ 3 of 19] Compiling GitQueue         ( GitQueue.hs, build/GitQueue.o )
	[ 4 of 19] Compiling TypeInternals    ( TypeInternals.hs, build/TypeInternals.o )
	[ 5 of 19] Compiling Types            ( Types.hs, build/Types.o )
	[ 6 of 19] Compiling Annex            ( Annex.hs, build/Annex.o )
	[ 7 of 19] Compiling Locations        ( Locations.hs, build/Locations.o )
	[ 8 of 19] Compiling UUID             ( UUID.hs, build/UUID.o )
	[ 9 of 19] Compiling LocationLog      ( LocationLog.hs, build/LocationLog.o )
	[10 of 19] Compiling Core             ( Core.hs, build/Core.o )
	[11 of 19] Compiling Backend.URL      ( Backend/URL.hs, build/Backend/URL.o )
	[12 of 19] Compiling Backend          ( Backend.hs, build/Backend.o )

	Backend.hs:114:50:
	    Not in scope: type constructor or class `SomeException'
	make[1]: *** [git-annex] Error 1
	make[1]: Leaving directory `/home/cstamas/tmp/git-annex'
	dh_auto_build: make -j1 returned exit code 2
	make: *** [build] Error 2
	dpkg-buildpackage: failure: debian/rules build gave error exit status 2

I will try to check the mentioned file for error, but I do not know how to program in haskell.

Thanks for your help! --[[cstamas]]

> Newer versions of ghc changed their exception handling types, and
> I coded git-annex to use the new style and not the old. gch6 6.12 will
> work. I do not think there is a backport available though. --[[Joey]]
>
> Ok, found and deployed a workaround. It is not tested. Let me know how it
> works for you. --[[Joey]]

>> I did a git pull and now I get:

	mkdir -p build
	ghc -cpp -odir build -hidir build --make git-annex
	[ 1 of 20] Compiling Portability      ( Portability.hs, build/Portability.o )

	Portability.hs:13:21:
	    Not in scope: type constructor or class `Exception'
	make[1]: *** [git-annex] Error 1
	make[1]: Leaving directory `/home/cstamas/tmp/git-annex'
	dh_auto_build: make -j1 returned exit code 2
	make: *** [build] Error 2
	dpkg-buildpackage: failure: debian/rules build gave error exit status 2

>> --[[cstamas]]

>>> Ok well, I'm not going to try to reimplement all of
>>> Control.Exception.Extensible so I've made it use it. You will have to
>>> figure out how to install that library yourself though, I don't know
>>> how to use cabal with such an old ghc. Library is here:
>>> <http://hackage.haskell.org/package/extensible-exceptions> 
>>> and I asked how to get it on stable here:
>>> <http://ask.debian.net/questions/how-to-get-haskell-extensible-extceptions-on-stable> --[[Joey]]