Cabal-1.4: library-dirs and include-dirs missing from package
description after install
duncan.coutts at worc.ox.ac.uk
Mon Jun 16 14:58:55 EDT 2008
On Mon, 2008-06-16 at 14:15 +0100, Alistair Bayley wrote:
> I'm trying to build and install Takusen 0.8.2 with a new .cabal and
> Setup, using Cabal-188.8.131.52. The Setup program writes out an updated
> Takusen.buildinfo (below) from the postConf hook. However, the
> library-dirs and include-dirs fields are not included in the package
> description when installed.
> Any ideas as to what I'm doing wrong?
I cannot reproduce this problem. It works fine for me.
I made a dummy takusen.cabal:
-- nothing here
and your takusen.buildinfo
> --------------- Takusen.buildinfo ---------------------
> buildable: True
> build-tools: odbcconf -any, sqlplus -any, pg_config -any,
> sqlite3 -any
> ld-options: --enable-stdcall-fixup
> extensions: CPP
> extra-libraries: odbc32 oci pq sqlite3
> extra-lib-dirs: "C:\\Program Files\\sqlite3\\"
I assume you did actually have the above line properly indented. With it
as it is you get a parse error when reading in the buildinfo file.
> include-dirs: "C:\\Program Files\\sqlite3\\"
> hs-source-dirs: .
> other-modules: Database.InternalEnumerator
> ghc-prof-options: -prof -auto-all
> ghc-shared-options: -prof -auto-all
Then I do
$ cabal configure
$ cabal register --gen-pkg-config
and looking at the takusen-0.conf the library-dirs and include-dirs
contain all the dirs given in takusen.buildinfo.
This is obviously on Windows. On linux it would not work since C:\etc
are not absolute paths on unix but they are on Windows.
So I'll need more precise details on how to reproduce the problem. Is
there a darcs repo I should use? What commands should I use exactly?
More information about the cabal-devel