cabal-install 0.6.2 does not bootstrap with ghc-6.10.1 debian distribution

Dear Haskellers and especially who are working on cabal-install and debian packaging, I sometimes clean up .ghc and .cabal in my home directory to start from scratch because of dependency loopholes (cabal-install does not have remove option yet, so it's hard to fix when such loophole happens). Today, I had some time in the airport and decided to start from scratch again because of the dependency loophole with process 1.0.1.1 and haddock. I downloaded the most recent version of cabal-install the version 0.6.2, and found out that the ./bootstrap.sh does not work. So, I had to bootstrap from version 0.6.2 and do "cabal update" and "cabal upgrade cabal-install" to upgrade to 0.6.2. I am not sure whether this is a cabal-install problem or debian dstribution ghc-6.10.1 packaging probelm, since I have not tried to test this with any other ghc-6.10.1 distribution. If anyone who are not using debian distribution ghc-6.10.1 (e.g., general linux binary ghc-6.10.1 or source compiled one) can try bootstrapping cabal-install 0.6.2 from scratch also finds the same problem, I think someone should make a ticket for cabal-install. Thanks, Ahn, Ki Yung

Ahn, Ki Yung 쓴 글:
Dear Haskellers and especially who are working on cabal-install and debian packaging,
I sometimes clean up .ghc and .cabal in my home directory to start from scratch because of dependency loopholes (cabal-install does not have remove option yet, so it's hard to fix when such loophole happens).
Today, I had some time in the airport and decided to start from scratch again because of the dependency loophole with process 1.0.1.1 and haddock. I downloaded the most recent version of cabal-install the version 0.6.2, and found out that the ./bootstrap.sh does not work. So, I had to bootstrap from version 0.6.2 and do "cabal update" and "cabal upgrade cabal-install" to upgrade to 0.6.2.
Sorry for my typo. What I meant was: I was able to bootstrapped from version 0.6.0 and then upgrade to 0.6.2.
I am not sure whether this is a cabal-install problem or debian dstribution ghc-6.10.1 packaging probelm, since I have not tried to test this with any other ghc-6.10.1 distribution.
If anyone who are not using debian distribution ghc-6.10.1 (e.g., general linux binary ghc-6.10.1 or source compiled one) can try bootstrapping cabal-install 0.6.2 from scratch also finds the same problem, I think someone should make a ticket for cabal-install.
Thanks,
Ahn, Ki Yung

On Sat, 2009-03-07 at 17:51 -0800, Ahn, Ki Yung wrote:
Dear Haskellers and especially who are working on cabal-install and debian packaging,
I sometimes clean up .ghc and .cabal in my home directory to start from scratch because of dependency loopholes (cabal-install does not have remove option yet, so it's hard to fix when such loophole happens).
Today, I had some time in the airport and decided to start from scratch again because of the dependency loophole with process 1.0.1.1 and haddock. I downloaded the most recent version of cabal-install the version 0.6.2, and found out that the ./bootstrap.sh does not work.
If you could provide any details on how it does not work that would be much appreciated. Eg a log of the output from running the bootstrap. Duncan

Duncan Coutts 쓴 글:
On Sat, 2009-03-07 at 17:51 -0800, Ahn, Ki Yung wrote:
Dear Haskellers and especially who are working on cabal-install and debian packaging,
I sometimes clean up .ghc and .cabal in my home directory to start from scratch because of dependency loopholes (cabal-install does not have remove option yet, so it's hard to fix when such loophole happens).
Today, I had some time in the airport and decided to start from scratch again because of the dependency loophole with process 1.0.1.1 and haddock. I downloaded the most recent version of cabal-install the version 0.6.2, and found out that the ./bootstrap.sh does not work.
If you could provide any details on how it does not work that would be much appreciated. Eg a log of the output from running the bootstrap.
Duncan
I am using Debian unstable. The version of GHC debian package is 6.10.1+dfsg1-13, and installed Haskell libraries (debian packages) are: kyagrd@kyavaio:~$ ghc-pkg list /usr/lib/ghc-6.10.1/./package.conf: Cabal-1.6.0.1, Diff-0.1.2, HGL-3.2.0.0, HUnit-1.2.0.3, QuickCheck-2.1.0.1, Stream-0.2.2, X11-1.4.5, array-0.2.0.0, arrows-0.4.1, base-3.0.3.0, base-4.0.0.0, binary-0.5, bytestring-0.9.1.4, cairo-0.10.0, cgi-3001.1.7.1, containers-0.2.0.0, directory-1.0.0.2, editline-0.2.1.0, fgl-5.4.2.2, filepath-1.1.0.1, gconf-0.10.0, (ghc-6.10.1), ghc-prim-0.1.0.0, gio-0.10.0, glade-0.10.0, glib-0.10.0, gnomevfs-0.10.0, gstreamer-0.10.0, gtk-0.10.0, gtkglext-0.10.0, gtksourceview2-0.10.0, haskell98-1.0.1.0, hpc-0.5.0.2, html-1.0.1.2, integer-0.1.0.0, irc-0.4.3, mtl-1.1.0.2, network-2.2.0.1, old-locale-1.0.0.1, old-time-1.0.0.1, packedstring-0.1.0.1, parallel-1.1.0.0, parsec-3.0.0, pretty-1.0.1.0, process-1.0.1.0, random-1.0.0.1, rts-1.0, stm-2.1.1.2, svgcairo-0.10.0, syb-0.1.0.0, syb-with-class-0.5.1, tagsoup-0.6, template-haskell-2.3.0.0, time-1.1.2.3, unix-2.3.1.0, utf8-string-0.3.4, xhtml-3000.2.0.1 Bootstrap fails like this: kyagrd@kyavaio:~/tmp/cabal-install-0.6.2$ sh bootstrap.sh Checking installed packages for ghc-6.10.1... The Haskell package 'parsec' is required but it is not installed. If you are using a ghc package provided by your operating system then install the corresponding packages for 'parsec' and 'network'. If you built ghc from source with only the core libraries then you should install these extra packages. You can get them from hackage. Error during cabal-install bootstrap: The Haskell package 'parsec' is required but it is not installed. P.S. Note, parsec and network are installed in the system using debian distribution packages. -- Ahn, Ki Yung

On Sun, 2009-03-08 at 15:33 -0700, Ahn, Ki Yung wrote:
I am using Debian unstable.
The version of GHC debian package is 6.10.1+dfsg1-13, and installed Haskell libraries (debian packages) are:
kyagrd@kyavaio:~$ ghc-pkg list /usr/lib/ghc-6.10.1/./package.conf:
packedstring-0.1.0.1, parallel-1.1.0.0, parsec-3.0.0,
Bootstrap fails like this:
kyagrd@kyavaio:~/tmp/cabal-install-0.6.2$ sh bootstrap.sh Checking installed packages for ghc-6.10.1...
The Haskell package 'parsec' is required but it is not installed. If you are using a ghc package provided by your operating system then install the corresponding packages for 'parsec' and 'network'. If you built ghc from source with only the core libraries then you should install these extra packages. You can get them from hackage.
Error during cabal-install bootstrap: The Haskell package 'parsec' is required but it is not installed.
What it doesn't say is that it's looking for parsec version 2.
P.S. Note, parsec and network are installed in the system using debian distribution packages.
For some reason the debian package maintainers decided to build everything against parsec 3 rather than parsec 2 which everyone else is using. Personally I think this was not a wise decision. Indeed it may be a problem when it comes to supporting the Haskell platform because the first version will use parsec 2. Any major parsec version transition in the Haskell platform will be made by a community decision process. What I've done is dropped the check for parsec in the bootstrap.sh. The only reason we're looking for parsec is because it's needed by network which we also need. So it's not strictly necessary that we check for it. Duncan

Ahn, Ki Yung wrote:
If anyone who are not using debian distribution ghc-6.10.1 (e.g., general linux binary ghc-6.10.1 or source compiled one) can try bootstrapping cabal-install 0.6.2 from scratch also finds the same problem, I think someone should make a ticket for cabal-install.
I remember having to install zlib1g-dev using the package manager, aptitude install zlib1g-dev should suffice. If this was not the problem, please post the exact error message so we can figure out what's going wrong. Regards, -- Jochem Berndsen | jochem@functor.nl GPG: 0xE6FABFAB

Hello, On Sat, Mar 07, 2009 at 05:51:56PM -0800, Ahn, Ki Yung wrote:
I sometimes clean up .ghc and .cabal in my home directory to start from scratch because of dependency loopholes (cabal-install does not have remove option yet, so it's hard to fix when such loophole happens).
You may use ghc-pkg hide or ghc-pkg unregister to solve these problems. -- Tomáš Janoušek, a.k.a. Liskni_si, http://work.lisk.in/
participants (4)
-
Ahn, Ki Yung
-
Duncan Coutts
-
Jochem Berndsen
-
Tomáš Janoušek