Under Solaris: GHC 6.10.2 Release Candidate 1
GHC 6.10.2 will have a problem with cabal-install-0.6.2! When I tried to install cabal-install-0.6.2 for ghc-6.10.1.20090314 I needed to change #!/bin/sh to #!/bin/bash in bootstrap.sh to avoid the following errors: -bash-3.00$ ./bootstrap.sh Checking installed packages for ghc-6.10.1.20090314... ./bootstrap.sh: !: not found parsec is already installed and the version is ok. ./bootstrap.sh: !: not found network is already installed and the version is ok. ./bootstrap.sh: !: not found Cabal is already installed and the version is ok. ./bootstrap.sh: !: not found HTTP is already installed and the version is ok. ./bootstrap.sh: !: not found zlib is already installed and the version is ok. ./bootstrap.sh: !: not found ./bootstrap.sh: !: not found ./bootstrap.sh: !: not found Under Solaris sh is not bash! Next, ghc-6.10.1.20090314 comes with package unix-2.4.0.0, but cabal-install.cabal requests: unix >= 2.0 && < 2.4 Changing to "<= 2.4" was not sufficient, so I changed it to "<= 2.5". This will affect any OS! Testsuite results are bad for ghc-6.10.1.20090314, see http://hackage.haskell.org/trac/ghc/ticket/3106 Cheers Christian Christian Maeder wrote: > Ian Lynagh wrote: >> We are pleased to announce the first release candidate for GHC 6.10.2: >> >> http://www.haskell.org/ghc/dist/6.10.2-rc1/ > > Under Solaris grep does not understand "-q" in configure: > > checkMake380() { > if $1 --version 2>&1 | head -1 | grep -q 'GNU Make 3\.80' > > it fails with: > > grep: illegal option -- q > Usage: grep -hblcnsviw pattern file . . . > grep: illegal option -- q > Usage: grep -hblcnsviw pattern file . . . > > C. ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Under Solaris: GHC 6.10.2 Release Candidate 1
Christian Maeder wrote: > Testsuite results are bad for ghc-6.10.1.20090314, see > http://hackage.haskell.org/trac/ghc/ticket/3106 Patch for the cygpath not found issue is attached to the ticket. Please (Windows/Cygwin/Mingw users especially) test it. Thanks, Karel ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Under Solaris: GHC 6.10.2 Release Candidate 1
On Tue, 2009-03-17 at 11:09 +0100, Christian Maeder wrote: > GHC 6.10.2 will have a problem with cabal-install-0.6.2! > > When I tried to install cabal-install-0.6.2 for ghc-6.10.1.20090314 > I needed to change #!/bin/sh to #!/bin/bash in bootstrap.sh to avoid the > following errors: > > -bash-3.00$ ./bootstrap.sh > Checking installed packages for ghc-6.10.1.20090314... > ./bootstrap.sh: !: not found > Under Solaris sh is not bash! Indeed. According to the OpenGroup that syntax should be fine: http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_09_02 It works for me under Solaris 10. Perhaps Solaris 9 or older do not have a standard compliant /bin/sh program. What do you suggest we use instead as a workaround? > Next, ghc-6.10.1.20090314 comes with package unix-2.4.0.0, but > cabal-install.cabal requests: > > unix >= 2.0 && < 2.4 > > Changing to "<= 2.4" was not sufficient, so I changed it to "<= 2.5". > This will affect any OS! Hmm, it's a bit suspicious that the major version number is changing in a minor ghc release. Do we know what the API breakage is? This could affect any program. Duncan ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Under Solaris: GHC 6.10.2 Release Candidate 1
On 2009 Mar 17, at 20:28, Duncan Coutts wrote: On Tue, 2009-03-17 at 11:09 +0100, Christian Maeder wrote: Under Solaris sh is not bash! Indeed. According to the OpenGroup that syntax should be fine: http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_09_02 It works for me under Solaris 10. Perhaps Solaris 9 or older do not have a standard compliant /bin/sh program. What do you suggest we use instead as a workaround? For backward compatibility reasons sh in Solaris 9 and earlier is not POSIX compliant. Use /usr/xpg4/bin/sh or /bin/bash instead. (Unfortunately you can't cheat and define a shell function, although you could create a program called "!": #! /bin/sh if ${1+"$@"}; then exit 1 else exit 0 fi .) -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allb...@kf8nh.com system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu electrical and computer engineering, carnegie mellon universityKF8NH PGP.sig Description: This is a digitally signed message part ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Under Solaris: GHC 6.10.2 Release Candidate 1
Duncan Coutts wrote: > On Tue, 2009-03-17 at 11:09 +0100, Christian Maeder wrote: >> ./bootstrap.sh: !: not found > >> Under Solaris sh is not bash! > > Indeed. > > According to the OpenGroup that syntax should be fine: > http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_09_02 > > It works for me under Solaris 10. Perhaps Solaris 9 or older do not have > a standard compliant /bin/sh program. What do you suggest we use instead > as a workaround? The Isabelle people use "#!/usr/bin/env bash" as first line. Btw I had this problem under Solaris 10 (but I don't know how it was installed). Cheers Christian ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Under Solaris: GHC 6.10.2 Release Candidate 1
On Tue, 2009-03-17 at 21:12 -0400, Brandon S. Allbery KF8NH wrote: > On 2009 Mar 17, at 20:28, Duncan Coutts wrote: > > It works for me under Solaris 10. Perhaps Solaris 9 or older do not > > have a standard compliant /bin/sh program. What do you suggest we use > > instead as a workaround? > For backward compatibility reasons sh in Solaris 9 and earlier is not > POSIX compliant. Use /usr/xpg4/bin/sh or /bin/bash instead. > (Unfortunately you can't cheat and define a shell function, although > you could create a program called "!": > if ${1+"$@"}; then > exit 1 > else > exit 0 > fi Actually this is what the script used 'til someone pointed out to me that sh has the ! syntax :-). I'll switch it back to using this style with a note to say why. Duncan - ! grep " ${PKG}-${VER_MATCH}" ghc-pkg.list > /dev/null 2>&1 + if grep " ${PKG}-${VER_MATCH}" ghc-pkg.list > /dev/null 2>&1 + then +return 1; + else +return 0; + fi + #Note: we cannot use "! grep" as Solaris 9 /bin/sh doesn't like it. ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Under Solaris: GHC 6.10.2 Release Candidate 1
On Wed, Mar 18, 2009 at 12:28:50AM +, Duncan Coutts wrote: > On Tue, 2009-03-17 at 11:09 +0100, Christian Maeder wrote: > > > > unix >= 2.0 && < 2.4 > > > > Changing to "<= 2.4" was not sufficient, so I changed it to "<= 2.5". > > This will affect any OS! > > Hmm, it's a bit suspicious that the major version number is changing in > a minor ghc release. Do we know what the API breakage is? This could > affect any program. This looks like a braino to me. Things have been added to the API, but I don't see anything that's been removed or change. I'll put the version number back to 2.3.2.0. Thanks Ian ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Under Solaris: GHC 6.10.2 Release Candidate 1
On Tue, Mar 17, 2009 at 12:51:23PM +0100, Karel Gardas wrote: > Christian Maeder wrote: > > Testsuite results are bad for ghc-6.10.1.20090314, see > > http://hackage.haskell.org/trac/ghc/ticket/3106 > > Patch for the cygpath not found issue is attached to the ticket. Please > (Windows/Cygwin/Mingw users especially) test it. Thanks; I'll apply one of the fixes and test on Windows platforms. Thanks Ian ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users