Subject: Re: erlang package, Solaris
To: None <tech-pkg@NetBSD.org>
From: Hal Snyder <hal@vailsys.com>
List: tech-pkg
Date: 12/02/2003 13:42:37
Gavan Fantom <gavan@coolfactor.org> writes:
> 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.)
Thanks. That patch looks much more thorough than my hack. Seems to
work, although I applied the patch by hand because of web interface
changes to whitespace (rendered text) or inserted entities (html
source).
Next problem I'm looking at is that after bmake configure,
work/otp_src_R9C-0/make/i386-pc-solaris2.8/
is truncated to
work/otp_src_R9C-0/make/i386-pc-solaris2/