Erlang port? R10B-3 on OpenBSD 3.7
Geoff White
geoffw@REDACTED
Fri Mar 11 00:12:43 CET 2005
I noticed that the Erlan port is hopelessly out of date for OpenBSD.
I've been using erlang on OpenBSD and I have a working installation
of Erlang R10B-3 on OpenBSD 3.7 (beta) March 10, 2005.
I'd like to volunteer to turn this into a port that can go into the
ports tree.
geoffw
For starters, here are the notes on how to get the tar ball to compile
and install on 3.7 (beta)...
Erlang R10B-3 port to Open BSD 3.7
1. )/otp_src_R10B-3/lib/os_mon/c_src/memsup.c
is different from the release,
----------------------------------------------------------------
--- memsup.c.old Thu Mar 10 12:03:28 2005
+++ memsup.c Thu Mar 10 12:02:49 2005
@@ -95,7 +95,11 @@
#ifdef BSD4_4
#include <sys/types.h>
#include <sys/sysctl.h>
-#include <vm/vm_param.h>
+#ifdef __OpenBSD__
+#include <sys/vmmeter.h>
+#else
+#include <vm/vm_param.h>
+#endif
#ifdef __FreeBSD__
#include <sys/vmmeter.h>
#endif
-------------------------------------------------------------------
2. ) ./configure --disable-jinterface
No jvm under OpenBSD in native mode.
3. ) /otp_src_R10B-3/erts/etc/unix/format_man_pages
is BROKEN for OpenBSD, it tests for BSDness by searching for vmunix
THERE ISN'T a vmunix file on OpenBSD so this test will fail!
I have added a TARGET for OpenBSD.
-----------------------------------------------------------------------
--- format_man_pages.orig Thu Mar 10 13:57:56 2005
+++ format_man_pages Thu Mar 10 14:30:59 2005
@@ -29,6 +29,8 @@
TARGET=sunos5 ;;
Linux:*)
TARGET=linux ;;
+ OpenBSD:3.*)
+ TARGET=openbsd ;;
*)
TARGET="" ;;
esac
@@ -106,6 +108,8 @@
else
if [ -f "/vmunix" ]; then
CATMAN=/usr/etc/catman
+ elif [ "$TARGET" = "openbsd" ]; then
+ CATMAN=/usr/sbin/catman
else
CATMAN=/usr/bin/catman
fi
--------------------------------------------------------------------------------
More information about the erlang-bugs
mailing list