#1950: Should not register packages when installing with DESTDIR option
--------------------------+-------------------------------------------------
Reporter: ajd | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 6.8.1
Severity: minor | Keywords:
Testcase: | Architecture: Unknown
Os: Linux |
--------------------------+-------------------------------------------------
After compiling GHC 6.8.1 configured with --prefix=/usr
--libdir=/usr/lib/haskell, I installed it with
DESTDIR=/usr/pkg/ghc/6.8.1-swp . During the installation, Cabal emitted
some (ignored) warnings like so:
{{{
Registering parallel-1.0.0.0...
Reading package info from "dist/installed-pkg-config" ... done.
/usr/lib/haskell//ghc-6.8.1/lib/parallel-1.0.0.0 doesn't exist or isn't a
directory (ignoring)
/usr/lib/haskell//ghc-6.8.1/lib/parallel-1.0.0.0 doesn't exist or isn't a
directory (ignoring)
cannot find libHSparallel-1.0.0.0.a on library path (ignoring)
}}}
In other words, the build system didn't tell Cabal that the files were not
yet in their final place.
I'm not sure if this does any harm, but it seems like, if DESTDIR is set,
GHC ought to use Cabal's "copy" instead of "install" and then provide a
separate Makefile target for registering all the libraries.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1950>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs