[darcs-users] [little bit OT] How to pass additional parameters on buildbot to cabal configuring darcs?

Judah Jacobson judah.jacobson at gmail.com
Mon Jun 22 22:17:50 UTC 2009


On Mon, Jun 22, 2009 at 11:02 AM, Matthias Kilian<kili at outback.escape.de> wrote:
> On Mon, Jun 22, 2009 at 01:08:24PM +0200, Karel Gardas wrote:
>> I do have libcurl installed on OpenBSD buildbot, yet cabal configure
>> fails with:
>> Setup: Missing dependencies on foreign libraries:
>> * Missing C libraries: curl, curl
>> This problem can usually be solved by installing the system packages that
>> provide these libraries (you may need the "-dev" versions). If the libraries
>> are already installed but in a non-standard location then you can use the
>> flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
>
> Funny, I've the exact problem with ghc-HEAD and libiconv ;-)
>
> Tweaking the build master configuration may be an option (for darcs,
> not for ghc), but I really think cabal is flawed in that it doesn't
> allow some overrides in the environment (like autoconf generated
> configure scripts do).

I believe you can tell Cabal about extra directories by adding the
following lines to ~/.cabal/config :

extra-include-dirs: /opt/local/include
extra-lib-dirs: /opt/local/lib

Does that do what you want?
-Judah


More information about the darcs-users mailing list