Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2011 11:58:51 +0200
From:      Achilleas Mantzios <achill@matrix.gatewaynet.com>
To:        freebsd-java@freebsd.org
Subject:   Re: java/155967: javavm wrapper insists on diablo
Message-ID:  <201103281258.51959.achill@matrix.gatewaynet.com>
In-Reply-To: <201103270903.p2R9330d071452@red.freebsd.org>
References:  <201103270903.p2R9330d071452@red.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
=CE=A3=CF=84=CE=B9=CF=82 Sunday 27 March 2011 12:03:03 =CE=BF/=CE=B7 Achill=
eas Mantzios =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5:
>=20
> >Number:         155967
> >Category:       java
> >Synopsis:       javavm wrapper insists on diablo
> >Confidential:   no
> >Severity:       serious
> >Priority:       medium
> >Responsible:    freebsd-java
> >State:          open
> >Quarter:       =20
> >Keywords:      =20
> >Date-Required:
> >Class:          update
> >Submitter-Id:   current-users
> >Arrival-Date:   Sun Mar 27 09:10:10 UTC 2011
> >Closed-Date:
> >Last-Modified:
> >Originator:     Achilleas Mantzios
> >Release:        8.2-RELEASE
> >Organization:
> home
> >Environment:
> FreeBSD panix.internal.net 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Wed Mar 23=
 13:27:15 EET 2011     doroot@panix.internal.net:/usr/obj/usr/src/sys/GENER=
IC  i386
> >Description:
> Javavm wrapper relies on /usr/ports/Mk/bsd.java.mk to decide on the java =
vm to use. It seems that /usr/ports/Mk/bsd.java.mk prefers diablo over the =
openjdk port.
> >How-To-Repeat:
> Just try to install openjdk. diablo 1.6 will be installed as a build depe=
ndency, openjdk will be installed after, and the system will default to dia=
blo, whereas the user's intention was to use openjdk.
> >Fix:
> apply the following patch to /usr/ports/Mk/bsd.java.mk
>=20
> *** bsd.java.mk.orig	2011-03-27 08:33:34.000000000 +0300
> --- bsd.java.mk	2011-03-27 08:42:33.000000000 +0300
> ***************
> *** 212,217 ****
> --- 212,219 ----
>   # Enforce preferred Java ports according to OS
>   .		if (${OSVERSION} >=3D 600000 && ${OSVERSION} < 800000)
>   _JAVA_PREFERRED_PORTS+=3D	JAVA_PORT_NATIVE_FREEBSD_JDK_1_6
> + .		else if (${OSVERSION} >=3D 800000)

Actually that should be "elif" instead of "else if".

> + _JAVA_PREFERRED_PORTS+=3D	JAVA_PORT_NATIVE_OPENJDK_JDK_1_6
>   .		else
>   _JAVA_PREFERRED_PORTS+=3D	JAVA_PORT_NATIVE_BSDJAVA_JDK_1_6
>   .		endif
>=20
> >Release-Note:
> >Audit-Trail:
> >Unformatted:
> _______________________________________________
> freebsd-java@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"
>=20



=2D-=20
Achilleas Mantzios



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103281258.51959.achill>