From owner-freebsd-openoffice@FreeBSD.ORG Tue Mar 23 00:24:37 2004 Return-Path: Delivered-To: freebsd-openoffice@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7045216A4CE for ; Tue, 23 Mar 2004 00:24:37 -0800 (PST) Received: from flamingo.mail.pas.earthlink.net (flamingo.mail.pas.earthlink.net [207.217.120.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5192943D2D for ; Tue, 23 Mar 2004 00:24:37 -0800 (PST) (envelope-from idavidmiller@earthlink.net) Received: from grover.psp.pas.earthlink.net ([207.217.78.249]) by flamingo.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1B5hDA-00017L-00 for openoffice@FreeBSD.org; Tue, 23 Mar 2004 00:24:36 -0800 Message-ID: <7316558.1080030276461.JavaMail.root@grover.psp.pas.earthlink.net> Date: Tue, 23 Mar 2004 03:24:36 -0500 (GMT-05:00) From: idavidmiller@earthlink.net To: openoffice@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Earthlink Zoo Mail 1.0 Subject: Broken Port for OpenOffice PORTVERSION=1.1.1.RC1 X-BeenThere: freebsd-openoffice@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: idavidmiller@earthlink.net List-Id: Porting OpenOffice to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 08:24:37 -0000 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