Accepting request 87662 from home:jengelh:bl-new
jemalloc in better shape OBS-URL: https://build.opensuse.org/request/show/87662 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jemalloc?expand=0&rev=1
This commit is contained in:
commit
d41126f19e
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
66
0001-add-autogenerated-jemalloc.sh-wrapper-script.diff
Normal file
66
0001-add-autogenerated-jemalloc.sh-wrapper-script.diff
Normal file
@ -0,0 +1,66 @@
|
||||
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
|
||||
|
3
jemalloc-2.2.3.tar.bz2
Normal file
3
jemalloc-2.2.3.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bb042a809f6d7500b7f6bad318de43fbb7e050f11273954ce650d6f27f9cf781
|
||||
size 224059
|
9
jemalloc.changes
Normal file
9
jemalloc.changes
Normal file
@ -0,0 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 13 00:00:00 UTC 2011 - tony@daylessday.org
|
||||
|
||||
- Add a patch to generate jemalloc.sh during configure
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 12 00:00:00 UTC 2011 - tony@daylessday.org
|
||||
|
||||
- Initial package for build.opensuse.org
|
103
jemalloc.spec
Normal file
103
jemalloc.spec
Normal file
@ -0,0 +1,103 @@
|
||||
#
|
||||
# spec file for package jemalloc
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
Name: jemalloc
|
||||
%define lname libjemalloc1
|
||||
Summary: General-purpose scalable concurrent malloc implementation
|
||||
Group: Development/Libraries/C and C++
|
||||
Version: 2.2.3
|
||||
Release: 0
|
||||
License: BSD
|
||||
URL: http://canonware.com/jemalloc
|
||||
Source: jemalloc-%version.tar.bz2
|
||||
Patch1: 0001-add-autogenerated-jemalloc.sh-wrapper-script.diff
|
||||
BuildRequires: docbook-xsl-stylesheets, libxslt
|
||||
Requires: %lname = %version
|
||||
|
||||
%description
|
||||
jemalloc is a general-purpose scalable concurrent malloc(3) implementation.
|
||||
This package provides a shell wrapper script to run programs using jemalloc.
|
||||
|
||||
%package -n %lname
|
||||
Summary: General-purpose scalable concurrent malloc implementation
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %lname
|
||||
General-purpose scalable concurrent malloc(3) implementation.
|
||||
This distribution is the stand-alone "portable" version of jemalloc.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for jemalloc
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %lname = %version
|
||||
|
||||
%description devel
|
||||
Headers for jemalloc, general-purpose scalable concurrent malloc(3)
|
||||
implementation.
|
||||
|
||||
%package devel-static
|
||||
Summary: Static libraries for jemalloc
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %name-devel = %version
|
||||
|
||||
%description devel-static
|
||||
Static libraries of jemalloc, general-purpose scalable concurrent
|
||||
malloc(3) implementation.
|
||||
|
||||
%prep
|
||||
%setup -qn jemalloc-%version
|
||||
%patch -P 1 -p1
|
||||
|
||||
%build
|
||||
./autogen.sh;
|
||||
export CFLAGS="%optflags -g2";
|
||||
%configure
|
||||
make %{?_smp_mflags};
|
||||
|
||||
%install
|
||||
b="%buildroot";
|
||||
%make_install
|
||||
chmod -x "%buildroot/%_libdir"/*.a;
|
||||
if [ "%_docdir" != "%_datadir/doc" ]; then
|
||||
# stupid Makefile does not allow to set it
|
||||
mkdir -p "$b/%_docdir";
|
||||
mv "$b/%_datadir/doc/jemalloc" "$b/%_docdir/%name";
|
||||
fi;
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%_bindir/jemalloc.sh
|
||||
%_bindir/pprof
|
||||
%_mandir/man*/*
|
||||
%_docdir/%name
|
||||
|
||||
%files -n %lname
|
||||
%defattr(-,root,root)
|
||||
%_libdir/libjemalloc.so.1*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%_includedir/jemalloc
|
||||
%_libdir/libjemalloc.so
|
||||
|
||||
%files devel-static
|
||||
%defattr(-,root,root,-)
|
||||
%_libdir/libjemalloc*.a
|
||||
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
|
||||
%postun -n %lname -p /sbin/ldconfig
|
Loading…
Reference in New Issue
Block a user