On Sat, 2008-09-13 at 20:36 +0200, Andrea Rossato wrote:
> Hi,
> 
> the Hackage upload script performs some checks on the packages being
> uploaded. In my case, a library, I need to use the cabal generated
> Paths_package file to access some locale data stored in a data file
> directory.
> 
> This requires to include in "hs-source-dirs" "dist/build/autogen",
> which doesn't exist in the source tree, since it's generated by cabal
> in the build process (the inclusion is made necessary by a bug in
> Cabal-1.2 which doesn't automatically search dist/build/autogen, see
> [1]).

Any path in your .cabal file that uses dist/ is wrong. Sorry. The dist
path can be changed by the user (--builddir) and its internal layout is
not fixed.

> And so Hackage complains: I needed to manually include such an empty
> directory in the source code archive.
> 
> Any way out?

I can't think of any other workaround for 1.2 so I think you'll have to
require Cabal-1.4 for your package.

Duncan

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to