[csw-maintainers] Fwd: [ccache] solaris compile error

Sebastian Kayser skayser at opencsw.org
Wed May 26 20:28:50 CEST 2010

* rupert THURNER <rupert at opencsw.org> wrote:
> great, that worked. do we have a trick to make the test script work as
> well? it contains "pwd" (which gives "trunk") to call the freshly
> compiled ccache (which is deep in th ework directory), so the result
> is:
> gmake[3]: Entering directory
> `/home/rupert/mgar/pkg/ccache/trunk/work/solaris9-sparc/build-isa-sparcv8/ccache-3.0pre1'
> CC='/opt/studio/SOS12/SUNWspro/bin/cc' ./test.sh
> starting testsuite base
> ./test.sh: /home/rupert/mgar/pkg/ccache/trunk/ccache: not found
> SUITE: "base", TEST: "" - Expected "cache hit (preprocessed)" to be 0, got
> ./test.sh: /home/rupert/mgar/pkg/ccache/trunk/ccache: not found

I get the slight feeling that all those answers here seduce you to give up
troubleshooting yourself ... I bet you could have figured this out too.

* test.sh is using $PWD (if set, otherwise falls back to `pwd`)
* "gmake -C <path to worksrc> test" doesn't alter the $PWD which is
  set by bash and still points to trunk/, so test.sh is using $PWD
  and thereby trunk/ which is wrong
* When you unset $PWD for the test phase, test.sh will fall back to `pwd`
  which determines the proper directory

$ svn diff
Index: Makefile
--- Makefile    (revision 10000)
+++ Makefile    (working copy)
@@ -22,4 +22,8 @@
+# Unset $PWD (which isn't changed on gmake -C) so that test.sh uses `pwd`
 include gar/category.mk


More information about the maintainers mailing list