Subject: Re: Fw: installing pkgsrc/databases/jdbc-postgresql74 fails
To: NetBSD netbsd-users <netbsd-users@NetBSD.org>
From: Mike Parson <mparson@bl.org>
List: netbsd-users
Date: 06/15/2005 10:08:22
On Wed, Jun 15, 2005 at 12:29:54PM +0200, Robert Cates wrote:
> Hi,
> 
> maybe I sent this to the wrong list (since I haven't gotten any
> replies, or is the list that inactive).(?)...  Can any of you in the
> users list help me out?

This is probably as good a list as any, just that no one had anything
to offer, I'll give it a shot.  Please note that I have NOT installed
this particular package on my system.

> Thanks!
> 
> ----- Original Message ----- 
> From: Robert Cates 
> To: NetBSD tech-pkg 
> Sent: Tuesday, June 14, 2005 2:54 PM
> Subject: installing pkgsrc/databases/jdbc-postgresql74 fails
>
>
> Hi,
>
> I just tried to build jdbc-postgresql74 but it failed.  Below is a
> clip of the end of the build process, but first I want to ask the
> questions:
>
> I have JDK (and JRE) 1.4.2 installed (also from pkgsrc), but the
> jdbc-postgresql74 package seems to require jdk-1.1.8 (which I really
> do not want installed, since I have jdk-1.4.2 installed).

The install does not look like it's requiring jdk-1.1.8, it's looking
for *any* jdk installed: 

	===> Required package jdk-[0-9]*: NOT found

double-check your jdk install:

# pkg_info | grep jdk

Looking in pkgsrc/lang, I see jdk, jdk-openjit, and sun-jdk1[1-5].

> 1) Would it simply be ok to change $PKG_JAVA_HOME to
> '/usr/pkg/java/sun-1.4' and if so, where do I change this value?
> Also, would I need to change the value of $PKG_JVM as well?

You probably need to change both variables to match which JDK you have
installed.  If you've got the 1.4.2, I'd guess it's the sun-jdk14 pkg,
so set that variable properly, then adjust PKG_JAVA_HOME to the top
level of its install.

> 2) Shouldn't the package be updated to accept any installed jdk from
> 1.1.8 and above?  I mean it seems to be specifically dependant on
> jdk-1.1.8.
> 
> 
> 
> 10200107 bytes retrieved in 00:42 (233.44 KB/s)
> => Checksum SHA1 OK for postgresql-7.4.6.tar.bz2.
> => Checksum RMD160 OK for postgresql-7.4.6.tar.bz2.
> ===> Extracting for jdbc-postgresql-7.4.6
> ==========================================================================
> The following variables will affect the build process of this package,
> jdbc-postgresql-7.4.6.  Their current value is shown below:
>  
>         * PKG_JAVA_HOME = /usr/pkg/java/jdk-1.1.8
>         * PKG_JVM = jdk
>  
> You may want to abort the process now with CTRL-C and change their value
> before continuing.  Be sure to run `/usr/bin/make clean' after
> the changes.
> ==========================================================================
> ===> Required package jdk-[0-9]*: NOT found
> ===> Verifying reinstall for ../../lang/jdk
> ===> jdk-1.1.8nb8 has an unacceptable license: jdk-license.
> ===>     To view the license, enter "/usr/bin/make show-license".
> ===>     To indicate acceptance, add this line to your /etc/mk.conf:
> ===>     ACCEPTABLE_LICENSES+=jdk-license
> *** Error code 1
>  
> Stop.
> make: stopped in /usr/pkgsrc/lang/jdk
> *** Error code 1
>  
> Stop.
> make: stopped in /usr/pkgsrc/lang/jdk
> *** Error code 1
>  
> Stop.
> make: stopped in /usr/pkgsrc/databases/jdbc-postgresql74
> *** Error code 1
>  
> Stop.
> make: stopped in /usr/pkgsrc/databases/jdbc-postgresql74
> -bash-2.05b#
> 
> 
> Thanks much for your help!
> Robert

-- 
Michael Parson
mparson@bl.org