[128794] trunk/dports/devel

khindenburg at macports.org khindenburg at macports.org
Thu Nov 27 07:42:23 PST 2014


Revision: 128794
          https://trac.macports.org/changeset/128794
Author:   khindenburg at macports.org
Date:     2014-11-27 07:42:23 -0800 (Thu, 27 Nov 2014)
Log Message:
-----------
jemalloc: new port #45092; maintainer

Added Paths:
-----------
    trunk/dports/devel/jemalloc/
    trunk/dports/devel/jemalloc/Portfile
    trunk/dports/devel/jemalloc/files/
    trunk/dports/devel/jemalloc/files/patch-memalign.diff

Added: trunk/dports/devel/jemalloc/Portfile
===================================================================
--- trunk/dports/devel/jemalloc/Portfile	                        (rev 0)
+++ trunk/dports/devel/jemalloc/Portfile	2014-11-27 15:42:23 UTC (rev 128794)
@@ -0,0 +1,40 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                jemalloc
+categories          devel
+version             3.6.0
+license             BSD
+platforms           darwin
+maintainers         gmail.com:yoanlin93 openmaintainer
+
+description         a general-purpose scalable concurrent malloc(3) implementation
+long_description \
+    jemalloc is a general-purpose scalable concurrent malloc(3) implementation.
+
+homepage            http://www.canonware.com/jemalloc/
+master_sites        http://www.canonware.com/download/jemalloc/
+
+use_bzip2           yes
+
+checksums           rmd160  4c65b40af64cfafc02cdc5c01439a277bc32ccc7 \
+                    sha256  e16c2159dd3c81ca2dc3b5c9ef0d43e1f2f45b04548f42db12e7c12d7bdf84fe
+
+depends_build       port:libxslt
+
+configure.args-append --disable-debug --with-jemalloc-prefix=
+
+patchfiles          patch-memalign.diff
+
+post-destroot {
+    file rename ${destroot}${prefix}/bin/pprof ${destroot}${prefix}/bin/${name}-prof
+}
+
+test.run            yes
+test.target         check
+
+livecheck.type      regex
+livecheck.url       http://www.canonware.com/jemalloc/download.html
+livecheck.regex     {/jemalloc-([0-9]+\.[0-9.]+)\.tar\.}


Property changes on: trunk/dports/devel/jemalloc/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/jemalloc/files/patch-memalign.diff
===================================================================
--- trunk/dports/devel/jemalloc/files/patch-memalign.diff	                        (rev 0)
+++ trunk/dports/devel/jemalloc/files/patch-memalign.diff	2014-11-27 15:42:23 UTC (rev 128794)
@@ -0,0 +1,18 @@
+--- src/jemalloc.c
++++ src/jemalloc.c
+@@ -1312,7 +1312,6 @@ je_valloc(size_t size)
+ #define        is_malloc_(a) malloc_is_ ## a
+ #define        is_malloc(a) is_malloc_(a)
+ 
+-#if ((is_malloc(je_malloc) == 1) && defined(__GLIBC__) && !defined(__UCLIBC__))
+ /*
+  * glibc provides the RTLD_DEEPBIND flag for dlopen which can make it possible
+  * to inconsistently reference libc's malloc(3)-compatible functions
+@@ -1325,6 +1324,7 @@ je_valloc(size_t size)
+ JEMALLOC_EXPORT void (* __free_hook)(void *ptr) = je_free;
+ JEMALLOC_EXPORT void *(* __malloc_hook)(size_t size) = je_malloc;
+ JEMALLOC_EXPORT void *(* __realloc_hook)(void *ptr, size_t size) = je_realloc;
++#ifdef JEMALLOC_OVERRIDE_MEMALIGN
+ JEMALLOC_EXPORT void *(* __memalign_hook)(size_t alignment, size_t size) =
+     je_memalign;
+ #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141127/8f4663b0/attachment.html>


More information about the macports-changes mailing list