pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/erlang adapt mremap call so erlang builds on NetB...
details: https://anonhg.NetBSD.org/pkgsrc/rev/bb26f32eef93
branches: trunk
changeset: 538574:bb26f32eef93
user: tnn <tnn%pkgsrc.org@localhost>
date: Wed Feb 13 11:09:01 2008 +0000
description:
adapt mremap call so erlang builds on NetBSD-current (fixes PR 37131)
patch from Daniel Horecki on #pkgsrc
diffstat:
lang/erlang/distinfo | 3 ++-
lang/erlang/patches/patch-ac | 23 +++++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletions(-)
diffs (42 lines):
diff -r d9076f881719 -r bb26f32eef93 lang/erlang/distinfo
--- a/lang/erlang/distinfo Wed Feb 13 10:20:56 2008 +0000
+++ b/lang/erlang/distinfo Wed Feb 13 11:09:01 2008 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.14 2008/01/04 14:10:05 ghen Exp $
+$NetBSD: distinfo,v 1.15 2008/02/13 11:09:01 tnn Exp $
SHA1 (erlang/otp_src_R12B-0.tar.gz) = e2c6e18d22e34a799fc6bc25fa2d25eedb30bccc
RMD160 (erlang/otp_src_R12B-0.tar.gz) = cb07ea37f2b56e1ea2fc07c9063b647df7635b2b
Size (erlang/otp_src_R12B-0.tar.gz) = 41074760 bytes
SHA1 (patch-aa) = 795bca5194b365ddaff8b10d46246423d44f7bda
SHA1 (patch-ab) = 1bf4d079f0138d97b0a86a8d75e87fce14586c49
+SHA1 (patch-ac) = 64941033e2409d22508f4d723f7501ba99664a11
SHA1 (patch-ae) = fba8ebcba12fae810f1c554b678f0b434e364833
SHA1 (patch-af) = 182b8c1555fc424bbb4fdc44bbb1ac22ba5641f0
diff -r d9076f881719 -r bb26f32eef93 lang/erlang/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/erlang/patches/patch-ac Wed Feb 13 11:09:01 2008 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-ac,v 1.5 2008/02/13 11:09:01 tnn Exp $
+
+--- erts/emulator/sys/common/erl_mseg.c.orig 2007-11-26 19:59:24.000000000 +0100
++++ erts/emulator/sys/common/erl_mseg.c
+@@ -369,10 +369,18 @@ mseg_recreate(void *old_seg, Uint old_si
+ #if defined(ERTS_MSEG_FAKE_SEGMENTS)
+ new_seg = erts_sys_realloc(ERTS_ALC_N_INVALID, NULL, old_seg, new_size);
+ #elif HAVE_MREMAP
++#if defined(__NetBSD__)
++ new_seg = (void *) mremap((void *) old_seg,
++ (size_t) old_size,
++ NULL,
++ (size_t) new_size,
++ 0);
++#else
+ new_seg = (void *) mremap((void *) old_seg,
+ (size_t) old_size,
+ (size_t) new_size,
+ MREMAP_MAYMOVE);
++#endif
+ if (new_seg == (void *) MAP_FAILED)
+ new_seg = NULL;
+ #else
Home |
Main Index |
Thread Index |
Old Index