Broken Port for OpenOffice PORTVERSION=1.1.1.RC1

idavidmiller at earthlink.net idavidmiller at earthlink.net
Tue Mar 23 00:24:37 PST 2004


The  OpenOffice 1.1.1  PORTVERSION=	1.1.1.RC1

/usr/ports/openoffice-1.1/work/oo_1.1.1_src/configure 

file is not working properly. It is failing at the point in the code below where
it checks on java:

"JAVA not found. You need at least jdk-1.3"

The flag "with_jdk_home" seems to be the culprit here. I suspect it is not 
getting set from the port Makefile from the statements:

JDKDIR?=	${LOCALBASE}/jdk1.4.2
JAVAVM=		${JDKDIR}/bin/java


I tried a crude workaround in the configure file by setting:

with_jdk_home=/usr/local/jdk1.4.2
export $with_jdk_home

near the top of the configure script file and it got past the error and is now 
building away it seems.

Hope this is of some value to you.

Regards,

David Miller

configure file code:

   if test "$JAVA"; then

            if test `$JAVA -version 2>&1 | grep -c "Kaffe"` -gt 0; then

                KAFFE_VER=`$JAVA -version 2>&1 | $EGREP "  Version:" | $SED -r "s/.*  Version: ([0-9\.]*).*/\1/"`
        if test -z "$KAFFE_VER"; then
          { { echo "$as_me:$LINENO: error: looks like Kaffe but version detection failed" >&5
echo "$as_me: error: looks like Kaffe but version detection failed" >&2;}
   { (exit 1); exit 1; }; }
        fi
        _kaffe_ver=`echo "$KAFFE_VER" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
        if test "$_kaffe_ver" -lt 10100; then
           { { echo "$as_me:$LINENO: error: Kaffe is too old ($KAFFE_VER - $_kaffe_ver), you need at least 1.1.0" >&5
echo "$as_me: error: Kaffe is too old ($KAFFE_VER - $_kaffe_ver), you need at least 1.1.0" >&2;}
   { (exit 1); exit 1; }; }
        fi
        JDK=kaffe


        echo "$as_me:$LINENO: result: checked (Kaffe $KAFFE_VER)" >&5
echo "${ECHO_T}checked (Kaffe $KAFFE_VER)" >&6
        { echo "$as_me:$LINENO: WARNING: EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile" >&5
echo "$as_me: WARNING: EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile" >&2;}
        echo "EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile" >>warn
      else

                _jdk=`$JAVAC -J-version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[-A-Za-z]*//`
        _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`

        if test "$_jdk_ver" -lt 10300; then
             { { echo "$as_me:$LINENO: error: JDK is too old, you need at least 1.3" >&5
echo "$as_me: error: JDK is too old, you need at least 1.3" >&2;}
   { (exit 1); exit 1; }; }
        fi
        echo "$as_me:$LINENO: result: checked (JDK $_jdk)" >&5
echo "${ECHO_T}checked (JDK $_jdk)" >&6
      fi
      JAVA_HOME=`echo $JAVAC | $SED -n "s,//*bin//*javac,,p"`
   else
      { { echo "$as_me:$LINENO: error: JAVA not found. You need at least jdk-1.3" >&5
echo "$as_me: error: JAVA not found. You need at least jdk-1.3" >&2;}
   { (exit 1); exit 1; }; }
   fi


More information about the freebsd-openoffice mailing list