From nsayer@kfu.com  Tue Sep 16 12:55:52 2003
Return-Path: <nsayer@kfu.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E8C0816A4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Sep 2003 12:55:52 -0700 (PDT)
Received: from quack.kfu.com (quack.kfu.com [64.168.71.209])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1A5CD43FD7
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Sep 2003 12:55:52 -0700 (PDT)
	(envelope-from nsayer@kfu.com)
Received: from medusa.kfu.com (medusa.kfu.com [IPv6:2002:40a8:47d1:0:290:27ff:fede:c1e1])
	by quack.kfu.com (8.12.8p1/8.12.8) with ESMTP id h8GJtU54032765
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Sep 2003 12:55:31 -0700 (PDT)
	(envelope-from nsayer@kfu.com)
Received: from medusa.kfu.com (localhost [IPv6:::1])
	by medusa.kfu.com (8.12.8p1/8.12.8) with ESMTP id h8GJtO5q018407
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Sep 2003 12:55:24 -0700 (PDT)
	(envelope-from nsayer@medusa.kfu.com)
Received: (from nsayer@localhost)
	by medusa.kfu.com (8.12.8p1/8.12.8/Submit) id h8GJtOXx018406;
	Tue, 16 Sep 2003 12:55:24 -0700 (PDT)
	(envelope-from nsayer)
Message-Id: <200309161955.h8GJtOXx018406@medusa.kfu.com>
Date: Tue, 16 Sep 2003 12:55:24 -0700 (PDT)
From: Nick Sayer <nsayer@kfu.com>
Reply-To: Nick Sayer <nsayer@kfu.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: jce-aba port should install to $JAVA_HOME/jre/lib/ext
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         56928
>Category:       ports
>Synopsis:       jce-aba port should install to $JAVA_HOME/jre/lib/ext
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-java
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 16 13:00:32 PDT 2003
>Closed-Date:    Sat Feb 27 06:21:18 UTC 2010
>Last-Modified:  Sat Feb 27 06:21:18 UTC 2010
>Originator:     Nick Sayer
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
Just me
>Environment:
System: FreeBSD medusa.kfu.com 4.8-RELEASE FreeBSD 4.8-RELEASE #56: Wed Apr 2 08:52:36 PST 2003 nsayer@medusa.kfu.com:/usr/obj/usr/src/sys/MEDUSA i386


>Description:

Java extensions should be installed in ${JAVA_HOME}/jre/lib/ext so that
the JVM can automatically detect and use them. Installing to
${PREFIX}/share/classes does no good.

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:

From: Edwin Groothuis <edwin@freebsd.org>
To: greg@greg.rim.or.jp
Cc: freebsd-gnats-submit@FreeBSD.org, nsayer@kfu.com
Subject: ports/56928 - jce-aba port should install to $JAVA_HOME/jre/lib/ext
Date: Mon, 29 Sep 2003 21:41:09 +1000

 Dear maintainer,
 
 Can you give your opinion about this PR:
 	http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/56928
 
 Edwin
 
 -- 
 Edwin Groothuis
 edwin@freebsd.org
 http://www.mavetju.org

From: Greg Lewis <glewis@eyesbeyond.com>
To: Edwin Groothuis <edwin@freebsd.org>
Cc: freebsd-ports-bugs@freebsd.org, freebsd-gnats-submit@freebsd.org,
	greg@greg.rim.or.jp
Subject: Re: ports/56928 - jce-aba port should install to $JAVA_HOME/jre/lib/ext
Date: Mon, 29 Sep 2003 12:56:22 -0600

 On Mon, Sep 29, 2003 at 04:50:22AM -0700, Edwin Groothuis wrote:
 >  Dear maintainer,
 >  
 >  Can you give your opinion about this PR:
 >  	http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/56928
 
 I'm not the maintainer, but I'll give my opinion anyway :).
 
 ${JAVAJARDIR} (which is where the port currently installs the JAR file)
 is the official, blessed bsd.java.mk place for JARs.  Installing in
 ${JAVA_HOME}/jre/lib/ext is wrong for a few reasons:
 
 1. It only works for a single JDK/JRE.  Given we have around a dozen of
    these now, this is bad.
 2. This scheme doesn't handle different versions of the same package.
    The JVM will grab the first JAR it finds with the classes in it,
    whether these are the right version or not.
 3. (Minor) The location suggested only accounts for JDKs, not JREs.
 
 This has been discussed multiple times on the freebsd-java mailing list
 and concluded to be the wrong way to do things each time.
 
 What would be helpful, would be for the port to output a message regarding
 how to add the installed JAR to one's class path.  That would help newbie
 users of our ports Jave infrastructure.  This could possibly be done in
 bsd.java.mk.
 
 -- 
 Greg Lewis                          Email   : glewis@eyesbeyond.com
 Eyes Beyond                         Web     : http://www.eyesbeyond.com
 Information Technology              FreeBSD : glewis@FreeBSD.org
 
State-Changed-From-To: open->suspended 
State-Changed-By: linimon 
State-Changed-When: Sun Dec 28 17:55:54 PST 2003 
State-Changed-Why:  
Suspended awaiting a patch from someone to implement Greg Lewis' 
suggestion.  (My own opinion is that if you keep seeing this FAQ, 
then this suggestion really ought to be implemented.) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56928 
Responsible-Changed-From-To: freebsd-ports-bugs->java 
Responsible-Changed-By: znerd 
Responsible-Changed-When: Tue Jan 13 15:27:42 PST 2004 
Responsible-Changed-Why:  
freebsd-java should handle this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56928 
Responsible-Changed-From-To: java->frebsd-java 
Responsible-Changed-By: simon 
Responsible-Changed-When: Mon Apr 12 12:06:00 PDT 2004 
Responsible-Changed-Why:  
java -> frebsd-java to avoid duplicate GNATS mail. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56928 
Responsible-Changed-From-To: frebsd-java->freebsd-java 
Responsible-Changed-By: simon 
Responsible-Changed-When: Mon Apr 12 12:07:10 PDT 2004 
Responsible-Changed-Why:  
Ok, frebsd-java is not the same as freebsd-java.. fix :). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56928 
State-Changed-From-To: suspended->feedback 
State-Changed-By: hq 
State-Changed-When: Fri Feb 18 23:21:26 GMT 2005 
State-Changed-Why:  
IMHO, we should decide whether we implement something here or just close the PR. 

I would really like to hear opinions from the community. 

And here is my own proposal: add a new macro to install jar files (probably 
INSTALL_JAR) that would handle everything, from the installation of the JAR file 
in ${JAVAJARDIR}, to the output of a message to explain where the JAR file is 
and how to add it to the classpath -- using classpath(1) for example. 

In the Makefile: 

> do-install: 
> 	@${INSTALL_JAR} ${WRKSRC}/myapp.jar 
> 	@${INSTALL_JAR} ${WRKSRC}/myapp-core.jar 
> 	@${INSTALL_JAR} ${WRKSRC}/myapp-ext.jar 

Then, while installing the port: 

$ make install 
> [...] 
>  >> Installing JAR file as /usr/local/share/java/classes/myapp.jar... [ DONE ] 
>  >> Installing JAR file as /usr/local/share/java/classes/myapp-core.jar... [ DONE ] 
>  >> Installing JAR file as /usr/local/share/java/classes/myapp-ext.jar... [ DONE ] 
> [...] 
> The port has installed several JAR files in /usr/local/share/java/classes 
>  
> To add these JAR files to your classpath, install java/javavmwrapper and use 
> classpath(1). 

I don't know if this is really worth the trouble of implementing it, 
documenting it, and upgrading Java ports, though... 

Herve 


http://www.freebsd.org/cgi/query-pr.cgi?pr=56928 
State-Changed-From-To: feedback->suspended 
State-Changed-By: linimon 
State-Changed-When: Sat Mar 1 20:13:34 UTC 2008 
State-Changed-Why:  
It does not sound like this is being actively worked on. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56928 
State-Changed-From-To: suspended->closed 
State-Changed-By: glewis 
State-Changed-When: Sat Feb 27 06:19:37 UTC 2010 
State-Changed-Why:  
I see no reason to keep this PR lingering.  We've been using JAVAJARDIR for 
5+ years now as the place where ports install JARs on FreeBSD.  The reasons 
for deciding to do so then still hold now and I don't believe there is any 
chance we'd ever switch to the installation policy advocated in this PR for 
those very same reasons. 


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