Subject: erlang package, Solaris
To: None <tech-pkg@NetBSD.org>
From: Hal Snyder <hal@vailsys.com>
List: tech-pkg
Date: 12/01/2003 19:00:18
I'm trying to build the package for Erlang R9C-0 in 
pkgsrc/lang/erlang, CVS of a couple weeks ago, on
i386 Solaris 8,which is
  MACHINE_PLATFORM=SunOS-5.8-i386

The Ericsson source kit has dependencies on

jdk     (version >= 1.2)
openssl (version >= 0.9.7)
tcl     (version >= 8.2)

The server in quesion has Sun's jdk (1.3.1_07) in /usr/java.

I have verified that the source kit builds correctly on this platform
outside pkgsrc, but would prefer integration with pkgsrc.


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).


There are other issues with this package, of course (including the
version of openssl). It may seem crazy to try this hard to fit pkgsrc
+ erlang + Solaris - but the utopian dream is unified package
management on all our Unix platforms using NetBSD pkgsrc. We are there
on many packages already.

Thanks.