Ticket #842 (new defect)

Opened 2 years ago

Last modified 15 months ago

cabal appears to complain about relative paths

Reported by: jeffz Owned by:
Priority: normal Milestone: cabal-install-0.16
Component: cabal-install tool Version: 1.10.1.0
Severity: normal Keywords:
Cc: Difficulty: unknown
GHC Version: Platform:

Description

With cabal configure --extra-lib-dirs=foo

$ cabal build Preprocessing library HENet-0.0.1... Building HENet-0.0.1... Registering HENet-0.0.1... cabal.exe: HENet-0.0.1: library-dirs: .libs is a relative path (use --force to override)

Originally reported on irc:

<dcoutts> jeffz: the right solution here would be for cabal to make the paths absolute before passing them on to ghc-pkg

Change History

Changed 15 months ago by kosmikus

  • milestone set to cabal-install-0.16

Changed 15 months ago by MikolajKonarski

It wouldn't hurt to allow relative paths to the compiler, too. Right now the following fails:

cabal install -w ../ghc.bkp/inplace/bin/ghc-stage2 parallel
Resolving dependencies...
Configuring containers-0.4.2.1...
cabal: Cannot find the program 'ghc' at '../ghc.bkp/inplace/bin/ghc-stage2' or on the path

but the same compilation works OK if installing from a source directory, not from Hackage.

BTW, If/when it's done, it would make sense to remove the tip about absolute paths, I've added in

 http://hackage.haskell.org/trac/ghc/wiki/Debugging/InstallingPackagesInplace

Note: See TracTickets for help on using tickets.