disable new build flags for android build

This commit is contained in:
Joey Hess 2016-02-23 10:59:59 -04:00
parent 5eab84dd3f
commit 67dc0d238f
Failed to extract signature
3 changed files with 21 additions and 1 deletions

View file

@ -1 +1,3 @@
I'm setting up an Android build environment, and the standalone/android/install-haskell-packages script fails while installing the Magic package. The standalone/android/buildchroot-inchroot package should run `apt-get -y install libmagic-dev` to install this dependency.
> [[done]] --[[Joey]]

View file

@ -0,0 +1,18 @@
[[!comment format=mdwn
username="joey"
subject="""comment 3"""
date="2016-02-23T14:55:36Z"
content="""
My android builds include neither magic nor concurrent-output (which is
what's using terminal-size). I don't feel it's worth trying to get
these features working on androd.
So, I've adjusted install-haskell-packages to disable the flags.
If you are interested in working on the android port, I'd be very excited
for any help. As you can see, there is much room for improvement in the
build system for it. (It would be nice to rework it to use stack, rather
than the current approach, and using stack would automatically disable
these flags that are not portable.) And of course, there are many other
parts of the android port that need improvement.
"""]]

View file

@ -65,7 +65,7 @@ patched () {
installgitannexdeps () {
pushd ../..
ln -sf standalone/android/cabal.config
cabal install --only-dependencies "$@" # --force-reinstalls --reinstall
cabal install --only-dependencies --flags="-magicmime -concurrent-output" "$@" # --force-reinstalls --reinstall
rm -f cabal.config
popd
}