Accepting request 132457 from home:jengelh:branches:devel:libraries:c_c++

- Update to new upstream release 3.0.0
* Implement Valgrind support, redzones, and quarantine.
* Add support for additional architectures: MIPS, SH4, Tilera
* Add nallocm(), which rounds a request size up to the nearest size
  class without actually allocating.
* Implement aligned_alloc()
* Add the "thread.tcache.enabled" and "opt.prof_final" mallctls.
* Update pprof (from gperftools 2.0).
* (For more, see the ChangeLog file in this RPM package.)

OBS-URL: https://build.opensuse.org/request/show/132457
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jemalloc?expand=0&rev=5
This commit is contained in:
Marcus Meissner 2012-09-04 08:28:27 +00:00 committed by Git OBS Bridge
parent adf230eb09
commit 607d021372
5 changed files with 27 additions and 80 deletions

View File

@ -1,66 +0,0 @@
From c6bdd0d8f3048babef7d418c837fcb8dc85245c2 Mon Sep 17 00:00:00 2001
From: Antony Dovgal <tony@daylessday.org>
Date: Thu, 13 Oct 2011 09:33:33 +0400
Subject: [PATCH] add autogenerated jemalloc.sh wrapper script
---
.gitignore | 1 +
Makefile.in | 2 +-
configure.ac | 2 +-
jemalloc.sh.in | 9 +++++++++
4 files changed, 12 insertions(+), 2 deletions(-)
create mode 100644 jemalloc.sh.in
diff --git a/.gitignore b/.gitignore
index 32b4c42..e764e33 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,4 @@
!test/*.c
!test/*.exp
/VERSION
+/jemalloc.sh
diff --git a/Makefile.in b/Makefile.in
index de7492f..6d6a06c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -42,7 +42,7 @@ TEST_LIBRARY_PATH :=
endif
# Lists of files.
-BINS := @srcroot@bin/pprof
+BINS := @srcroot@bin/pprof @srcroot@jemalloc.sh
CHDRS := @objroot@include/jemalloc/jemalloc@install_suffix@.h \
@objroot@include/jemalloc/jemalloc_defs@install_suffix@.h
CSRCS := @srcroot@src/jemalloc.c @srcroot@src/arena.c @srcroot@src/atomic.c \
diff --git a/configure.ac b/configure.ac
index b58aa52..b6f4262 100644
--- a/configure.ac
+++ b/configure.ac
@@ -881,7 +881,7 @@ AC_CONFIG_HEADERS([$cfghdrs_tup])
dnl ============================================================================
dnl Generate outputs.
-AC_CONFIG_FILES([$cfgoutputs_tup config.stamp])
+AC_CONFIG_FILES([$cfgoutputs_tup config.stamp jemalloc.sh])
AC_SUBST([cfgoutputs_in])
AC_SUBST([cfgoutputs_out])
AC_OUTPUT
diff --git a/jemalloc.sh.in b/jemalloc.sh.in
new file mode 100644
index 0000000..90f968c
--- /dev/null
+++ b/jemalloc.sh.in
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+
+LD_PRELOAD=${libdir}/libjemalloc.so.1
+export LD_PRELOAD
+exec "$@"
--
1.7.3.4

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bb042a809f6d7500b7f6bad318de43fbb7e050f11273954ce650d6f27f9cf781
size 224059

3
jemalloc-3.0.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cce16f18dd1dc7a087d37d33ae4ca507b5bcba64dabefa228ba801d1a78e4554
size 245192

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Sep 4 04:46:02 UTC 2012 - jengelh@inai.de
- Update to new upstream release 3.0.0
* Implement Valgrind support, redzones, and quarantine.
* Add support for additional architectures: MIPS, SH4, Tilera
* Add nallocm(), which rounds a request size up to the nearest size
class without actually allocating.
* Implement aligned_alloc()
* Add the "thread.tcache.enabled" and "opt.prof_final" mallctls.
* Update pprof (from gperftools 2.0).
* (For more, see the ChangeLog file in this RPM package.)
-------------------------------------------------------------------
Thu Oct 13 00:00:00 UTC 2011 - tony@daylessday.org
@ -6,4 +19,4 @@ Thu Oct 13 00:00:00 UTC 2011 - tony@daylessday.org
-------------------------------------------------------------------
Wed Oct 12 00:00:00 UTC 2011 - tony@daylessday.org
- Initial package for build.opensuse.org
- Initial package (version 2.2.3) for build.opensuse.org

View File

@ -16,17 +16,17 @@
#
Name: jemalloc
Version: 2.2.3
Version: 3.0.0
Release: 0
License: BSD
License: BSD-2-Clause
%define lname libjemalloc1
Summary: General-purpose scalable concurrent malloc implementation
Url: http://canonware.com/jemalloc
URL: http://canonware.com/jemalloc/
Group: Development/Libraries/C and C++
#Git-Clone: git://canonware.com/jemalloc
Source: jemalloc-%{version}.tar.bz2
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1: 0001-add-autogenerated-jemalloc.sh-wrapper-script.diff
BuildRequires: autoconf, automake, libtool
#BuildRequires: autoconf, automake, libtool
BuildRequires: docbook-xsl-stylesheets
BuildRequires: libxslt
Requires: %lname = %{version}
@ -63,18 +63,16 @@ Static libraries of jemalloc, general-purpose scalable concurrent
malloc(3) implementation.
%prep
%setup -qn jemalloc-%{version}
%patch1 -p1
%setup -q
%build
./autogen.sh;
export CFLAGS="%{optflags} -g2";
%configure
make %{?_smp_mflags};
%install
b=%{buildroot};
%makeinstall
make install DESTDIR="$b";
chmod -x "%{buildroot}/%{_libdir}"/*.a;
if [ "%_docdir" != "%{_datadir}/doc" ]; then
# stupid Makefile does not allow to set it
@ -105,3 +103,5 @@ fi;
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%changelog