Work around failure to build on mips by using cabal, not Setup, to build in debian/rules.
This commit is contained in:
parent
459db7a367
commit
adf69dc417
4 changed files with 20 additions and 2 deletions
16
debian/cabal-wrapper
vendored
Executable file
16
debian/cabal-wrapper
vendored
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
# It would be more usual to use:
|
||||
# export CABAL=./Setup
|
||||
# But Setup currently has a very bad dependency resolver, and very bad
|
||||
# debugging output, and tends to eat all memory and die on small buildds.
|
||||
#
|
||||
# This should be revisited once Debian has a newer ghc than 7.6.3,
|
||||
# and hopefully gets the improved dependency resolver from cabal.
|
||||
set -e
|
||||
|
||||
# Avoid cabal writing to HOME, and avoid local cabal settings
|
||||
# influencing the build.
|
||||
HOME=$(mktemp -d)
|
||||
export HOME
|
||||
|
||||
cabal "$@"
|
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -1,6 +1,8 @@
|
|||
git-annex (5.20140920) UNRELEASED; urgency=medium
|
||||
|
||||
* Depend on new enough git for --no-gpg-sign to work. Closes: #762446
|
||||
* Work around failure to build on mips by using cabal, not Setup,
|
||||
to build in debian/rules.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Mon, 22 Sep 2014 13:50:00 -0400
|
||||
|
||||
|
|
1
debian/control
vendored
1
debian/control
vendored
|
@ -4,6 +4,7 @@ Priority: optional
|
|||
Build-Depends:
|
||||
debhelper (>= 9),
|
||||
ghc (>= 7.4),
|
||||
cabal-install,
|
||||
libghc-mtl-dev (>= 2.1.1),
|
||||
libghc-missingh-dev,
|
||||
libghc-data-default-dev,
|
||||
|
|
3
debian/rules
vendored
3
debian/rules
vendored
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
# Avoid using cabal, as it writes to $HOME
|
||||
export CABAL=./Setup
|
||||
export CABAL=debian/cabal-wrapper
|
||||
|
||||
# Do use the changelog's version number, rather than making one up.
|
||||
export RELEASE_BUILD=1
|
||||
|
|
Loading…
Reference in a new issue