From owner-freebsd-java Sat Jun 2 15:12:11 2001 Delivered-To: freebsd-java@freebsd.org Received: from palle.girgensohn.se (c213.89.165.253.cm-upc.chello.se [213.89.165.253]) by hub.freebsd.org (Postfix) with ESMTP id C1A9137B424 for ; Sat, 2 Jun 2001 15:12:07 -0700 (PDT) (envelope-from girgen@partitur.se) Received: from partitur.se (localhost [127.0.0.1]) by palle.girgensohn.se (8.11.3/8.11.3) with ESMTP id f52MBrg87693; Sun, 3 Jun 2001 00:11:53 +0200 (CEST) (envelope-from girgen@partitur.se) Message-ID: <3B1964A8.3B397821@partitur.se> Date: Sun, 03 Jun 2001 00:11:52 +0200 From: Palle Girgensohn Organization: Partitur X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.3-STABLE i386) X-Accept-Language: sv, en MIME-Version: 1.0 To: Ernst de Haan Cc: Hervey Wilson , java@FreeBSD.ORG Subject: Re: JDK ports revisited References: <20010601104331.A1730@c187104187.telekabel.chello.nl> <020301c0eb82$9ce25b90$0101a8c0@chillipepper> <20010602184137.A11537@c187104187.telekabel.chello.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ernst de Haan wrote: > > Hervey, > > > This is the area where I'd like to see some improvements - assuming of > > course I haven't missed something during my experimentation. Essentially, it > > appears that many of the Java ports (for example, Tomcat) have dependencies > > on the native jdk1.1.8 port in their Makefile although these ports work fine > > on the other JDK versions. I prefer to use the Linux JDK 1.3 port for the > > moment and find myself having to doctor these Makefiles in order get things > > to install. Same here... > > Is there a way this can be solved with a more generic dependency or did I > > just miss something obvious ? > > This is where javavmwrapper comes in. Any Java port that needs a Java VM > version 1.1 or higher should depend on javavmwrapper, instead of on java/jdk > or so. If you give me a (partial) list of the ports that expose the problem > you mention, then I'll see what I can do. I can probably fix them within a few > days. I would like to see some centralized way to depend on java, and optionally add a least version. For the databases/postgresql7 port, which I maintain, I had to do some rather strange hackish things to determine which jdk that should be used (see /usr/ports/databases/postgres1l7/scripts/configure.postgresql, line 56ff). A USE_JAVA widget centrally defined in /usr/ports/Mk/bsd.ports.mk would be the ultimate solution, IMO. Also, I can't see that javavmwrapper whould really install *any* JDK if there is none installed already, and hence it is not enough for a port to depend on the javavmwrapper; no jdk would get installed on a clean system, and the build would fail... /Palle To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message