Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99695 - Ebuild for Cabal-1.1.1 (rc of 1.2)
Summary: Ebuild for Cabal-1.1.1 (rc of 1.2)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 99697
  Show dependency tree
 
Reported: 2005-07-20 09:42 UTC by Lennart Kolmodin (RETIRED)
Modified: 2005-10-23 05:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
First attempt (cabal-1.1.1.ebuild,2.64 KB, text/plain)
2005-07-20 09:44 UTC, Lennart Kolmodin (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lennart Kolmodin (RETIRED) gentoo-dev 2005-07-20 09:42:27 UTC
An ebuild for cabal-1.1.1 which is a rc of 1.2.
http://www.haskell.org/cabal/


Reproducible: Always
Steps to Reproduce:
Comment 1 Lennart Kolmodin (RETIRED) gentoo-dev 2005-07-20 09:44:25 UTC
Created attachment 63899 [details]
First attempt
Comment 2 Lennart Kolmodin (RETIRED) gentoo-dev 2005-07-20 09:56:55 UTC
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)
Comment 3 Lennart Kolmodin (RETIRED) gentoo-dev 2005-07-21 01:42:31 UTC
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.
Comment 4 Lennart Kolmodin (RETIRED) gentoo-dev 2005-10-23 05:37:05 UTC
It has been taken care of.