[commit: testsuite] master: Fix library way detection; fixes the ImpSafeOnly* tests when BINDIST=YES (b32d38a)

Páli Gábor János pali.gabor at gmail.com
Sun May 12 14:39:14 CEST 2013


On Sun, May 12, 2013 at 1:32 PM, Ian Lynagh <ian at well-typed.com> wrote:
> I'm confused.

Same here :-)

> What does
>     make show VALUE=BASE_LIBDIR
> say in testsuite/tests?

BASE_LIBDIR="/usr/home/user/ghc-validate/libraries/base/dist-install/build
              /usr/local/lib"

Ah, it seems there is another directory added?  I was completely under
the impression that the problem is that the binary distribution is
installed to the directory with spaces in its name.

> What command is being run to cause the error?

I guess this is the HAVE_* lines, the [ -f file ] part that you have
changed in the commit.

See http://darcs.haskell.org/ghcBuilder/builders/pgj/1033/18.html for
the details.  There you should find a lot of error messages like this
one:

[: /tmp/builder/tempbuild/build/bindisttest/install
dir/lib/ghc-7.7.20130512/base-4.7.0.0: unexpected operator

> Does this work on FreeBSD?:
>     [ -f "foo bar"baz ] && echo yes

No output.  But:

$ [ -f "foo bar" baz ] && echo yes
[: foo bar: unexpected operator



More information about the ghc-devs mailing list