ANNOUNCE : Leksah 0.12.1.2 (fixes some metadata issues)

This release has an important bug fix for the metadata download. When metadata was downloaded using libcurl it was not treated as binary data. If you used one of our binary installers or if you built Leksah with the -flibcurl flag then it is likely you have bad metadata files. To fix this please install Leksah 0.12.1.2, then delete your ~/.leksah-0.12/metadata folder to force Leksah to download the metadata files again. The first time you run leksah after doing this it will take a while for leksah to update the metadata (you can track its progress by looking in the metadata directory). If you choose to generate your metadata locally or you used wget to download (the default if you cabal installed leksah) then your metadata should be ok. There are some other bug fixes in this release including one for metadata generation for users with lots of .cabal files (some lazy IO was leaving file handles open). Source is in Hackage and https://github.com/leksah Binary Installers Use "ghc --version" to work out which one you need. OS X http://leksah.org/packages/leksah-0.12.1.2-ghc-7.0.3.dmg http://leksah.org/packages/leksah-0.12.1.2-ghc-7.0.4.dmg http://leksah.org/packages/leksah-0.12.1.2-ghc-7.4.1.dmg Windows http://leksah.org/packages/leksah-0.12.1.2-ghc-6.12.3.exe http://leksah.org/packages/leksah-0.12.1.2-ghc-7.0.3.exe http://leksah.org/packages/leksah-0.12.1.2-ghc-7.0.4.exe http://leksah.org/packages/leksah-0.12.1.2-ghc-7.4.1.exe

Hi Hamish,
On 19 June 2012 22:47, Hamish Mackenzie
This release has an important bug fix for the metadata download. When metadata was downloaded using libcurl it was not treated as binary data. If you used one of our binary installers or if you built Leksah with the -flibcurl flag then it is likely you have bad metadata files.
I just tried (again) to install Leksah. I was wondering if you could point out where I go wrong. I'm on a fully up-to-date Gentoo Linux (kernel 3.4.3, 64 bit) box. I ran the following commands (as described, more or less, on http://leksah.org/download.html): hilco@centaur ~ ~$ rm -rf .cabal/ hilco@centaur ~ ~$ cabal update Downloading the latest package list from hackage.haskell.org hilco@centaur ~ ~$ cabal install gtk2hs-buildtools Resolving dependencies... Downloading gtk2hs-buildtools-0.12.3.1... Configuring gtk2hs-buildtools-0.12.3.1... Building gtk2hs-buildtools-0.12.3.1... ... lots of output ... Linking dist/build/gtk2hsC2hs/gtk2hsC2hs ... Installing executable(s) in /home/hilco/.cabal/bin hilco@centaur ~ ~$ cabal install leksah Resolving dependencies... In order, the following would be installed: attoparsec-0.10.2.0 (reinstall) changes: text-0.11.2.2 added binary-shared-0.8.2 (new version) cairo-0.12.3.1 (new package) enumerator-0.4.19 (reinstall) changes: text-0.11.2.2 added, transformers-0.2.2.0 -> 0.3.0.0 attoparsec-enumerator-0.3 (reinstall) changes: text-0.11.2.2 added glib-0.12.3.1 (new package) gio-0.12.3 (new package) network-2.3.0.14 (reinstall) changes: parsec-3.1.2 -> 3.1.3 hslogger-1.1.5 (reinstall) changes: mtl-2.0.1.0 -> 2.1.1 pango-0.12.3 (new package) gtk-0.12.3.1 (new package) gtksourceview2-0.12.3.1 (new package) ltk-0.12.1.0 (new package) leksah-server-0.12.1.2 (new package) regex-base-0.93.2 (reinstall) changes: mtl-2.0.1.0 -> 2.1.1 regex-tdfa-1.1.8 (reinstall) changes: mtl-2.0.1.0 -> 2.1.1, parsec-3.1.2 -> 3.1.3 leksah-0.12.1.2 (new package) cabal: The following packages are likely to be broken by the reinstalls: regex-posix-0.95.1 regex-compat-0.95.1 Use --force-reinstalls if you want to install anyway. hilco@centaur ~ ~$ cabal install leksah --force-reinstalls Resolving dependencies... Warning: The following packages are likely to be broken by the reinstalls: regex-posix-0.95.1 regex-compat-0.95.1 Continuing even though the plan contains dangerous reinstalls. ... lots of output ... cabal: Error: some packages failed to install: cairo-0.12.3.1 failed during the configure step. The exception was: ExitFailure 1 gio-0.12.3 depends on glib-0.12.3.1 which failed to install. glib-0.12.3.1 failed during the configure step. The exception was: ExitFailure 1 gtk-0.12.3.1 depends on glib-0.12.3.1 which failed to install. gtksourceview2-0.12.3.1 depends on glib-0.12.3.1 which failed to install. leksah-0.12.1.2 depends on glib-0.12.3.1 which failed to install. leksah-server-0.12.1.2 depends on glib-0.12.3.1 which failed to install. ltk-0.12.1.0 depends on glib-0.12.3.1 which failed to install. pango-0.12.3 depends on glib-0.12.3.1 which failed to install. Any ideas?

On 12-06-20 07:59 PM, Hilco Wijbenga wrote:
hilco@centaur ~ ~$ rm -rf .cabal/
I am not sure why you start with this. If you do this for a clean start, see my http://www.vex.net/~trebla/haskell/sicp.xhtml#remove for why it is not a clean start. If you do this for some other purpose, nevermind.
... lots of output ...
I think that is the informative part.

On 20 June 2012 18:32, Albert Y. C. Lai
On 12-06-20 07:59 PM, Hilco Wijbenga wrote:
hilco@centaur ~ ~$ rm -rf .cabal/
I am not sure why you start with this.
If you do this for a clean start, see my http://www.vex.net/~trebla/haskell/sicp.xhtml#remove for why it is not a clean start.
:-) Thank you for pointing that out. My purpose was indeed to start over. I've also removed .ghc.
... lots of output ...
I think that is the informative part.
Yes, I suppose so. :-) In my feeble defence: initially there were no errors. It wasn't until I tried --force-reinstalls that there was an error reported (gtk2hsC2hs was not able to run). Even this error, however, was well hidden. No different font, no different colour, no ASCII art drawing attention to it, nothing. So I missed it the first two times. If I had noticed it I would have known to include .cabal/bin in my PATH (it's in the error message). Cabal doesn't seem to believe in "fail early, fail loudly"? :-)

On Wed, 20 Jun 2012 16:59:16 -0700
Hilco Wijbenga
Hi Hamish,
On 19 June 2012 22:47, Hamish Mackenzie
wrote: This release has an important bug fix for the metadata download. When metadata was downloaded using libcurl it was not treated as binary data. If you used one of our binary installers or if you built Leksah with the -flibcurl flag then it is likely you have bad metadata files.
I just tried (again) to install Leksah. I was wondering if you could point out where I go wrong. I'm on a fully up-to-date Gentoo Linux (kernel 3.4.3, 64 bit) box.
I ran the following commands (as described, more or less, on http://leksah.org/download.html):
hilco@centaur ~ ~$ rm -rf .cabal/
hilco@centaur ~ ~$ cabal update Downloading the latest package list from hackage.haskell.org
hilco@centaur ~ ~$ cabal install gtk2hs-buildtools Resolving dependencies... Downloading gtk2hs-buildtools-0.12.3.1... Configuring gtk2hs-buildtools-0.12.3.1... Building gtk2hs-buildtools-0.12.3.1... ... lots of output ... Linking dist/build/gtk2hsC2hs/gtk2hsC2hs ... Installing executable(s) in /home/hilco/.cabal/bin
hilco@centaur ~ ~$ cabal install leksah Resolving dependencies... In order, the following would be installed: attoparsec-0.10.2.0 (reinstall) changes: text-0.11.2.2 added binary-shared-0.8.2 (new version) cairo-0.12.3.1 (new package) enumerator-0.4.19 (reinstall) changes: text-0.11.2.2 added, transformers-0.2.2.0 -> 0.3.0.0 attoparsec-enumerator-0.3 (reinstall) changes: text-0.11.2.2 added glib-0.12.3.1 (new package) gio-0.12.3 (new package) network-2.3.0.14 (reinstall) changes: parsec-3.1.2 -> 3.1.3 hslogger-1.1.5 (reinstall) changes: mtl-2.0.1.0 -> 2.1.1 pango-0.12.3 (new package) gtk-0.12.3.1 (new package) gtksourceview2-0.12.3.1 (new package) ltk-0.12.1.0 (new package) leksah-server-0.12.1.2 (new package) regex-base-0.93.2 (reinstall) changes: mtl-2.0.1.0 -> 2.1.1 regex-tdfa-1.1.8 (reinstall) changes: mtl-2.0.1.0 -> 2.1.1, parsec-3.1.2 -> 3.1.3 leksah-0.12.1.2 (new package) cabal: The following packages are likely to be broken by the reinstalls: regex-posix-0.95.1 regex-compat-0.95.1 Use --force-reinstalls if you want to install anyway.
hilco@centaur ~ ~$ cabal install leksah --force-reinstalls Resolving dependencies... Warning: The following packages are likely to be broken by the reinstalls: regex-posix-0.95.1 regex-compat-0.95.1 Continuing even though the plan contains dangerous reinstalls. ... lots of output ... cabal: Error: some packages failed to install: cairo-0.12.3.1 failed during the configure step. The exception was: ExitFailure 1 gio-0.12.3 depends on glib-0.12.3.1 which failed to install. glib-0.12.3.1 failed during the configure step. The exception was: ExitFailure 1 gtk-0.12.3.1 depends on glib-0.12.3.1 which failed to install. gtksourceview2-0.12.3.1 depends on glib-0.12.3.1 which failed to install. leksah-0.12.1.2 depends on glib-0.12.3.1 which failed to install. leksah-server-0.12.1.2 depends on glib-0.12.3.1 which failed to install. ltk-0.12.1.0 depends on glib-0.12.3.1 which failed to install. pango-0.12.3 depends on glib-0.12.3.1 which failed to install.
Any ideas?
You might like to try out installing leksah with stock emerge: https://github.com/gentoo-haskell/gentoo-haskell/blob/master/README.rst gtk2hs-buildtools seems to be buggy when ran the first time on certain headers: http://www.mail-archive.com/gtk2hs-devel@lists.sourceforge.net/msg01160.html gentoo-haskell overlay workarounds it by disabling binary cache: https://github.com/gentoo-haskell/gentoo-haskell/blob/master/dev-haskell/gtk... -- Sergei
participants (4)
-
Albert Y. C. Lai
-
Hamish Mackenzie
-
Hilco Wijbenga
-
Sergei Trofimovich