[87931] trunk/dports/lang/pure
ryandesign at macports.org
ryandesign at macports.org
Mon Dec 12 20:20:34 PST 2011
Revision: 87931
http://trac.macports.org/changeset/87931
Author: ryandesign at macports.org
Date: 2011-12-12 20:20:33 -0800 (Mon, 12 Dec 2011)
Log Message:
-----------
pure: fix memory leak using upstream patch
Modified Paths:
--------------
trunk/dports/lang/pure/Portfile
Added Paths:
-----------
trunk/dports/lang/pure/files/patch-runtime.cc.diff
Modified: trunk/dports/lang/pure/Portfile
===================================================================
--- trunk/dports/lang/pure/Portfile 2011-12-13 02:58:00 UTC (rev 87930)
+++ trunk/dports/lang/pure/Portfile 2011-12-13 04:20:33 UTC (rev 87931)
@@ -6,7 +6,6 @@
name pure
# Keep the versions of pure and pure-docs in sync.
version 0.49
-revision 1
categories lang
platforms darwin
maintainers ryandesign
@@ -36,6 +35,8 @@
configure.env PATH=${prefix}/libexec/llvm-3.0/bin:$env(PATH)
if {${name} == ${subport}} {
+ revision 2
+
depends_lib port:gmp \
port:libiconv \
port:libtool \
@@ -48,7 +49,8 @@
# llvm-3.0 is not universal
universal_variant no
- patchfiles patch-interpreter.diff
+ patchfiles patch-interpreter.diff \
+ patch-runtime.cc.diff
configure.args --without-elisp
@@ -86,6 +88,8 @@
}
subport pure-mode.el {
+ revision 1
+
categories-append editors
license GPL-3+
supported_archs noarch
Added: trunk/dports/lang/pure/files/patch-runtime.cc.diff
===================================================================
--- trunk/dports/lang/pure/files/patch-runtime.cc.diff (rev 0)
+++ trunk/dports/lang/pure/files/patch-runtime.cc.diff 2011-12-13 04:20:33 UTC (rev 87931)
@@ -0,0 +1,14 @@
+http://code.google.com/p/pure-lang/source/detail?r=50583721fd69d6a64e17617b752ab1f439ffe741
+--- runtime.cc.orig 2011-11-15 12:13:42.000000000 -0600
++++ runtime.cc 2011-12-12 22:09:35.000000000 -0600
+@@ -5711,9 +5711,8 @@
+ #endif
+ // check whether the result is again a thunk, then we have to evaluate
+ // that recursively
+- if (is_thunk(ret))
+- pure_force(pure_new_internal(ret));
+ pure_new_internal(ret);
++ if (is_thunk(ret)) pure_force(ret);
+ // memoize the result
+ assert(x!=ret);
+ if (x->data.clos->ep)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111212/53f5df99/attachment.html>
More information about the macports-changes
mailing list