Leksah Install Issue (cabal experts please help)

pozic raised an install issue on IRC. Basically he was getting... ~$ cabal install leksah-server Resolving dependencies... cabal: Couldn't read cabal file "leksah-server/0.12.0.3/leksah-server.cabal" To reproduce this issue. Use GHC 6.12.3, 7.0.3 or 7.2.2 to "cabal install cabal-install" then run "cabal install leksah-server". To work around it install GHC 7.0.4 or 7.4.1 and use it to run "cabal install cabal-install" (then you can go back to the old GHC if you want). Cabal experts, is there a better work around than this? The current leksah-server.cabal requires Cabal 1.10.2 or greater because it has a "test-suite" section for "cabal test". This is fine if you have installed cabal-install with GHC 7.0.4 or 7.4.1, but if you install cabal-install with older versions of GHC (including 7.2.2) then it can't handle the file format. I could upload a new leksah-server to hackage (with the unit tests removed), but that would not stop cabal-install from failing to read leksah-server 0.12.0.3 and bombing out (there is already a 0.12.0.4 and it is not getting to that one). Even if you "cabal unpack" and then modify the .cabal file and run "cabal install" it still fails with the same error. If you can think of a better solution than asking users to install GHC 7.0.4 or 7.4.1 to build cabal-install, then please let me know.

On 13 March 2012 12:33, Hamish Mackenzie
pozic raised an install issue on IRC. Basically he was getting...
~$ cabal install leksah-server Resolving dependencies... cabal: Couldn't read cabal file "leksah-server/0.12.0.3/leksah-server.cabal"
To reproduce this issue. Use GHC 6.12.3, 7.0.3 or 7.2.2 to "cabal install cabal-install" then run "cabal install leksah-server".
To work around it install GHC 7.0.4 or 7.4.1 and use it to run "cabal install cabal-install" (then you can go back to the old GHC if you want).
Cabal experts, is there a better work around than this?
The current leksah-server.cabal requires Cabal 1.10.2 or greater because it has a "test-suite" section for "cabal test".
This is fine if you have installed cabal-install with GHC 7.0.4 or 7.4.1, but if you install cabal-install with older versions of GHC (including 7.2.2) then it can't handle the file format.
I could upload a new leksah-server to hackage (with the unit tests removed), but that would not stop cabal-install from failing to read leksah-server 0.12.0.3 and bombing out (there is already a 0.12.0.4 and it is not getting to that one).
Even if you "cabal unpack" and then modify the .cabal file and run "cabal install" it still fails with the same error.
How did you modify it? Did you change the "cabal-version" field as well?
If you can think of a better solution than asking users to install GHC 7.0.4 or 7.4.1 to build cabal-install, then please let me know.
Just build a newer version of cabal-install based upon Cabal-1.10 ?
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com http://IvanMiljenovic.wordpress.com

On 13 Mar 2012, at 15:56, Ivan Lazar Miljenovic wrote:
Even if you "cabal unpack" and then modify the .cabal file and run "cabal install" it still fails with the same error.
How did you modify it? Did you change the "cabal-version" field as well?
I changed cabal-version and removed the test-suites. I think it must be looking at all the available versions of the package (in hackage).
If you can think of a better solution than asking users to install GHC 7.0.4 or 7.4.1 to build cabal-install, then please let me know.
Just build a newer version of cabal-install based upon Cabal-1.10 ?
I just tried this and it works... cabal install Cabal-1.10.0.2 cabal install cabal-install cabal install leksah-server Thanks Ivan

On 13 Mar 2012, at 16:51, Hamish Mackenzie wrote:
On 13 Mar 2012, at 15:56, Ivan Lazar Miljenovic wrote:
Even if you "cabal unpack" and then modify the .cabal file and run "cabal install" it still fails with the same error.
How did you modify it? Did you change the "cabal-version" field as well?
I changed cabal-version and removed the test-suites. I think it must be looking at all the available versions of the package (in hackage).
If you can think of a better solution than asking users to install GHC 7.0.4 or 7.4.1 to build cabal-install, then please let me know.
Just build a newer version of cabal-install based upon Cabal-1.10 ?
I just tried this and it works...
cabal install Cabal-1.10.0.2 cabal install cabal-install cabal install leksah-server
Thanks Ivan
Oops transposed the last two parts of the version number. It should should have read... cabal install Cabal-1.10.2.0 cabal install cabal-install cabal install leksah-server

On 13 Mar 2012, at 16:56, Hamish Mackenzie wrote:
On 13 Mar 2012, at 16:51, Hamish Mackenzie wrote:
On 13 Mar 2012, at 15:56, Ivan Lazar Miljenovic wrote:
Even if you "cabal unpack" and then modify the .cabal file and run "cabal install" it still fails with the same error.
How did you modify it? Did you change the "cabal-version" field as well?
I changed cabal-version and removed the test-suites. I think it must be looking at all the available versions of the package (in hackage).
If you can think of a better solution than asking users to install GHC 7.0.4 or 7.4.1 to build cabal-install, then please let me know.
Just build a newer version of cabal-install based upon Cabal-1.10 ?
I just tried this and it works...
cabal install Cabal-1.10.0.2 cabal install cabal-install cabal install leksah-server
Thanks Ivan
Oops transposed the last two parts of the version number. It should should have read...
cabal install Cabal-1.10.2.0 cabal install cabal-install cabal install leksah-server
This also works... cabal install --constrain='Cabal>=1.10.2' cabal-install cabal install leksah-server

On 13 March 2012 15:03, Hamish Mackenzie
On 13 Mar 2012, at 16:56, Hamish Mackenzie wrote:
On 13 Mar 2012, at 16:51, Hamish Mackenzie wrote:
On 13 Mar 2012, at 15:56, Ivan Lazar Miljenovic wrote:
Even if you "cabal unpack" and then modify the .cabal file and run "cabal install" it still fails with the same error.
How did you modify it? Did you change the "cabal-version" field as well?
I changed cabal-version and removed the test-suites. I think it must be looking at all the available versions of the package (in hackage).
If you can think of a better solution than asking users to install GHC 7.0.4 or 7.4.1 to build cabal-install, then please let me know.
Just build a newer version of cabal-install based upon Cabal-1.10 ?
I just tried this and it works...
cabal install Cabal-1.10.0.2 cabal install cabal-install cabal install leksah-server
Thanks Ivan
Oops transposed the last two parts of the version number. It should should have read...
cabal install Cabal-1.10.2.0 cabal install cabal-install cabal install leksah-server
This also works... cabal install --constrain='Cabal>=1.10.2' cabal-install cabal install leksah-server
Wouldn't just a "cabal update && cabal install cabal-install" work to bring in the newest version of cabal-install (which requires Cabal-1.10.*) ? -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com http://IvanMiljenovic.wordpress.com

This also works... cabal install --constrain='Cabal>=1.10.2' cabal-install cabal install leksah-server
Wouldn't just a "cabal update && cabal install cabal-install" work to bring in the newest version of cabal-install (which requires Cabal-1.10.*) ?
Cabal 1.10.1 is installed with ghc 7.0.3 and 7.2.2 That is the one that causes the problem.

On 13 March 2012 15:28, Hamish Mackenzie
This also works... cabal install --constrain='Cabal>=1.10.2' cabal-install cabal install leksah-server
Wouldn't just a "cabal update && cabal install cabal-install" work to bring in the newest version of cabal-install (which requires Cabal-1.10.*) ?
Cabal 1.10.1 is installed with ghc 7.0.3 and 7.2.2
That is the one that causes the problem.
Hmmm, interesting that the problem is that specific. Though I would have thought that the "cabal install" invocation would have upgraded Cabal as well... -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com http://IvanMiljenovic.wordpress.com
participants (2)
-
Hamish Mackenzie
-
Ivan Lazar Miljenovic