Subject: Re: erlang package, Solaris
To: Hal Snyder <hal@vailsys.com>
From: Gavan Fantom <gavan@coolfactor.org>
List: tech-pkg
Date: 12/02/2003 11:55:21
On Mon, 1 Dec 2003, Hal Snyder wrote:

> I think there is a bug in pkgsrc/mk/java-vm.mk, because, despite
> setting
>
>    PKG_JVM_DEFAULT=sun-jdk13
>
>    in /etc/mk.conf, pkgsrc wants to build wonka. But, I could be
>    wrong. One work-around is to edit /usr/pkgsrc/mk/java-vm.mk thus:
>
> --- java-vm.mk.orig     2003-10-03 11:38:22.000000000 -0500
> +++ java-vm.mk  2003-12-01 15:30:01.849334000 -0600
> @@ -90,7 +90,7 @@
>         NetBSD-*-arm Linux-*-arm
>  .endif
>  _ONLY_FOR_PLATFORMS.sun-jdk13= \
> -       NetBSD-*-i386 Linux-*-i[3-6]86 Darwin-*-*
> +       NetBSD-*-i386 Linux-*-i[3-6]86 Darwin-*-* SunOS-*-*
>  _ONLY_FOR_PLATFORMS.sun-jdk14= \
>         NetBSD-1.5Z[A-Z]-i386 NetBSD-1.[6-9]*-i386 Linux-*-i[3-6]86
>  _ONLY_FOR_PLATFORMS.kaffe= \
>
> After this, bmake complains about no jre package, but that seems
> harmless (build does not abort).

I sent a mail to this list a little while ago about how to support native
Java VMs in pkgsrc.

http://mail-index.netbsd.org/tech-pkg/2003/09/22/0014.html

Does the patch there look like it should do what you want? (Note it's
against a slightly older version of java-vm.mk so it might not apply
cleanly, but the changes are still valid.)

-- 
Gillette - the best a man can forget