Date: Tue, 23 Mar 2004 03:24:36 -0500 (GMT-05:00) From: idavidmiller@earthlink.net To: openoffice@FreeBSD.org Subject: Broken Port for OpenOffice PORTVERSION=1.1.1.RC1 Message-ID: <7316558.1080030276461.JavaMail.root@grover.psp.pas.earthlink.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7316558.1080030276461.JavaMail.root>