Subject: pkg/29643: sablevm-classpath (and probably vablevm-classpath-vm) build fails
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 03/09/2005 21:15:01
>Number:         29643
>Category:       pkg
>Synopsis:       sablevm-classpath fails because it has no JAVA_WRAPPER
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 09 21:15:01 +0000 2005
>Originator:     Antoine Reilles
>Release:        NetBSD 2.99.16
System: NetBSD 2.99.16 NetBSD 2.99.16 (MYKERNEL) #0: Sun Feb 20 22:10:25 CET 2005 i386
Architecture: i386
Machine: i386
I'm having a problem building lang/sablevm-classpath (and problably also
sablevm-classpath-gui), because they include mk/ without
defining JAVA_WRAPPERS. This make the build fails at the end, with an
error like: make: don't know how to build work/.ALTERNATIVES

I've patched locally mk/ to get rid of this problem (just
moving the endif part of a
.if !empty(JAVA_WRAPPERS)                                                                      
to the end of the file, since all this code is there to handle

	cd /usr/pkgsrc/lang/sablevm-classpath 
	mk/ can be changed to handle not defined JAVA_WRAPPERS
	A proposition of patch:

Index: mk/
RCS file: /cvsroot/pkgsrc/mk/,v
retrieving revision 1.4
diff -b -u -r1.4
--- mk/	30 Jan 2005 23:18:38 -0000	1.4
+++ mk/	9 Mar 2005 11:10:32 -0000
@@ -37,7 +37,6 @@
 .if !empty(JAVA_WRAPPERS)
@@ -78,6 +77,7 @@
 .undef w
 # Handle the ${PREFIX}/java shared directory automatically.