Subject: PKG_JVM inheritance
To: None <tech-pkg@netbsd.org>
From: Jan Schaumann <jschauma@netmeister.org>
List: tech-pkg
Date: 03/17/2003 15:25:35
Hi,

Anybody see any problems with this:

Index: bsd.pkg.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.pkg.mk,v
retrieving revision 1.1151
diff -b -u -r1.1151 bsd.pkg.mk
--- bsd.pkg.mk  2003/03/14 19:37:49     1.1151
+++ bsd.pkg.mk  2003/03/17 20:17:36
@@ -704,6 +704,12 @@
 SCRIPTS_ENV+=          CLASSPATH=${CLASSPATH}
 .endif
 
+# If a package requires a certain JVM, use that JVM for all
dependencies
+# as well to avoid pulling in an additional, possibly unwanted JVM
+.if defined(PKG_JVM)
+MAKEFLAGS+=            PKG_JVM=${PKG_JVM}
+.endif
+
 # Popular master sites
 MASTER_SITE_XCONTRIB+= \
        ftp://uiarchive.uiuc.edu/pub/ftp/ftp.x.org/contrib/ \


I think this would make sense, but maybe I overlook something?

-Jan

-- 
"`Oh dear,' says God, `I hadn't thought of  that,'  and  promptly
vanished in a puff of logic.