NetBSD Problem Report #32013
From www@netbsd.org Tue Nov 8 07:48:27 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id 88E8363B938; Tue, 8 Nov 2005 07:48:27 +0000 (UTC)
Message-Id: <20051108074827.88E8363B938@narn.netbsd.org>
Date: Tue, 8 Nov 2005 07:48:27 +0000 (UTC)
From: cyber@netbsd.org
Reply-To: cyber@netbsd.org
To: gnats-bugs@netbsd.org
Subject: Java Build/Detection broken on Darwin
X-Send-Pr-Version: www-1.0
>Number: 32013
>Category: pkg
>Synopsis: Java Build/Detection broken on Darwin
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: minskim
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 08 07:49:00 +0000 2005
>Closed-Date: Wed Sep 20 05:24:44 +0000 2006
>Last-Modified: Wed Sep 20 05:24:44 +0000 2006
>Originator: Erik Berls
>Release: OS X.4.3
>Organization:
>Environment:
Darwin jonestown.local 8.3.0 Darwin Kernel Version 8.3.0: Mon Oct 3 20:04:04 PDT 2005; root:xnu-792.6.22.obj~2/RELEASE_PPC Power Macintosh powerpc
>Description:
Java detection and handling is broken under Darwin.
The Makefiles for sun-jre14 and sun-jre15 do not contain code similar to sun-jre13. In addition, mk/java-vm.mk does not contain allowance for using later Java versions.
When trying to "build" sun-jre13 an attempt to run the patch code is run, despite NO_PATCH, NO_CONFIGURE, and NO_BUILD being set for Darwin. This fails as DISTFILES has been set to "" preventing anything from being extracted, thus causing directories to be missing.
NO_PATCH is listed as depricated in pkgtools/pkglint/files/deprecated.map, noting to merely remove it from Makefiles when encountered. NO_PATCH is used in 6 other packages, half of them in Makefile.common's.
>How-To-Repeat:
Build jakarta-tomcat5 or jakarta-tomcat55 under OS X.
>Fix:
An abstract detection mechanism for builtin java should be used.
Code could be employed to detect what versions are installed on a Darwin system.
e.g.:
if exists(/System/Library/Frameworks/JavaVM.framework/Versions/${_BUILTIN_JAVA_VERSION}/Home)
(This line pulled from danw@netbsd.orgs posting to tech-pkg on 2004/09/06.)
Some code could be used to unify the Makefile.common that exists in sun-jre1[345].
I'll try to come up with some detection code, but someone more familiar with the framework might better chime in with a good mechanism moving forward.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->darwin-pkg-people
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Wed, 09 Nov 2005 22:29:25 +0000
Responsible-Changed-Why:
Darwin pkgsrc PR.
Responsible-Changed-From-To: darwin-pkg-people->minskim
Responsible-Changed-By: minskim@netbsd.org
Responsible-Changed-When: Wed, 10 May 2006 07:17:48 +0000
Responsible-Changed-Why:
I will take this.
From: Min Sik Kim <minskim@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/32013 CVS commit: pkgsrc/mk
Date: Wed, 10 May 2006 07:25:03 +0000 (UTC)
Module Name: pkgsrc
Committed By: minskim
Date: Wed May 10 07:25:03 UTC 2006
Modified Files:
pkgsrc/mk: java-vm.mk
Log Message:
Allow to use sun-jdk15 on Darwin-8, and sun-jdk14 on Darwin-[678].
Also make sun-jdk15 the default java on Darwin-8. This addresses PR pkg/32013.
To generate a diff of this commit:
cvs rdiff -r1.45 -r1.46 pkgsrc/mk/java-vm.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: minskim@netbsd.org
State-Changed-When: Fri, 07 Jul 2006 04:45:19 +0000
State-Changed-Why:
Should be fixed by lang/sun-jdk1[3-5]/builtin.mk. Could you update your
pkgsrc tree and see if it works?
State-Changed-From-To: feedback->closed
State-Changed-By: minskim@netbsd.org
State-Changed-When: Wed, 20 Sep 2006 05:24:44 +0000
State-Changed-Why:
Feedback timeout.
>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.