summaryrefslogtreecommitdiff
path: root/doc/bugs/building_on_lenny.mdwn
blob: cf5a20a7cf141be4d8e2c16d3aa7a282d53c4644 (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
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!

> 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]]