Date: Tue, 28 Jan 2003 07:28:14 +1030 From: Greg Lewis <glewis@eyesbeyond.com> To: Christoph Kukulies <kuku@physik.rwth-aachen.de> Cc: java@FreeBSD.ORG, znerd@FreeBSD.ORG Subject: Re: expr: syntax error Message-ID: <20030128072814.A10505@misty.eyesbeyond.com> 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 %2B0100 References: <200301262152.WAA27425@accms33.physik.rwth-aachen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030128072814.A10505>