-
Bug
-
Resolution: Fixed
-
P4
-
8u25
-
b37
-
x86
-
linux_redhat_6.0
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085125 | emb-9 | Erik Joelsson | P4 | Resolved | Fixed | team |
FULL PRODUCT VERSION :
ADDITIONAL OS VERSION INFORMATION :
Linux oc0675154111.ibm.com 2.6.32-431.30.1.el6.x86_64 #1 SMP Wed Jul 30 14:44:26 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
When building OJDK, the build of the demos target was consistently observed to fail when the users' environment defines CDPATH such it that doesn't contain ',' in the path list.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
export CDPATH=<some path:<some other path> # where none of the paths are '.'
sh ./configure
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The build was expected to succeed.
ACTUAL -
The build failed whilst attempting to build /demo/jfc/CodePointIM/_the.services with the error shown below.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
## Starting demos
Updating jdk/demo/jfc/CodePointIM/src.zip
Creating jdk/demo/jfc/CodePointIM/src.zip
/bin/sh: line 3: cd: _the.tmp: No such file or directory
gmake[2]: *** [/home/dpointo8/sandbox/jcl-bin/jdk/demo/jfc/CodePointIM/_the.services] Error 1
gmake[1]: *** [demos] Error 2
make: *** [demos-only] Error 2
make images failed, aborting...
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
A 4 character fix to CompileDemos.gmk is as follows...
diff -r 8041474fb84f makefiles/CompileDemos.gmk
--- a/makefiles/CompileDemos.gmk Tue Oct 21 19:32:51 2014 +0100
+++ b/makefiles/CompileDemos.gmk Wed Oct 22 11:08:11 2014 +0100
@@ -151,9 +151,9 @@
(cd $(JDK_OUTPUTDIR)/demo/jfc/CodePointIM && \
$(MKDIR) -p _the.tmp/META-INF/services && \
$(CP) $(JDK_TOPDIR)/src/share/demo/jfc/CodePointIM/java.awt.im.spi.InputMethodDescriptor _the.tmp/META-INF/services && \
- cd _the.tmp && \
+ cd ./_the.tmp && \
$(JAR) uf $(JDK_OUTPUTDIR)/demo/jfc/CodePointIM/CodePointIM.jar META-INF/services/java.awt.im.spi.InputMethodDescriptor && \
- cd META-INF/services && \
+ cd ./META-INF/services && \
$(JAR) uf $(JDK_OUTPUTDIR)/demo/jfc/CodePointIM/CodePointIM.jar java.awt.im.spi.InputMethodDescriptor)
$(RM) -r $(JDK_OUTPUTDIR)/demo/jfc/CodePointIM/_the.tmp
$(TOUCH) $@
ADDITIONAL OS VERSION INFORMATION :
Linux oc0675154111.ibm.com 2.6.32-431.30.1.el6.x86_64 #1 SMP Wed Jul 30 14:44:26 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
When building OJDK, the build of the demos target was consistently observed to fail when the users' environment defines CDPATH such it that doesn't contain ',' in the path list.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
export CDPATH=<some path:<some other path> # where none of the paths are '.'
sh ./configure
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The build was expected to succeed.
ACTUAL -
The build failed whilst attempting to build /demo/jfc/CodePointIM/_the.services with the error shown below.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
## Starting demos
Updating jdk/demo/jfc/CodePointIM/src.zip
Creating jdk/demo/jfc/CodePointIM/src.zip
/bin/sh: line 3: cd: _the.tmp: No such file or directory
gmake[2]: *** [/home/dpointo8/sandbox/jcl-bin/jdk/demo/jfc/CodePointIM/_the.services] Error 1
gmake[1]: *** [demos] Error 2
make: *** [demos-only] Error 2
make images failed, aborting...
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
A 4 character fix to CompileDemos.gmk is as follows...
diff -r 8041474fb84f makefiles/CompileDemos.gmk
--- a/makefiles/CompileDemos.gmk Tue Oct 21 19:32:51 2014 +0100
+++ b/makefiles/CompileDemos.gmk Wed Oct 22 11:08:11 2014 +0100
@@ -151,9 +151,9 @@
(cd $(JDK_OUTPUTDIR)/demo/jfc/CodePointIM && \
$(MKDIR) -p _the.tmp/META-INF/services && \
$(CP) $(JDK_TOPDIR)/src/share/demo/jfc/CodePointIM/java.awt.im.spi.InputMethodDescriptor _the.tmp/META-INF/services && \
- cd _the.tmp && \
+ cd ./_the.tmp && \
$(JAR) uf $(JDK_OUTPUTDIR)/demo/jfc/CodePointIM/CodePointIM.jar META-INF/services/java.awt.im.spi.InputMethodDescriptor && \
- cd META-INF/services && \
+ cd ./META-INF/services && \
$(JAR) uf $(JDK_OUTPUTDIR)/demo/jfc/CodePointIM/CodePointIM.jar java.awt.im.spi.InputMethodDescriptor)
$(RM) -r $(JDK_OUTPUTDIR)/demo/jfc/CodePointIM/_the.tmp
$(TOUCH) $@
- backported by
-
JDK-8085125 demos target fails if users CDPATH is incorrectly set
-
- Resolved
-