diff options
author | gson <gson@pkgsrc.org> | 2016-02-18 15:51:59 +0000 |
---|---|---|
committer | gson <gson@pkgsrc.org> | 2016-02-18 15:51:59 +0000 |
commit | c9a8fb0452b47ead3779f72e663666a3d12856a7 (patch) | |
tree | f8095abe8fec3d2679cb9b938bb18ba544a26e75 /devel/jemalloc | |
parent | 52e811962bc49aded7de15d1a43f0cacad7687b9 (diff) | |
download | pkgsrc-c9a8fb0452b47ead3779f72e663666a3d12856a7.tar.gz |
Import jemalloc-4.04, packaged for wip by Jonathan Buschmann
<jonthn+pkgsrc@pinacea.com>.
jemalloc is a general purpose malloc(3) implementation that emphasizes
fragmentation avoidance and scalable concurrency support.
jemalloc first came into use as the FreeBSD libc allocator in 2005.
In 2010 jemalloc development efforts broadened to include developer
support features such as heap profiling, Valgrind integration, and
extensive monitoring/tuning hooks. Ongoing development efforts trend
toward making jemalloc among the best allocators for a broad range of
demanding applications, and eliminating/mitigating weaknesses that
have practical repercussions for real world applications.
This is a newer version of jemalloc than the one in NetBSD's libc.
Diffstat (limited to 'devel/jemalloc')
-rw-r--r-- | devel/jemalloc/DESCR | 10 | ||||
-rw-r--r-- | devel/jemalloc/Makefile | 30 | ||||
-rw-r--r-- | devel/jemalloc/PLIST | 12 | ||||
-rw-r--r-- | devel/jemalloc/buildlink3.mk | 12 | ||||
-rw-r--r-- | devel/jemalloc/distinfo | 8 | ||||
-rw-r--r-- | devel/jemalloc/patches/patch-Makefile.in | 17 | ||||
-rw-r--r-- | devel/jemalloc/patches/patch-configure | 31 |
7 files changed, 120 insertions, 0 deletions
diff --git a/devel/jemalloc/DESCR b/devel/jemalloc/DESCR new file mode 100644 index 00000000000..78a537228c8 --- /dev/null +++ b/devel/jemalloc/DESCR @@ -0,0 +1,10 @@ +jemalloc is a general purpose malloc(3) implementation that emphasizes +fragmentation avoidance and scalable concurrency support. + +jemalloc first came into use as the FreeBSD libc allocator in 2005. +In 2010 jemalloc development efforts broadened to include developer +support features such as heap profiling, Valgrind integration, and +extensive monitoring/tuning hooks. Ongoing development efforts trend +toward making jemalloc among the best allocators for a broad range of +demanding applications, and eliminating/mitigating weaknesses that +have practical repercussions for real world applications. diff --git a/devel/jemalloc/Makefile b/devel/jemalloc/Makefile new file mode 100644 index 00000000000..1fca469f768 --- /dev/null +++ b/devel/jemalloc/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1 2016/02/18 15:51:59 gson Exp $ + +DISTNAME= jemalloc-4.0.4 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_GITHUB:=jemalloc/} +GITHUB_PROJECT= jemalloc +GITHUB_RELEASE= ${DISTNAME:S/jemalloc-//} +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= gson@NetBSD.org +HOMEPAGE= http://www.canonware.com/jemalloc/ +COMMENT= General purpose malloc(3) implementation +LICENSE= 2-clause-bsd + +BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt +BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl + +USE_TOOLS+= autoconf automake aclocal gmake +USE_LANGUAGES= c +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --enable-cc-silence +CONFIGURE_ARGS+= --enable-xmalloc +CONFIGURE_ARGS+= --with-xslroot=${PREFIX}/share/xsl/docbook/ + +USE_TOOLS+= perl:run +REPLACE_PERL= bin/jeprof.in + +BUILD_TARGET= all dist + +.include "../../mk/bsd.pkg.mk" diff --git a/devel/jemalloc/PLIST b/devel/jemalloc/PLIST new file mode 100644 index 00000000000..ddc504c4470 --- /dev/null +++ b/devel/jemalloc/PLIST @@ -0,0 +1,12 @@ +@comment $NetBSD: PLIST,v 1.1 2016/02/18 15:51:59 gson Exp $ +bin/jemalloc-config +bin/jemalloc.sh +bin/jeprof +include/jemalloc/jemalloc.h +lib/libjemalloc.a +lib/libjemalloc.so +lib/libjemalloc.so.2 +lib/libjemalloc_pic.a +lib/pkgconfig/jemalloc.pc +man/man3/jemalloc.3 +share/doc/jemalloc/jemalloc.html diff --git a/devel/jemalloc/buildlink3.mk b/devel/jemalloc/buildlink3.mk new file mode 100644 index 00000000000..7132719ddb2 --- /dev/null +++ b/devel/jemalloc/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1 2016/02/18 15:51:59 gson Exp $ + +BUILDLINK_TREE+= jemalloc + +.if !defined(JEMALLOC_BUILDLINK3_MK) +JEMALLOC_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.jemalloc+= jemalloc>=4.0.0 +BUILDLINK_PKGSRCDIR.jemalloc?= ../../devel/jemalloc +.endif # JEMALLOC_BUILDLINK3_MK + +BUILDLINK_TREE+= -jemalloc diff --git a/devel/jemalloc/distinfo b/devel/jemalloc/distinfo new file mode 100644 index 00000000000..d130894ac40 --- /dev/null +++ b/devel/jemalloc/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1 2016/02/18 15:51:59 gson Exp $ + +SHA1 (jemalloc-4.0.4.tar.bz2) = 665050e09ed2270899c2421248f21e6d52dfd9dd +RMD160 (jemalloc-4.0.4.tar.bz2) = 9d3572a41c5c5ed0ed15bd3cb82c1098767b11e7 +SHA512 (jemalloc-4.0.4.tar.bz2) = 93be0551a80d5f5dc3a1044ef3d5f06c5ce65f3c1fd753743ee64340b841fc2d7902178774ab71eaa633f68abad44109870eb84159679fdc8ce6d93db3a53112 +Size (jemalloc-4.0.4.tar.bz2) = 391483 bytes +SHA1 (patch-Makefile.in) = 44329c739b691f977bd672acc337a07e4fa7f4c5 +SHA1 (patch-configure) = ade66a0b8fee1ed3a8e74f9e0e29a30f88802e0a diff --git a/devel/jemalloc/patches/patch-Makefile.in b/devel/jemalloc/patches/patch-Makefile.in new file mode 100644 index 00000000000..8c8ac484d2d --- /dev/null +++ b/devel/jemalloc/patches/patch-Makefile.in @@ -0,0 +1,17 @@ +$NetBSD: patch-Makefile.in,v 1.1 2016/02/18 15:51:59 gson Exp $ + +Fix permissions of installed static libraries. + +--- Makefile.in.orig 2015-10-24 14:56:52.000000000 +0000 ++++ Makefile.in +@@ -304,8 +304,8 @@ endif + install_lib_static: $(STATIC_LIBS) + install -d $(LIBDIR) + @for l in $(STATIC_LIBS); do \ +- echo "install -m 755 $$l $(LIBDIR)"; \ +- install -m 755 $$l $(LIBDIR); \ ++ echo "install -m 644 $$l $(LIBDIR)"; \ ++ install -m 644 $$l $(LIBDIR); \ + done + + install_lib_pc: $(PC) diff --git a/devel/jemalloc/patches/patch-configure b/devel/jemalloc/patches/patch-configure new file mode 100644 index 00000000000..883f3138483 --- /dev/null +++ b/devel/jemalloc/patches/patch-configure @@ -0,0 +1,31 @@ +$NetBSD: patch-configure,v 1.1 2016/02/18 15:51:59 gson Exp $ + +Remove configure code using git to set version, could be problematic if inside +a git tree (i.e. pkgsrc-wip) + +--- configure.orig 2015-10-24 14:57:19.000000000 +0000 ++++ configure +@@ -6966,23 +6966,6 @@ fi + + + +-if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then +- rm -f "${objroot}VERSION" +- for pattern in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \ +- '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \ +- '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \ +- '[0-9][0-9].[0-9][0-9].[0-9]' \ +- '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do +- if test ! -e "${objroot}VERSION" ; then +- (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev/null +- if test $? -eq 0 ; then +- mv "${objroot}VERSION.tmp" "${objroot}VERSION" +- break +- fi +- fi +- done +-fi +-rm -f "${objroot}VERSION.tmp" + if test ! -e "${objroot}VERSION" ; then + if test ! -e "${srcroot}VERSION" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5 |