From grog@lemis.com  Wed Sep 18 18:59:26 2002
Return-Path: <grog@lemis.com>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 80B5537B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Sep 2002 18:59:26 -0700 (PDT)
Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BCC5743E6E
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Sep 2002 18:59:24 -0700 (PDT)
	(envelope-from grog@lemis.com)
Received: by wantadilla.lemis.com (Postfix, from userid 1004)
	id 8CFA581301; Thu, 19 Sep 2002 11:29:20 +0930 (CST)
Message-Id: <20020919015920.8CFA581301@wantadilla.lemis.com>
Date: Thu, 19 Sep 2002 11:29:20 +0930 (CST)
From: Greg 'groggy' Lehey <grog@lemis.com>
Reply-To: Greg 'groggy' Lehey <grog@lemis.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: mozilla does not install all necessary libraries
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         42941
>Category:       ports
>Synopsis:       mozilla does not install all necessary libraries
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 18 19:00:08 PDT 2002
>Closed-Date:    Mon Oct 21 20:57:16 PDT 2002
>Last-Modified:  Mon Oct 21 20:57:16 PDT 2002
>Originator:     Greg 'groggy' Lehey
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
LEMIS (SA) Pty Ltd
>Environment:
System: 
	FreeBSD nameless 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Tue Sep
	17 01:28:02 GMT 2002
	root@:/src/FreeBSD/5-CURRENT-WANTADILLA/src/sys/i386/compile/GENERIC
	i386

>Description:
	On starting mozilla, the following message appears:

	LoadPlugin: failed to initialize shared library /usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so [Cannot open "/usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so"]

	This is due to the lack of the Java Development kit.  The port
	installs the following symlink, but it doesn't check for the
	existence of the library:

	  /bin/ln -sf /usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so  /usr/X11R6/lib/mozilla-devel/plugins/libjavaplugin_oji.so

There is
	no indication of why this happens, or what to do about it.

>How-To-Repeat:
	Install mozilla or mozilla-devel on a clean system.
>Fix:

	The problem here seems to be that the Java library needs to be
	downloaded manually, due to the strange license requirements.
	I'd suggest:

	1.  Only create the symlink if the target file
            /usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so
            actually exists.
	2.  If it doesn't exist, print instructions for how to install
            it, and what the consequences will be if you don't.
>Release-Note:
>Audit-Trail:

From: Jeremy Lea <reg@FreeBSD.ORG>
To: "Greg 'groggy' Lehey" <grog@lemis.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: ports/42941: mozilla does not install all necessary libraries
Date: Thu, 19 Sep 2002 09:57:45 +0200

 Hi,
 
 On Thu, Sep 19, 2002 at 11:29:20AM +0930, Greg Lehey wrote:
 > >Fix:
 > 
 > 	The problem here seems to be that the Java library needs to be
 > 	downloaded manually, due to the strange license requirements.
 > 	I'd suggest:
 > 
 > 	1.  Only create the symlink if the target file
 >             /usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so
 >             actually exists.
 > 	2.  If it doesn't exist, print instructions for how to install
 >             it, and what the consequences will be if you don't.
 
 Why is this a problem?
 
 Mozilla works fine, and it means that Java plugins just start working if
 and when you install the JDK.  If the symlink is conditioned then you
 have to manually install it if you install the JDK after mozilla...
 
 The port/package should probably have a message though that tells you
 need to install the JDK if you want Java support.
 
 Regards,
   -Jeremy
 
 -- 
 FreeBSD - Because the best things in life are free...
                                            http://www.freebsd.org/

From: Greg 'groggy' Lehey <grog@FreeBSD.org>
To: Jeremy Lea <reg@FreeBSD.ORG>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: ports/42941: mozilla does not install all necessary libraries
Date: Thu, 19 Sep 2002 17:34:23 +0930

 On Thursday, 19 September 2002 at  9:57:45 +0200, Jeremy Lea wrote:
 > Hi,
 >
 > On Thu, Sep 19, 2002 at 11:29:20AM +0930, Greg Lehey wrote:
 >>> Fix:
 >>
 >> 	The problem here seems to be that the Java library needs to be
 >> 	downloaded manually, due to the strange license requirements.
 >> 	I'd suggest:
 >>
 >> 	1.  Only create the symlink if the target file
 >>             /usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so
 >>             actually exists.
 >> 	2.  If it doesn't exist, print instructions for how to install
 >>             it, and what the consequences will be if you don't.
 >
 > Why is this a problem?
 
 Because it takes a lot of time for anybody not intimately involved
 with the installation to find out what is going on.  For
 non-developers, it would probably mean that they would give up on it.
 
 > Mozilla works fine, and it means that Java plugins just start
 > working if and when you install the JDK.  If the symlink is
 > conditioned then you have to manually install it if you install the
 > JDK after mozilla...
 >
 > The port/package should probably have a message though that tells you
 > need to install the JDK if you want Java support.
 
 Well, yes, that's what I said.  Agreed, it might make sense to do the
 symlink in either case, and explain in the message what is going to
 happen.
 
 Greg
 --
 See complete headers for address and phone numbers
Responsible-Changed-From-To: freebsd-ports->gnome 
Responsible-Changed-By: ijliao 
Responsible-Changed-When: Fri Sep 20 00:31:23 PDT 2002 
Responsible-Changed-Why:  
over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42941 
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Mon Oct 21 20:56:23 PDT 2002 
State-Changed-Why:  
Greg, thanks for your comments.  I have added a pkg-message to the Mozilla 
ports explaining to users how to get Java working. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42941 
>Unformatted:
