On Wed, Aug 05, 2009 at 17:20:17 +0200, Petr Rockai wrote:
> This adds a little script (and a flag to darcs.cabal to help it) that makes it
> possible to use cabal for downloading and building current build dependencies
> of darcs. This should be useful on the buildbots, at least on those where
> owners choose to automate updates. I'll add a per-slave flag in master.cfg 
> that
> will allow/forbid such automated updates as part of the build process.

Cute.  Applied, thanks!
No comments otherwise.

Add script that tricks cabal into installing our build-depends only.
--------------------------------------------------------------------
> hunk ./contrib/install-deps.sh 1
> +set -x
> +cabal update || exit 1
> +cabal install "$@" -fdeps-only 2>&1 | tee install-deps.log
> +# ensure that we got as far as attempting to configure darcs
> +grep -q "can't be built on this system." install-deps.log || exit 2
> +rm install-deps.log

> hunk ./darcs.cabal 106
> +flag deps-only
> +  default:     False
> +  description: A cunning trick to have cabal install build dependencies
> +

> -  if !flag(curl) && !flag(http)
> +  if (!flag(curl) && !flag(http)) || flag(deps-only)
>        buildable: False

> -  if !flag(curl) && !flag(http)
> +  if (!flag(curl) && !flag(http)) || flag(deps-only)
>        buildable: False

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9

Attachment: signature.asc
Description: Digital signature

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to