NetBSD Problem Report #44294
From www@NetBSD.org Wed Dec 29 16:25:40 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id D33BA63B89F
for <gnats-bugs@gnats.NetBSD.org>; Wed, 29 Dec 2010 16:25:39 +0000 (UTC)
Message-Id: <20101229162539.B8B2C63B89A@www.NetBSD.org>
Date: Wed, 29 Dec 2010 16:25:39 +0000 (UTC)
From: ftigeot@wolfpond.org
Reply-To: ftigeot@wolfpond.org
To: gnats-bugs@NetBSD.org
Subject: java-vm.mk needs updating after recent jdk work
X-Send-Pr-Version: www-1.0
>Number: 44294
>Category: pkg
>Synopsis: java-vm.mk needs updating after recent jdk work
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Dec 29 16:30:00 +0000 2010
>Closed-Date: Fri Dec 31 06:28:21 +0000 2010
>Last-Modified: Fri Dec 31 06:28:21 +0000 2010
>Originator: Francois Tigeot
>Release: NetBSD 4.0.1+ and DragonFly 2.6+
>Organization:
>Environment:
DragonFly sekishi.zefyris.com 2.9-DEVELOPMENT DragonFly v2.9.1.349.gdbe026-DEVELOPMENT #0: Wed Dec 29 12:39:46 CET 2010 ftigeot@sekishi.zefyris.com:/usr/obj/usr/src/sys/BADAXE64 x86_64
>Description:
With the recent work on wip/jdk15 and wip/jdk16, these packages can now
be installed on more platforms:
- NetBSD/i386, NetBSD/amd64 and DragonFly systems for wip/jdk15
- NetBSD/i386 and NetBSD/amd64 for jdk16
Howewer, on machines having one of these packages installed, it is not possible to install packages depending on Java:
www/apache-tomcat6# bmake
WARNING: [license.mk] Every package should define a LICENSE.
ERROR: This package has set PKG_FAIL_REASON:
ERROR: no acceptable JVM found
*** Error code 1
Stop.
>How-To-Repeat:
Try to install a package depending on Java on a machine having only wip/jdk15 and/or wip/jdk16.
www/apache-tomcat6 is a good example.
>Fix:
Loosen the platform checks in java-vm.mk :
_ONLY_FOR_PLATFORMS.jdk15= \
- DragonFly-*-i386 \
- NetBSD-[2-9].*-i386
+ DragonFly-*-* \
+ NetBSD-[2-9].*-i386 NetBSD-[4-9]*-x86_64
This is only for wip/jdk15. The same thing needs to be done for wip/jdk16.
>Release-Note:
>Audit-Trail:
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/44294 CVS commit: pkgsrc/mk
Date: Wed, 29 Dec 2010 22:29:32 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Wed Dec 29 22:29:32 UTC 2010
Modified Files:
pkgsrc/mk: java-vm.mk
Log Message:
Update patterns for jdk15, from Francois Tigeot in PR 44294.
To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 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: wiz@NetBSD.org
State-Changed-When: Wed, 29 Dec 2010 22:34:58 +0000
State-Changed-Why:
Both jdk15 and jdk16 should work now, please confirm!
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/44294 CVS commit: pkgsrc/mk
Date: Wed, 29 Dec 2010 22:34:37 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Wed Dec 29 22:34:37 UTC 2010
Modified Files:
pkgsrc/mk: java-vm.mk
Log Message:
Add support for wip/jdk16 (for PR 44294).
To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 pkgsrc/mk/java-vm.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Francois Tigeot <ftigeot@wolfpond.org>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, pkgsrc-bugs@NetBSD.org, gnats-admin@NetBSD.org,
wiz@NetBSD.org, ftigeot@wolfpond.org
Subject: Re: pkg/44294 (java-vm.mk needs updating after recent jdk work)
Date: Thu, 30 Dec 2010 10:38:19 +0100
On Wed, Dec 29, 2010 at 10:35:00PM +0000, wiz@NetBSD.org wrote:
> Synopsis: java-vm.mk needs updating after recent jdk work
>
> State-Changed-From-To: open->feedback
> State-Changed-By: wiz@NetBSD.org
> State-Changed-When: Wed, 29 Dec 2010 22:34:58 +0000
> State-Changed-Why:
> Both jdk15 and jdk16 should work now, please confirm!
jdk15 checks are confirmed good on DragonFly.
I have trouble with NetBSD: all java packages try to install openjdk7
even if there's already a jdk on the system.
--
Francois Tigeot
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/44294 (java-vm.mk needs updating after recent jdk work)
Date: Thu, 30 Dec 2010 11:19:30 +0100
On Thu, Dec 30, 2010 at 10:38:19AM +0100, Francois Tigeot wrote:
> jdk15 checks are confirmed good on DragonFly.
Thanks.
> I have trouble with NetBSD: all java packages try to install openjdk7
> even if there's already a jdk on the system.
Set PKG_JVM_DEFAULT to jdk16 and it should use that instead. If not,
that's a bug :)
Thomas
From: Francois Tigeot <ftigeot@wolfpond.org>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org,
ftigeot@wolfpond.org
Subject: Re: pkg/44294 (java-vm.mk needs updating after recent jdk work)
Date: Thu, 30 Dec 2010 11:52:04 +0100
On Thu, Dec 30, 2010 at 10:20:04AM +0000, Thomas Klausner wrote:
> The following reply was made to PR pkg/44294; it has been noted by GNATS.
>
> From: Thomas Klausner <wiz@NetBSD.org>
> To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
> Cc:
> Subject: Re: pkg/44294 (java-vm.mk needs updating after recent jdk work)
> Date: Thu, 30 Dec 2010 11:19:30 +0100
>
> On Thu, Dec 30, 2010 at 10:38:19AM +0100, Francois Tigeot wrote:
> > jdk15 checks are confirmed good on DragonFly.
>
> Thanks.
Well, thank you for commiting the fixes so fast :)
> > I have trouble with NetBSD: all java packages try to install openjdk7
> > even if there's already a jdk on the system.
>
> Set PKG_JVM_DEFAULT to jdk16 and it should use that instead. If not,
> that's a bug :)
I'ts much better now: jdk15 and jdk16 checks are good on NetBSD/amd64.
We can assume it's also okay on i386.
--
Francois Tigeot
State-Changed-From-To: feedback->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Fri, 31 Dec 2010 06:28:21 +0000
State-Changed-Why:
Confirmed fixed, thanks!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.