United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8006933 : Need to use nawk on Solaris to avoid awk limitations

Details
Type:
Bug
Submit Date:
2013-01-25
Status:
Resolved
Updated Date:
2013-02-08
Project Name:
JDK
Resolved Date:
2013-02-01
Component:
other-libs
OS:
solaris
Sub-Component:
corba
CPU:
Priority:
P3
Resolution:
Fixed
Affected Versions:
Fixed Versions:

Related Reports

Sub Tasks

Description
awk on Solaris has limits on input line length that can easily be reached during the build depending on the paths that are being used - see JDK-8006903 for one example.

Specifically this needs to be fixed in  ./corba/make/common/shared/Defs-utils.gmk

Additionally when awk fails it does not cause make to fail at that point eg:

(cd /HUDSON/workspace/2-build-solaris-sparcv9@3/jdk8-profiles-staging/2956/build/solaris-sparcv9/corba/gensrc/tmp___com_sun_corba_se_PortableActivationIDL_activation.idl___; find . -type f | sed 's!\./!/HUDSON/workspace/2-build-solaris-sparcv9@3/jdk8-profiles-staging/2956/build/solaris-sparcv9/corba/gensrc/!g' | awk '{ print $1 ": /HUDSON/workspace/2-build-solaris-sparcv9@3/jdk8-profiles-staging/2956/corba/src/share/classes/com/sun/corba/se/PortableActivationIDL/activation.idl" }' > /HUDSON/workspace/2-build-solaris-sparcv9@3/jdk8-profiles-staging/2956/build/solaris-sparcv9/corba/gensrc/com/sun/corba/se/PortableActivationIDL/activation.idl.d)
awk: string too long near line 1
awk: syntax error near line 1
awk: illegal statement near line 1 

instead the idl processing continues but then the corba classes never get compiled and classes.jar is not created and you eventually get the import failure in the JDK part of the build - as per JDK-8006903

This needs to be fixed
                                    

Comments
URL:   http://hg.openjdk.java.net/jdk8/jdk8/rev/6e296219633d
User:  katleman
Date:  2013-02-07 01:08:36 +0000

                                     
2013-02-07
URL:   http://hg.openjdk.java.net/jdk8/build/rev/6e296219633d
User:  tbell
Date:  2013-01-31 23:45:02 +0000

                                     
2013-02-01
Section 11.13 "Limitations of Usual Tools" on this page:
http://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Limitations-of-Usual-Tools.html

Reads in part:

"Traditional Awk implementations derived from Unix version 7, such as Solaris /bin/awk, have many limitations and do not conform to Posix. Nowadays AC_PROG_AWK (see Particular Programs) finds you an Awk that doesn't have these problems, but if for some reason you prefer not to use AC_PROG_AWK you may need to address them."


                                     
2013-01-25
Fix out for review:

  http://cr.openjdk.java.net/~tbell/8006933/00/

Review thread is here:

  http://mail.openjdk.java.net/pipermail/build-dev/2013-January/007813.html
                                     
2013-01-25



Hardware and Software, Engineered to Work Together