Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4339143

Release.gmk incorrectly building Plugin's all_package target

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • infrastructure
    • 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.

            dmcduffisunw Dale Mcduffie (Inactive)
            dmcduffisunw Dale Mcduffie (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: