United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7036525 Disable alternative source mechanism for OPENJDK builds
JDK-7036525 : Disable alternative source mechanism for OPENJDK builds

Details
Type:
Enhancement
Submit Date:
2011-04-14
Status:
Closed
Updated Date:
2011-07-29
Project Name:
JDK
Resolved Date:
2011-05-16
Component:
hotspot
OS:
generic
Sub-Component:
build
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs21
Fixed Versions:
hs21 (b12)

Related Reports
Backport:

Sub Tasks

Description
The alternative source (alt-src) mechanism (altsrc.make) was introduced to allow alternative versions of common hotspot source files to be used in place of the originals when doing a build, or to find additional source files. This works fine when when you want to build using the alt-src and the alt-src location exists; and it works fine if you don't want to build with the alt-src and the alt-src location does not exist. But it doesn't work if you don't want to build with the alt-src but the alt-src location does exist - in this case you have to remove or rename the alt-src location so that it is not found.

An OpenJDK build (OPENJDK==true) is by definition a build that does not use the alt-src location. So the proposal is that for OpenJDK builds the alt-src mechanism will always be disabled.

                                    

Comments
SUGGESTED FIX

In altsrc.make:
+ ifneq ($(OPENJDK),true)
!  HS_ALT_SRC_REL=src/closed
+ else
+  HS_ALT_SRC_REL=NO_SUCH_PATH
                                     
2011-04-14
EVALUATION

See description and suggested fix.
                                     
2011-04-14
WORK AROUND

When building, set the environment variable HS_ALT_SRC_REL to a path that does not exist e.g.:

HS_ALT_SRC_REL=NO_SUCH_PATH
                                     
2011-04-14
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/ededdaaf8ca5
                                     
2011-05-06
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/ededdaaf8ca5
                                     
2011-05-06
EVALUATION

This fix has no affect on Windows, which uses a different mechanism for setting the alternative source location.
                                     
2011-05-09



Hardware and Software, Engineered to Work Together