NetBSD Problem Report #29643
From tonio@arcelot.loria.fr Wed Mar 9 21:14:52 2005
Return-Path: <tonio@arcelot.loria.fr>
Received: from arcelot.loria.fr (arcelot.loria.fr [152.81.9.88])
by narn.netbsd.org (Postfix) with ESMTP id 18D7D63B104
for <gnats-bugs@gnats.NetBSD.org>; Wed, 9 Mar 2005 21:14:52 +0000 (UTC)
Message-Id: <200503092112.j29LCfYt009949@arcelot.loria.fr>
Date: Wed, 9 Mar 2005 22:12:41 +0100 (CET)
From: reilles@loria.fr
Reply-To: reilles@loria.fr
To: gnats-bugs@netbsd.org
Subject: sablevm-classpath (and probably vablevm-classpath-vm) build fails
X-Send-Pr-Version: 3.95
>Number: 29643
>Category: pkg
>Synopsis: sablevm-classpath fails because it has no JAVA_WRAPPER
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: jmmv
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Mar 09 21:15:01 +0000 2005
>Closed-Date: Sat Mar 19 16:47:21 +0000 2005
>Last-Modified: Sat Mar 19 16:51:01 +0000 2005
>Originator: Antoine Reilles
>Release: NetBSD 2.99.16
>Organization:
>Environment:
System: NetBSD arcelot.loria.fr 2.99.16 NetBSD 2.99.16 (MYKERNEL) #0: Sun Feb 20 22:10:25 CET 2005 root@arcelot.loria.fr:/usr/obj/sys/arch/i386/compile/MYKERNEL i386
Architecture: i386
Machine: i386
>Description:
I'm having a problem building lang/sablevm-classpath (and problably also
sablevm-classpath-gui), because they include mk/java-env.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/java-env.mk to get rid of this problem (just
moving the endif part of a
.if !empty(JAVA_WRAPPERS)
.endif
to the end of the file, since all this code is there to handle
JAVA_WRAPPERS.
>How-To-Repeat:
cd /usr/pkgsrc/lang/sablevm-classpath
make
>Fix:
mk/java-env.mk can be changed to handle not defined JAVA_WRAPPERS
A proposition of patch:
Index: mk/java-env.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/java-env.mk,v
retrieving revision 1.4
diff -b -u -r1.4 java-env.mk
--- mk/java-env.mk 30 Jan 2005 23:18:38 -0000 1.4
+++ mk/java-env.mk 9 Mar 2005 11:10:32 -0000
@@ -37,7 +37,6 @@
.if !empty(JAVA_WRAPPERS)
INSTALLATION_DIRS+= bin
-.endif
ALTERNATIVES_SRC= ${WRKDIR}/.ALTERNATIVES
${WRKDIR}/.ALTERNATIVES:
@@ -78,6 +77,7 @@
.endfor
.undef w
+.endif
# Handle the ${PREFIX}/java shared directory automatically.
USE_PKGINSTALL= YES
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->jmmv
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Sat, 19 Mar 2005 03:10:08 +0000
Responsible-Changed-Why:
Probably broken when sablevm-classpath got converted to use java-env.mk.
State-Changed-From-To: open->closed
State-Changed-By: jmmv@netbsd.org
State-Changed-When: Sat, 19 Mar 2005 16:47:21 +0000
State-Changed-Why:
I've applied your patch with some cosmetic changes. Thanks!
From: "Julio M. Merino Vidal" <jmmv@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/29643 CVS commit: pkgsrc/mk
Date: Sat, 19 Mar 2005 16:46:45 +0000 (UTC)
Module Name: pkgsrc
Committed By: jmmv
Date: Sat Mar 19 16:46:45 UTC 2005
Modified Files:
pkgsrc/mk: java-env.mk
Log Message:
Let this file be included even if JAVA_WRAPPERS is empty; this was possible
before, but after the introduction of alternatives, a regression appeared.
This is useful for packages that install files inside ${PREFIX}/java so
that the directory is automatically removed when empty.
Problem exposed by sablevm-classpath as described in PR pkg/29643 by
Antoine Reilles.
To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 pkgsrc/mk/java-env.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(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.