Posted by wmunsil
on August 20, 2009 at 9:48 AM PDT
Please refer to http://forums.java.net/jive/message.jspa?messageID=287132 .
This patch to defs.mk (rev 18478) and rules.mk (rev 18407), both in [phoneme] / components / cdc / trunk / build / share, seems to fix the issue described there.
It relies on $(CVM_BUILDDIRS) being used only to make directories and remove directories. Since directories are made with "mkdir -p", the classes directory need not be included there; it can be specified at the time of the removal.
I don't think the formatting of the patch will survive posting, but you should be able to get the gist of it.
--- unpatched/defs.mk 2009-08-20 10:11:51.421875000 -0600
+++ patched/defs.mk 2009-08-20 10:24:35.125000000 -0600
@@ -1426,7 +1426,6 @@
- $(CVM_DERIVEDROOT)/classes \
--- unpatched/rules.mk 2009-08-20 10:12:11.625000000 -0600
+++ patched/rules.mk 2009-08-20 10:25:02.046875000 -0600
@@ -1031,7 +1031,7 @@
rm -rf $(CVM_BUILDTIME_CLASSESZIP) \
rm -rf $(CVM_LIBDIR)
- rm -rf $(CVM_BUILDDIRS) $(CVM_BINDIR)/$(CVM)
+ rm -rf $(CVM_BUILDDIRS) $(CVM_DERIVEDROOT)/classes $(CVM_BINDIR)/$(CVM)
rm -rf $(CVM_JCC_CLASSPATH)
rm -rf $(CVM_DERIVEDROOT)
rm -rf $(CVM_PROPS_BUILD) $(CVM_POLICY_BUILD)