From owner-freebsd-java Mon Jan 27 13: 1:21 2003 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC59537B401 for ; Mon, 27 Jan 2003 13:01:18 -0800 (PST) Received: from mgr2.xmission.com (mgr2.xmission.com [198.60.22.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AAD743ED8 for ; Mon, 27 Jan 2003 13:01:17 -0800 (PST) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr2.xmission.com with spam-scanned (Exim 3.35 #1) id 18dGN6-0006M1-02 for java@freebsd.org; Mon, 27 Jan 2003 14:00:48 -0700 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr2.xmission.com with esmtp (Exim 3.35 #1) id 18dGKm-0005CZ-02; Mon, 27 Jan 2003 13:58:25 -0700 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id h0RKwFJ10523; Tue, 28 Jan 2003 07:28:15 +1030 (CST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Tue, 28 Jan 2003 07:28:14 +1030 From: Greg Lewis To: Christoph Kukulies Cc: java@FreeBSD.ORG, znerd@FreeBSD.ORG Subject: Re: expr: syntax error Message-ID: <20030128072814.A10505@misty.eyesbeyond.com> References: <200301262152.WAA27425@accms33.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200301262152.WAA27425@accms33.physik.rwth-aachen.de>; from kuku@physik.rwth-aachen.de on Sun, Jan 26, 2003 at 10:52:13PM +0100 X-Spam-Status: No, hits=-4.1 required=8.0 tests=IN_REP_TO,PATCH_UNIFIED_DIFF,QUOTED_EMAIL_TEXT,REFERENCES, SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MUTT,X_AUTH_WARNING version=2.43 X-Spam-Level: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Jan 26, 2003 at 10:52:13PM +0100, Christoph Kukulies wrote: > Under 5.0/R I'm presently getting: > > # cd /usr/local/linux-blackdown-jdk1.3.1/bin > # ./java -version > expr: syntax error > java version "1.3.1_06" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_06-b01) > Java HotSpot(TM) Client VM (build 1.3.1_06-b01, mixed mode) > > I didn't yet pinpoint it to the shell script line but is it a known error? Looks like a bug to me. Create a files directory in /usr/ports/java/linux-blackdown-jdk13 and save the attached patches in it and then rebuild the port. It should work a lot better then :). Ernst, do you mind if I commit these patches? -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-aa --- bin/.java_wrapper.orig Mon Jan 27 13:47:44 2003 +++ bin/.java_wrapper Mon Jan 27 13:48:36 2003 @@ -39,8 +39,8 @@ # Resolve symlinks. See 4152645. while [ -L "${PRG}" ]; do ls=`ls -ld "${PRG}"` - link=`expr "${ls}" : '.*-> \(.*\)$'` - if expr "${link}" : '/' > /dev/null; then + link=`/compat/linux/usr/bin/expr "${ls}" : '.*-> \(.*\)$'` + if /compat/linux/usr/bin/expr "${link}" : '/' > /dev/null; then PRG="${link}" else PRG="`dirname ${PRG}`/${link}" --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-ab --- jre/bin/.java_wrapper.orig Mon Jan 27 13:48:43 2003 +++ jre/bin/.java_wrapper Mon Jan 27 13:48:54 2003 @@ -39,8 +39,8 @@ # Resolve symlinks. See 4152645. while [ -L "${PRG}" ]; do ls=`ls -ld "${PRG}"` - link=`expr "${ls}" : '.*-> \(.*\)$'` - if expr "${link}" : '/' > /dev/null; then + link=`/compat/linux/usr/bin/expr "${ls}" : '.*-> \(.*\)$'` + if /compat/linux/usr/bin/expr "${link}" : '/' > /dev/null; then PRG="${link}" else PRG="`dirname ${PRG}`/${link}" --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-ac --- jre/lib/jvm.cfg.orig Mon Jan 27 13:52:19 2003 +++ jre/lib/jvm.cfg Mon Jan 27 13:52:29 2003 @@ -10,6 +10,6 @@ # List of JVMs that can be used as the first option to java, javac, etc. # Order is important -- first in this list is the default JVM. # +-classic -client -server --classic --1yeeQ81UyVL57Vl7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message