NetBSD Problem Report #13512

Received: (qmail 5797 invoked from network); 19 Jul 2001 14:09:58 -0000
Message-Id: <200107191412.f6JECQv25674@dhcp39.verkstad.net>
Date: Thu, 19 Jul 2001 16:12:26 +0200 (CEST)
From: martti.kuparinen@iki.fi
Reply-To: martti.kuparinen@iki.fi
To: gnats-bugs@gnats.netbsd.org
Subject: optional java support to db3
X-Send-Pr-Version: 3.95

>Number:         13512
>Category:       pkg
>Synopsis:       optional java support to db3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 19 14:10:01 +0000 2001
>Closed-Date:    Fri Jul 20 11:03:42 +0000 2001
>Last-Modified:  Fri Jul 20 11:03:42 +0000 2001
>Originator:     Martti Kuparinen
>Release:        1.5W
>Organization:
>Environment:
System: NetBSD dhcp39 1.5W NetBSD 1.5W (KAYAK) #1: Tue Jul 17 10:49:51 CEST 2001 root@dhcp39:/usr/src/sys/arch/i386/compile/KAYAK i386
Architecture: i386
Machine: i386

>Description:

While trying to build OpenOffice I discovered that the current db3
package doesn't build Java support. I realize that this must be
an optional feature...

Try with "make WANT_DB3_JAVA_SUPPORT=1 install".

>How-To-Repeat:
>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/databases/db3/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	2001/03/26 19:31:55	1.6
+++ Makefile	2001/07/19 14:09:01
@@ -1,7 +1,7 @@
 # $NetBSD: Makefile,v 1.6 2001/03/26 19:31:55 skrll Exp $

-DISTNAME=	db-3.2.9
-PKGNAME=	db3-2.9
+DISTNAME=	db-${DB3_VERSION}
+PKGNAME=	db3-${DB3_VERSION}
 CATEGORIES=	databases
 MASTER_SITES=	http://www.sleepycat.com/update/3.2.9/

@@ -9,6 +9,8 @@
 HOMEPAGE=	http://www.sleepycat.com/
 COMMENT=	Sleepycat Software's Berkeley DB version 3

+DB3_VERSION=	3.2.9
+
 USE_LIBTOOL=		yes
 LTCONFIG_OVERRIDE=	${WRKDIR}/${DISTNAME}/dist/ltconfig
 GNU_CONFIGURE=		yes
@@ -17,6 +19,17 @@
 CONFIGURE_ARGS+=	--program-transform-name=s,db_,db3_,
 CONFIGURE_ARGS+=	--enable-cxx
 CONFIGURE_ARGS+=	--enable-shared
+
+.if defined(WANT_DB3_JAVA_SUPPORT)
+CONFIGURE_ARGS+=	--enable-java
+PLIST_SUBST+=		JAVA=
+DEPENDS+=		sun-jdk>=1.3.1:../../lang/sun-jdk13
+CFLAGS+=		-I${LOCALBASE}/java/include/linux
+PATH!=			echo "${PATH}:${LOCALBASE}/java/bin"
+.else
+CONFIGURE_ARGS+=	--disable-java
+PLIST_SUBST+=		JAVA="@comment "
+.endif

 WRKSRC=			${WRKDIR}/${DISTNAME}/build_unix

Index: pkg/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/databases/db3/pkg/PLIST,v
retrieving revision 1.3
diff -u -r1.3 PLIST
--- PLIST	2001/03/26 19:31:56	1.3
+++ PLIST	2001/07/19 14:09:02
@@ -11,6 +11,12 @@
 bin/db3_verify
 include/db3/db_cxx.h
 include/db3/db.h
+${JAVA}lib/db3.jar
+${JAVA}lib/libdb3_java-3.2.a
+${JAVA}lib/libdb3_java-3.2.la
+${JAVA}lib/libdb3_java-3.2.so
+${JAVA}lib/libdb3_java-3.2.so.2
+${JAVA}lib/libdb3_java-3.2.so.2.9
 lib/libdb3.a
 lib/libdb3.la
 lib/libdb3.so
>Release-Note:
>Audit-Trail:

From: "Johnny C. Lam" <lamj@stat.cmu.edu>
To: martti.kuparinen@iki.fi
Cc: gnats-bugs@gnats.netbsd.org, lamj@stat.cmu.edu
Subject: Re: pkg/13512: optional java support to db3 
Date: Thu, 19 Jul 2001 16:24:23 -0400

 martti.kuparinen@iki.fi writes:
 > 
 > While trying to build OpenOffice I discovered that the current db3
 > package doesn't build Java support. I realize that this must be
 > an optional feature...
 > 
 > Try with "make WANT_DB3_JAVA_SUPPORT=1 install".

 I took a look at the source code, and the java code is very well
 encapsulated from the rest of the db3 code.  I think I'd rather just
 do it with a separate package java-db3, rather than with an optional
 make variable setting.  We'd have to resolve the issue of whether we
 _must_ use sun-jdk, or if other Java compilers suffice.  This may lead
 to the creation of either USE_JDK or USE_JAVAC in bsd.pkg.mk.

      -- Johnny C. Lam <lamj@stat.cmu.edu>
         Department of Statistics, Carnegie Mellon University
         http://www.stat.cmu.edu/~lamj/

From: Martti Kuparinen <martti.kuparinen@iki.fi>
To: "Johnny C. Lam" <lamj@stat.cmu.edu>
Cc: <gnats-bugs@gnats.netbsd.org>
Subject: Re: pkg/13512: optional java support to db3 
Date: Fri, 20 Jul 2001 12:44:26 +0300 (EEST)

 > encapsulated from the rest of the db3 code.  I think I'd rather just
 > do it with a separate package java-db3, rather than with an optional
 > make variable setting.  We'd have to resolve the issue of whether we

 Ok, please close this PR and I'll submit a new PR for the java-db3
 package very soon...

 > _must_ use sun-jdk, or if other Java compilers suffice.  This may lead
 > to the creation of either USE_JDK or USE_JAVAC in bsd.pkg.mk.

 Sound good, but for starters I'll use this in the new package:

     DEPENDS+= sun-jdk>=1.3.1:../../lang/sun-jdk13

 If/when we have USE_JDK or USE_JAVAC we can update the Makefile.
 However, I'd like to see this Java functionality ASAP so I think
 you can accept this initial approach.

 Martti

State-Changed-From-To: open->closed 
State-Changed-By: wiz 
State-Changed-When: Fri Jul 20 04:03:25 PDT 2001 
State-Changed-Why:  
Replaced by 13518. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.