Subject: automatic linux emulation via java-vm.mk
To: None <tech-pkg@netbsd.org>
From: Jan Schaumann <jschauma@netmeister.org>
List: tech-pkg
Date: 03/23/2003 19:17:12
Hi,
Suppose you have a package that requires either blackdown or sun-jdk.
In these cases, you can set PKG_JVM as desired and java-vm.mk will pull
in the appropriate jdk. However, if the jdk requires linux emulation
(as blackdown and sun do), I believe that java-vm.mk should also
automatically register these dependencies.
I propose this change to mk/java-vm.mk:
Index: java-vm.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/java-vm.mk,v
retrieving revision 1.12
diff -b -u -r1.12 java-vm.mk
--- java-vm.mk 2003/03/23 17:30:39 1.12
+++ java-vm.mk 2003/03/24 00:04:50
@@ -276,4 +276,9 @@
CONFIGURE_ENV+= JAVA_HOME=${PKG_JAVA_HOME}
SCRIPTS_ENV+= JAVA_HOME=${PKG_JAVA_HOME}
+# sun- and blackdown- require Linux emulation
+.if !empty(PKG_JVM:M*-jdk1*)
+. include "../emulators/suse_linux/Makefile.application"
+.endif
+
.endif # JAVA_VM_MK
Any objections?
-Jan
--
DON'T PANIC!