-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0
-
None
-
beta
-
generic
-
generic
If a J2SDK workspace is shared for concurrent building of X86 and solaris,
and on X86 a race condition on the plugin build can occur:
If you
- use the same workspace for both X86 and Sparc builds, and
- build on both at the same time, and
- build release-images or plugin-all on sparc, and
- build noplugin-images or release-images[-only] on i386, THEN
you could run into a race condition in the 'jre-images' rule of
Release.gmk. It turns out that even if you did not build plugin,
the script may think you did because the Plugin builds into the
build tree, and Release.gmk tests for the existence of a generated
Plugin file to decide whether to build Plugin target 'all_packages'.
The offending code is:
@# Fix for 4264503
if [ -x $(TOPDIR)/ext/plugin/build/solaris/libjavaplugin_oji.so ] ; then $(MAKE) plugin-all_package RELEASE=$(RELEASE) FULL_VERSION=$(FULL_VERSION) ; fi
Instead, the plugin should be built separately from, but after the J2SDK
release-images target.
and on X86 a race condition on the plugin build can occur:
If you
- use the same workspace for both X86 and Sparc builds, and
- build on both at the same time, and
- build release-images or plugin-all on sparc, and
- build noplugin-images or release-images[-only] on i386, THEN
you could run into a race condition in the 'jre-images' rule of
Release.gmk. It turns out that even if you did not build plugin,
the script may think you did because the Plugin builds into the
build tree, and Release.gmk tests for the existence of a generated
Plugin file to decide whether to build Plugin target 'all_packages'.
The offending code is:
@# Fix for 4264503
if [ -x $(TOPDIR)/ext/plugin/build/solaris/libjavaplugin_oji.so ] ; then $(MAKE) plugin-all_package RELEASE=$(RELEASE) FULL_VERSION=$(FULL_VERSION) ; fi
Instead, the plugin should be built separately from, but after the J2SDK
release-images target.