Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6704165
Votes 0
Synopsis JDK_DEBUG_IMAGE_DIR used in jdk/make/common/Release.gmk but not defined
Category java:build
Reported Against
Release Fixed 7(b29)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs 4986734
Submit Date 17-MAY-2008
Description
  xxxxx@xxxxx   writes:

The only reference to JDK_DEBUG_IMAGE_DIR
in the jdk workspace is

./make/common/Release.gmk:1239:	$(RM) -r $(JDK_DEBUG_IMAGE_DIR)

This variable is defined nowhere.

As a result, "make images-clobber" runs the command

rm -f -r

This is Mostly Harmless, but what would happen if a user happened to
have defined an environment variable

JDK_DEBUG_IMAGE_DIR=/

so I consider this a P2 bug.

Just remove that line from Release.gmk.

For bonus points, write a script to find all never-defined MAKE variables
in all the JDK makefiles.

# HG changeset patch
# User martin
# Date 1211056134 25200
# Node ID 9149e388e6e353da275887a0e6b4ae5ef63b4689
# Parent  1483094a7c17de9c594d51e0f0785d24e3858392
[mq]: JDK_DEBUG_IMAGE_DIR.patch

diff --git a/make/common/Release.gmk b/make/common/Release.gmk
--- a/make/common/Release.gmk
+++ b/make/common/Release.gmk
@@ -1236,7 +1236,6 @@ ifeq ($(PLATFORM), windows)
 	$(RM) $(TEMPDIR)/rebase.input
 endif
 	$(RM) -r $(JDK_IMAGE_DIR)
-	$(RM) -r $(JDK_DEBUG_IMAGE_DIR)
 	$(RM) -r $(JRE_IMAGE_DIR)

 images images-clobber::
Posted Date : 2008-05-17 22:02:45.0
Work Around
N/A
Evaluation
fix available
Posted Date : 2008-06-12 23:10:03.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang