From owner-freebsd-java@FreeBSD.ORG Fri Feb 13 10:48:34 2004 Return-Path: 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 1D78B16A4CE for ; Fri, 13 Feb 2004 10:48:34 -0800 (PST) Received: from mgr2.xmission.com (mgr2.xmission.com [198.60.22.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0105E43D1F for ; Fri, 13 Feb 2004 10:48:34 -0800 (PST) (envelope-from glewis@eyesbeyond.com) Received: from [198.60.22.206] (helo=mgr6.xmission.com) by mgr2.xmission.com with esmtp (Exim 3.35 #1) id 1AriMb-00013K-02; Fri, 13 Feb 2004 11:48:33 -0700 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr6.xmission.com with esmtp (Exim 4.30) id 1AriMX-0000vb-SH; Fri, 13 Feb 2004 11:48:30 -0700 Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) i1DImLN2000632; Fri, 13 Feb 2004 11:48:27 -0700 (MST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.12.10/8.12.10/Submit) id i1DImJvm000631; Fri, 13 Feb 2004 11:48:19 -0700 (MST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Fri, 13 Feb 2004 11:48:19 -0700 From: Greg Lewis To: Markus Svensson Message-ID: <20040213184819.GA438@misty.eyesbeyond.com> References: <200402131836.17766.markus.svensson2@spray.se> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <200402131836.17766.markus.svensson2@spray.se> User-Agent: Mutt/1.4.2i Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mgr6.xmission.com X-Spam-Level: X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-SA-Exim-Mail-From: glewis@eyesbeyond.com X-SA-Exim-Version: 3.1 (built Mon Jan 26 13:00:24 MST 2004) X-SA-Exim-Scanned: Yes cc: freebsd-java@FreeBSD.org Subject: Re: Netbeans 3.6Beta runide.sh fails on FreeBSD 5.2R X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2004 18:48:34 -0000 On Fri, Feb 13, 2004 at 06:36:17PM +0100, Markus Svensson wrote: > I'm a member of the Netbeans 3.6 Community Acceptance Program (fancy word for > bug hunter, I guess). I'm experiencing some issues with the runide.sh > launcher script, which I hoped would be resolved by the Netbeans developers. > But it appears that it won't be fixed, since fixing the script breaks it from > MacOS X and Linux users. Anyone interested, please check out the discussion > at http://www.netbeans.org/issues/show_bug.cgi?id=39830 and perhaps somebody > can explain to me what why the JDK's on different platforms don't support the > same parameters? I read the bug, and it doesn't look like it has anything to do with the JDKs using different parameters. It looks like it has everything to do with different syntaxes for the expr utility. Here is the issue (from expr(1)): Unless FreeBSD 4.x compatibility is enabled, this version of expr adheres to the POSIX Utility Syntax Guidelines, which require that a leading argument beginning with a minus sign be considered an option to the program. The standard -- syntax may be used to prevent this interpretation. e.g. > expr -J-Xms24m : '-J\(.*\)' expr: illegal option -- J usage: expr [-e] expression However, note the first part of the quote from the man page! So, a possibly solution is for runide.sh to set the EXPR_COMPAT environment variable. Then things will work, e.g.: > env EXPR_COMPAT=1 expr -J-Xms24m : '-J\(.*\)' -Xms24m So, I would suggest adding these two lines to the script: EXPR_COMPAT=1 export EXPR_COMPAT Then it will (hopefully) work on FreeBSD. I will note strongly that its Linux and OSX which are broken in this respect though. FreeBSD is POSIX compliant, they are not. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org