RE: Configuring in directories with spaces fails in ghc6.4

2005-02-23 Thread Simon Marlow
On 22 February 2005 14:35, Malcolm Wallace wrote:

 However, it could be worthwhile halting with an error message.
 
 case `pwd` in
   *' '*)
 echo Error: nhc98 will not build in a directory with spaces
 anywhere echoin the full pathname.
 echo Suggestion: move the build tree somewhere else.
 exit 1 ;;
 esac

Good idea, done.

Simon
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


RE: Configuring in directories with spaces fails in ghc6.4

2005-02-22 Thread Simon Marlow
On 22 February 2005 12:05, Anders Höckersten wrote:

 It seems the ghc 6.4 release candidates' configure scripts fail if you
 run them in a directory structure containing a space. In my case,
 being in /home/chucky/My Downloads fails with:
 configure: creating ./config.status
 config.status: creating ghc.spec
 config.status: creating VERSION
 config.status: creating docs/users_guide/ug-book.xml
 config.status: creating mk/config.mk
 config.status: creating mk/version.mk
 ./configure: line 20341: cd: /home/chucky/My: No such file or
 directory 

Quite possibly.  No doubt we'd have to add a million quotes to the build system 
to fix this; it's not going to happen any time soon.  

don't do that

Cheers,
Simon
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Configuring in directories with spaces fails in ghc6.4

2005-02-22 Thread Malcolm Wallace
Simon Marlow [EMAIL PROTECTED] writes:

  It seems the ghc 6.4 release candidates' configure scripts fail if you
  run them in a directory structure containing a space.
 
 Quite possibly.  No doubt we'd have to add a million quotes to the build
 system to fix this; it's not going to happen any time soon.  

Yes.  Someone recently reported the same problem with nhc98's configure
script, and I actually tried adding the quotes.  It is nightmarish -
you'll quickly discover a need for quotes inside quotes and worse,
depending on how many levels of shells/tools/Makefiles a variable gets
passed through.  In the end, it was far simpler to abandon the idea.

However, it could be worthwhile halting with an error message.

case `pwd` in
  *' '*)
echo Error: nhc98 will not build in a directory with spaces anywhere
echoin the full pathname.
echo Suggestion: move the build tree somewhere else.
exit 1 ;;
esac

Regards,
Malcolm
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users