Summary: | Ebuild for Cabal-1.1.1 (rc of 1.2) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Lennart Kolmodin (RETIRED) <kolmodin> |
Component: | New packages | Assignee: | Gentoo's Haskell Language team <haskell> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 99697 | ||
Attachments: | First attempt |
Description
Lennart Kolmodin (RETIRED)
![]() Created attachment 63899 [details]
First attempt
Cabal-1.1.1 doesn't play well when Cabal-1.0 (bundled with ghc 6.4) is still registered, so I added this to the ebuild in postinst (taken from docs). * If you have an older version of Cabal installed, you may have to * specify which version you want when you run ghci. For instance: * * $ ghci -package Cabal * ghc-6.4: Error; multiple packages match Cabal: Cabal-1.0, Cabal-1.0.1 * * If you want to avoid this situation, you can remove the * older version with: * * $ ghc-pkg unregister Cabal-1.0 Also, Cabal-1.0 doesn't like Cabal-1.1.1: $ ghci -package Cabal-1.0 Error: module 'Distribution.Compat.ReadP' is exposed by package Cabal-1.0 and package Cabal-1.1.1 .... lots more ... $ ghc-pkg field Cabal-1.0 exposed exposed: True $ ghc-pkg field Cabal-1.0 exposed exposed: False Also, this happens.. $ ghci -package Cabal-1.1.1 Loading package base-1.0 ... linking ... done. Loading package mtl-1.0 ... linking ... done. Loading package lang-1.0 ... linking ... done. Loading package QuickCheck-1.0 ... linking ... done. Loading package readline-1.0 ... linking ... done. Loading package unix-1.0 ... linking ... done. Loading package posix-1.0 ... linking ... done. Loading package util-1.0 ... linking ... done. Loading package Cabal-1.1.1 ... ghc-6.4: can't load .so/.DLL for: HSCabal-1.1.1 (libHSCabal-1.1.1.so: cannot open shared object file: No such file or directory) err... In the example above it should be: $ ghc-pkg field Cabal-1.1.1 exposed exposed: True $ ghc-pkg field Cabal-1.0 exposed exposed: False and nothing else. It has been taken care of. |