Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jan 2001 01:07:29 +0100
From:      Ernst de Haan <ernst@jollem.com>
To:        FreeBSD Java mailing list <freebsd-java@freebsd.org>
Cc:        Bradford Castalia <Castalia@azstarnet.com>
Subject:   [Castalia@azstarnet.com: Sun JDK-1.3 .java_wrapper patch]
Message-ID:  <20010102010729.A3400@c187104187.telekabel.chello.nl>

next in thread | raw e-mail | index | archive | help

--u3/rZRmxL6MmkK24
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

This message may be of interest to the freebsd-java ppl too :)

--
Ernst

--u3/rZRmxL6MmkK24
Content-Type: message/rfc822
Content-Disposition: inline

Received: from localhost (localhost.jollem.com [127.0.0.1])
	by heinz.jollem.com (8.11.1/8.11.1) with ESMTP id f01MuDx03262
	for <ernst@localhost>; Mon, 1 Jan 2001 23:56:14 +0100 (CET)
	(envelope-from Castalia@azstarnet.com)
Delivered-To: jollem-com-ernst@jollem.com
Received: from catbert.jollem.com [10.0.0.1]
	by localhost with POP3 (fetchmail-5.6.1)
	for ernst@localhost (single-drop); Mon, 01 Jan 2001 23:56:14 +0100 (CET)
Received: (qmail 29537 invoked from network); 5 Jan 1999 09:30:59 -0000
Received: from cepheus.azstarnet.com (169.197.56.195)
  by c104187.upc-c.chello.nl with SMTP; 5 Jan 1999 09:30:59 -0000
Received: from azstarnet.com (dhcp440.mc01.dsl.azstarnet.com [169.197.9.184])
	by cepheus.azstarnet.com (8.9.3/8.9.3) with ESMTP id PAA09497;
	Mon, 1 Jan 2001 15:56:33 -0700 (MST)
X-Sent-via: StarNet http://www.azstarnet.com/
Sender: castalia@cepheus.azstarnet.com
Message-ID: <3A510BBA.9F39B648@azstarnet.com>
Date: Mon, 01 Jan 2001 15:59:06 -0700
From: Bradford Castalia <Castalia@azstarnet.com>
Organization: idaeim
X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.1.1-RELEASE i386)
X-Accept-Language: en
MIME-Version: 1.0
To: freebsd-questions@FreeBSD.ORG
CC: ernst@jollem.com
Subject: Sun JDK-1.3 .java_wrapper patch
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Just F.Y.I.:

Ernst de Haan submitted (18 July, 2000) a patch to the Sun JDK-1.3 .java_wrapper
script file that changes /usr/bin/expr to /usr/compat/linux/usr/bin/expr. I have
found that /bin/expr will work just fine if the '/' in the regex of the second use
of expr is escaped. Thus

*** .java_wrapper.orig  Mon Sep 18 18:05:19 2000
--- .java_wrapper       Sat Dec 30 18:14:46 2000
***************
*** 31,38 ****
  # Resolve symlinks. See 4152645.
  while [ -L "$PRG" ]; do
      ls=`/bin/ls -ld "$PRG"`
!     link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'`
!     if /usr/bin/expr "$link" : '/' > /dev/null; then
        PRG="$link"
      else
        PRG="`/usr/bin/dirname $PRG`/$link"
--- 31,38 ----
  # Resolve symlinks. See 4152645.
  while [ -L "$PRG" ]; do
      ls=`/bin/ls -ld "$PRG"`
!     link=`/bin/expr "$ls" : '.*-> \(.*\)$'`
!     if /bin/expr "$link" : '\/' > /dev/null; then
        PRG="$link"
      else
        PRG="`/usr/bin/dirname $PRG`/$link"

-- 

Bradford Castalia                       Castalia@azstarnet.com
Systems Analyst                         http://azstarnet.com/~castalia
idaeim                                  520-624-6629

"Build an image in your mind, fit yourself into it."
    The Log of Cyradis, Seeress of Kell.


--u3/rZRmxL6MmkK24--


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?20010102010729.A3400>