blob: 984d79a99c0ec44ab340275fa5363b553315ecca (
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
68
|
### Please describe the problem.
Adding BUILDER=stack support in 441573a9 breaks building debian based packages.
### What steps will reproduce the problem?
[[!format sh """
$ debian/rules clean
dh clean
dh_testdir
dh_auto_clean
make -j1 clean
make[1]: Entering directory '/home/jtgeibel/repos/launchpad.net/git-annex'
debian/cabal-wrapper clean
debian/cabal-wrapper: 14: debian/cabal-wrapper: cabal: not found
Makefile:101: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/jtgeibel/repos/launchpad.net/git-annex'
dh_auto_clean: make -j1 clean returned exit code 2
debian/rules:12: recipe for target 'clean' failed
make: *** [clean] Error 2
"""]]
### What version of git-annex are you using? On what operating system?
6.20160114 (Ubuntu wily & trusty)
### Please provide any additional information below.
I've patched this locally as follows. In the Makefile I've assumed that both cabal and stack support a clean command.
[[!format patch """
diff --git a/Makefile b/Makefile
index 342152c..977855a 100644
--- a/Makefile
+++ b/Makefile
@@ -98,7 +98,7 @@ docs: mans
--exclude='users/*' --exclude='devblog/*' --exclude='thanks'
clean:
- $(BUILDER) clean
+ if [ "$(BUILDER)" != ./Setup ]; then $(BUILDER) clean; fi
rm -rf tmp dist git-annex $(mans) configure *.tix .hpc \
doc/.ikiwiki html dist tags Build/SysConfig.hs \
Setup Build/InstallDesktopFile Build/EvilSplicer \
diff --git a/debian/rules b/debian/rules
index e6ee592..3345fee 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
-export BUILDER=debian/cabal-wrapper
+export BUILDER=./Setup
STANDALONE_BUILD=$(shell grep -qe '^Package: git-annex-standalone' debian/control \
&& echo 1 || echo 0)
"""]]
### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
git-annex has been a great way for me to explore both Haskell and software packaging.
I enjoyed the interview on LWN.
> I don't think this is a bug, I think build dependencies were not
> installed when building the package. [[done]] --[[Joey]]
|