diff options
author | Jory Pratt <anarchy@gentoo.org> | 2012-06-01 13:05:15 +0000 |
---|---|---|
committer | Jory Pratt <anarchy@gentoo.org> | 2012-06-01 13:05:15 +0000 |
commit | a59a4e5463ccd37174d92b3f4dc79445723242b5 (patch) | |
tree | d227d19dbfba17e0bb3d196cb5e752172eea9b7b /dev-libs/jemalloc | |
parent | Stable for amd64, wrt bug #418911 (diff) | |
download | gentoo-2-a59a4e5463ccd37174d92b3f4dc79445723242b5.tar.gz gentoo-2-a59a4e5463ccd37174d92b3f4dc79445723242b5.tar.bz2 gentoo-2-a59a4e5463ccd37174d92b3f4dc79445723242b5.zip |
Version bump dev-libs/jemalloc-3.0.0 bug #416243
(Portage version: 2.1.10.63/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/jemalloc')
-rw-r--r-- | dev-libs/jemalloc/ChangeLog | 11 | ||||
-rw-r--r-- | dev-libs/jemalloc/files/jemalloc-3.0.0-no-pprof.patch | 27 | ||||
-rw-r--r-- | dev-libs/jemalloc/files/jemalloc-3.0.0-strip-optimization.patch | 29 | ||||
-rw-r--r-- | dev-libs/jemalloc/files/jemalloc-3.0.0_fix_html_install.patch | 14 | ||||
-rw-r--r-- | dev-libs/jemalloc/jemalloc-3.0.0.ebuild | 44 |
5 files changed, 124 insertions, 1 deletions
diff --git a/dev-libs/jemalloc/ChangeLog b/dev-libs/jemalloc/ChangeLog index d01c1a0521f2..49b55e978f2d 100644 --- a/dev-libs/jemalloc/ChangeLog +++ b/dev-libs/jemalloc/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for dev-libs/jemalloc # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/jemalloc/ChangeLog,v 1.14 2012/05/21 18:59:31 xarthisius Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/jemalloc/ChangeLog,v 1.15 2012/06/01 13:05:15 anarchy Exp $ + +*jemalloc-3.0.0 (01 Jun 2012) + + 01 Jun 2012; <anarchy@gentoo.org> +jemalloc-3.0.0.ebuild, + +files/jemalloc-3.0.0-no-pprof.patch, + +files/jemalloc-3.0.0-strip-optimization.patch, + +files/jemalloc-3.0.0_fix_html_install.patch: + Version bump with regards to bug #416243, Thank Johan Bergström for updating + patches 21 May 2012; Kacper Kowalik <xarthisius@gentoo.org> jemalloc-2.2.5-r1.ebuild, jemalloc-2.2.5.ebuild: diff --git a/dev-libs/jemalloc/files/jemalloc-3.0.0-no-pprof.patch b/dev-libs/jemalloc/files/jemalloc-3.0.0-no-pprof.patch new file mode 100644 index 000000000000..c2fa815ec529 --- /dev/null +++ b/dev-libs/jemalloc/files/jemalloc-3.0.0-no-pprof.patch @@ -0,0 +1,27 @@ +diff --git a/Makefile.in b/Makefile.in +index 6675b59..ce0782f 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -69,7 +69,6 @@ endif + LIBJEMALLOC := $(LIBPREFIX)jemalloc$(install_suffix) + + # Lists of files. +-BINS := $(srcroot)bin/pprof $(objroot)bin/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 \ +@@ -196,13 +195,6 @@ build_lib_shared: $(DSOS) + build_lib_static: $(STATIC_LIBS) + build: build_lib_shared build_lib_static + +-install_bin: +- install -d $(BINDIR) +- @for b in $(BINS); do \ +- echo "install -m 755 $$b $(BINDIR)"; \ +- install -m 755 $$b $(BINDIR); \ +-done +- + install_include: + install -d $(INCLUDEDIR)/jemalloc + @for h in $(CHDRS); do \ + diff --git a/dev-libs/jemalloc/files/jemalloc-3.0.0-strip-optimization.patch b/dev-libs/jemalloc/files/jemalloc-3.0.0-strip-optimization.patch new file mode 100644 index 000000000000..98c09af6277f --- /dev/null +++ b/dev-libs/jemalloc/files/jemalloc-3.0.0-strip-optimization.patch @@ -0,0 +1,29 @@ +diff --git a/configure.ac b/configure.ac +index a72019e..e366e1c 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -556,23 +556,6 @@ if test "x$enable_debug" = "x1" ; then + fi + AC_SUBST([enable_debug]) + +-dnl Only optimize if not debugging. +-if test "x$enable_debug" = "x0" -a "x$no_CFLAGS" = "xyes" ; then +- dnl Make sure that an optimization flag was not specified in EXTRA_CFLAGS. +- optimize="no" +- echo "$EXTRA_CFLAGS" | grep "\-O" >/dev/null || optimize="yes" +- if test "x${optimize}" = "xyes" ; then +- if test "x$GCC" = "xyes" ; then +- JE_CFLAGS_APPEND([-O3]) +- JE_CFLAGS_APPEND([-funroll-loops]) +- elif test "x$je_cv_msvc" = "xyes" ; then +- JE_CFLAGS_APPEND([-O2]) +- else +- JE_CFLAGS_APPEND([-O]) +- fi +- fi +-fi +- + dnl Enable statistics calculation by default. + AC_ARG_ENABLE([stats], + [AS_HELP_STRING([--disable-stats], + diff --git a/dev-libs/jemalloc/files/jemalloc-3.0.0_fix_html_install.patch b/dev-libs/jemalloc/files/jemalloc-3.0.0_fix_html_install.patch new file mode 100644 index 000000000000..0f3026d44c2b --- /dev/null +++ b/dev-libs/jemalloc/files/jemalloc-3.0.0_fix_html_install.patch @@ -0,0 +1,14 @@ +diff --git a/Makefile.in b/Makefile.in +index 6675b59..3032c6d 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -240,7 +240,7 @@ install_doc_man: + install -m 644 $$d $(MANDIR)/man3; \ + done + +-install_doc: install_doc_html install_doc_man ++install_doc: install_doc_man + + install: install_bin install_include install_lib install_doc + + diff --git a/dev-libs/jemalloc/jemalloc-3.0.0.ebuild b/dev-libs/jemalloc/jemalloc-3.0.0.ebuild new file mode 100644 index 000000000000..6ad5938c5e63 --- /dev/null +++ b/dev-libs/jemalloc/jemalloc-3.0.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/jemalloc/jemalloc-3.0.0.ebuild,v 1.1 2012/06/01 13:05:15 anarchy Exp $ + +EAPI=4 + +inherit autotools eutils + +DESCRIPTION="Jemalloc is a general-purpose scalable concurrent allocator" +HOMEPAGE="http://www.canonware.com/jemalloc/" +SRC_URI="http://www.canonware.com/download/${PN}/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +IUSE="debug static-libs stats" + +DEPEND="" +RDEPEND="" + +src_prepare() { + epatch \ + "${FILESDIR}/${P}-strip-optimization.patch" \ + "${FILESDIR}/${P}-no-pprof.patch" \ + "${FILESDIR}/${P}_fix_html_install.patch" \ + + eautoreconf +} + +src_configure() { + econf \ + --with-jemalloc-prefix=j \ + $(use_enable debug) \ + $(use_enable stats) +} + +src_install() { + emake DESTDIR="${ED}" install || die + dodoc ChangeLog README + dohtml doc/jemalloc.html + + use static-libs || find "${ED}" -name '*.a' -exec rm -f {} + +} |