mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 01:46:58 +02:00
dev-libs/jemalloc: remove unnecessary package
Remove unnecessary package dev-libs/jemalloc.
This commit is contained in:
parent
57310a1b1d
commit
0e08a9713f
@ -1,6 +0,0 @@
|
||||
DIST jemalloc-2.2.5.tar.bz2 224118 BLAKE2B 97b178b7bf5142d2c0123c238e44df77fd4655071b695a2ce6a6470dd13ac714eac58df5350c33247b48cde21549cb7d9706de1bc64ad79eae00e89561157641 SHA512 56a29dc7dca66c41d2934731c4bc756de5b58bf707dc2ebcf8515be400ce25e372af6526035117cad5b1964b9ba040ab7178f4c28c1649e86dcb53c3ec884a9d
|
||||
DIST jemalloc-3.3.1.tar.bz2 252997 BLAKE2B a1069b2c19d7f29752a5882df1b4319f08f24b49664f35848bd0b1d79901614d030a045565a39d39ce0889c2c5d6b233ad87f4cac9682dbc4370c96da521c7b3 SHA512 32814e8678af4954e26c0c0a0e5d06aba8f3844205fe212c5e41929dfab6a94ff11127a9238b5c18d72749827c467ecb874b8f3a9bc161cf1afdf4ea84c58690
|
||||
DIST jemalloc-3.6.0.tar.bz2 338964 BLAKE2B a5edacc85c5bebf3b373e7fc8bafd9449273ff58c2e44e94eb9900f54b11f2d8b837a3a8ee76cce46777ccc40dea23905b7ff81eef5af39ea1d3f98017b27111 SHA512 ebe7c64558a87a735b5906d5cb7527c241664eeae7328538675a12eabe7a1004be0f8766a3bd2a78e61334b196ca7ffc0ee8b8ff59167922a35f126cd1e76e43
|
||||
DIST jemalloc-4.4.0.tar.bz2 440144 BLAKE2B 6acb91c5be6c5b17c209341dd08e6973e3ad5ecdfe7ebe5d8c78181cddca1fccba3c11628e736d66acd7698f7813f38077033d39093bf2e4bd704c8b4de60e7b SHA512 2f88fb17ede3bf87e334e9c80949870e0dd85b5adcdd89a1750ccf6df5240f35293159ac0a360d3a29cf0b1d17edf86dcc7997c6bf3190ae7da7442d3a3cc14e
|
||||
DIST jemalloc-4.5.0.tar.bz2 449992 BLAKE2B 6141c71f7f5f9cee91a59eeed9c69b0a69b3cc39666aa608445073c11ee3ca9b4777a851c5cb5adac80d42bfbf10a6726e5dc1340ffe85ea1ee884d87c7865da SHA512 76953363fe1007952232220afa1a91da4c1c33c02369b5ad239d8dd1d0792141197c15e8489a8f4cd301b08494e65cadd8ecd34d025cb0285700dd78d7248821
|
||||
DIST jemalloc-5.0.1.tar.bz2 499300 BLAKE2B 551933fcd93315968cbf89bfadc40313717ff216141af8a131f2333d10090438ddf36fbfdc0ee831cbec6f930ae15aa9cfaafae72ed4f38dd97b00712ca918e8 SHA512 8cb5957a5724eb2bbad120cf0028ea8b2b14b4a416c1751b7c967351a7fd51135058ea0d3c4dc1d127c86f3aa7e9fd5ef101857110aabfdb7789427791c432c3
|
@ -1,24 +0,0 @@
|
||||
--- a/Makefile.in 2011-04-11 10:42:32.084403330 -0500
|
||||
+++ b/Makefile.in 2011-04-11 10:43:23.490760665 -0500
|
||||
@@ -42,7 +42,6 @@
|
||||
endif
|
||||
|
||||
# Lists of files.
|
||||
-BINS := @srcroot@bin/pprof
|
||||
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 \
|
||||
@@ -141,13 +140,6 @@
|
||||
$(CC) -o $@ $< -L@objroot@lib -ljemalloc@install_suffix@
|
||||
endif
|
||||
|
||||
-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 \
|
@ -1,12 +0,0 @@
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -176,7 +176,7 @@
|
||||
install -m 644 $$d $(MANDIR)/man3; \
|
||||
done
|
||||
|
||||
-install_doc: install_html install_man
|
||||
+install_doc: install_man
|
||||
|
||||
install: install_bin install_include install_lib install_doc
|
||||
|
||||
|
@ -1,27 +0,0 @@
|
||||
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 \
|
||||
|
@ -1,29 +0,0 @@
|
||||
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],
|
||||
|
@ -1,14 +0,0 @@
|
||||
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
|
||||
|
||||
|
@ -1,25 +0,0 @@
|
||||
diff -urN a/Makefile.in b/Makefile.in
|
||||
--- a/Makefile.in 2014-02-25 18:49:15.000000000 -0600
|
||||
+++ b/Makefile.in 2014-03-07 18:24:10.978141932 -0600
|
||||
@@ -73,7 +73,6 @@
|
||||
LIBJEMALLOC := $(LIBPREFIX)jemalloc$(install_suffix)
|
||||
|
||||
# Lists of files.
|
||||
-BINS := $(srcroot)bin/pprof $(objroot)bin/jemalloc.sh
|
||||
C_HDRS := $(objroot)include/jemalloc/jemalloc$(install_suffix).h
|
||||
C_SRCS := $(srcroot)src/jemalloc.c $(srcroot)src/arena.c \
|
||||
$(srcroot)src/atomic.c $(srcroot)src/base.c $(srcroot)src/bitmap.c \
|
||||
@@ -273,13 +272,6 @@
|
||||
build_lib_static: $(STATIC_LIBS)
|
||||
build_lib: 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 $(C_HDRS); do \
|
@ -1,27 +0,0 @@
|
||||
diff -urN a/configure.ac b/configure.ac
|
||||
--- a/configure.ac 2014-02-25 18:49:15.000000000 -0600
|
||||
+++ b/configure.ac 2014-03-07 18:19:53.718147847 -0600
|
||||
@@ -639,23 +639,6 @@
|
||||
AC_DEFINE([JEMALLOC_IVSALLOC], [ ])
|
||||
fi
|
||||
|
||||
-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 "$CFLAGS $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],
|
@ -1,12 +0,0 @@
|
||||
diff -urN a/Makefile.in b/Makefile.in
|
||||
--- a/Makefile.in 2014-02-25 18:49:15.000000000 -0600
|
||||
+++ b/Makefile.in 2014-03-07 18:26:23.074138895 -0600
|
||||
@@ -317,7 +317,7 @@
|
||||
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
|
||||
|
@ -1,25 +0,0 @@
|
||||
From c04d0b954adef2d3f1a30d91dc687f6a03b108eb Mon Sep 17 00:00:00 2001
|
||||
From:
|
||||
Date: Mon, 29 May 2017 00:58:32 -0500
|
||||
Subject: [PATCH 2/2] Do not install html doc
|
||||
|
||||
---
|
||||
Makefile.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index e49a871..733932a 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -381,7 +381,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
|
||||
|
||||
--
|
||||
2.13.0
|
||||
|
@ -1,35 +0,0 @@
|
||||
From c568271163445e380679788388f1cb1edbdeaf88 Mon Sep 17 00:00:00 2001
|
||||
From:
|
||||
Date: Mon, 29 May 2017 00:57:15 -0500
|
||||
Subject: [PATCH 1/2] Strip all optimization, let portage handle.
|
||||
|
||||
---
|
||||
configure.ac | 12 ------------
|
||||
1 file changed, 12 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 20a8a64..d8af618 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -851,18 +851,6 @@ if test "x$enable_ivsalloc" = "x1" ; then
|
||||
AC_DEFINE([JEMALLOC_IVSALLOC], [ ])
|
||||
fi
|
||||
|
||||
-dnl Only optimize if not debugging.
|
||||
-if test "x$enable_debug" = "x0" ; then
|
||||
- if test "x$GCC" = "xyes" ; then
|
||||
- JE_CFLAGS_ADD([-O3])
|
||||
- JE_CFLAGS_ADD([-funroll-loops])
|
||||
- elif test "x$je_cv_msvc" = "xyes" ; then
|
||||
- JE_CFLAGS_ADD([-O2])
|
||||
- else
|
||||
- JE_CFLAGS_ADD([-O])
|
||||
- fi
|
||||
-fi
|
||||
-
|
||||
dnl Enable statistics calculation by default.
|
||||
AC_ARG_ENABLE([stats],
|
||||
[AS_HELP_STRING([--disable-stats],
|
||||
--
|
||||
2.13.0
|
||||
|
@ -1,26 +0,0 @@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 1551ded8..2f470672 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -976,21 +976,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" ; then
|
||||
- if test "x$GCC" = "xyes" ; then
|
||||
- JE_CFLAGS_ADD([-O3])
|
||||
- JE_CXXFLAGS_ADD([-O3])
|
||||
- JE_CFLAGS_ADD([-funroll-loops])
|
||||
- elif test "x$je_cv_msvc" = "xyes" ; then
|
||||
- JE_CFLAGS_ADD([-O2])
|
||||
- JE_CXXFLAGS_ADD([-O2])
|
||||
- else
|
||||
- JE_CFLAGS_ADD([-O])
|
||||
- JE_CXXFLAGS_ADD([-O])
|
||||
- fi
|
||||
-fi
|
||||
-
|
||||
dnl Enable statistics calculation by default.
|
||||
AC_ARG_ENABLE([stats],
|
||||
[AS_HELP_STRING([--disable-stats],
|
@ -1,25 +0,0 @@
|
||||
--- a/configure.ac 2010-02-22 12:07:05.000000000 +0100
|
||||
+++ b/configure.ac 2010-02-22 12:08:29.000000000 +0100
|
||||
@@ -296,21 +296,6 @@
|
||||
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])
|
||||
- else
|
||||
- JE_CFLAGS_APPEND([-O])
|
||||
- fi
|
||||
- fi
|
||||
-fi
|
||||
-
|
||||
dnl Do not enable statistics calculation by default.
|
||||
AC_ARG_ENABLE([stats],
|
||||
[AS_HELP_STRING([--enable-stats], [Enable statistics calculation/reporting])],
|
||||
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
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 ~arm ~mips ppc ppc64 x86"
|
||||
|
||||
IUSE="debug static-libs stats"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}/${PN}-strip-optimization.patch" \
|
||||
"${FILESDIR}/${PN}-2.2.1-no-pprof.patch" \
|
||||
"${FILESDIR}/${PN}-2.2.5_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 {} +
|
||||
}
|
@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
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="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 x86 ~x64-macos"
|
||||
IUSE="debug static-libs stats"
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}/${PN}-3.0.0-strip-optimization.patch" \
|
||||
"${FILESDIR}/${PN}-3.0.0-no-pprof.patch" \
|
||||
"${FILESDIR}/${PN}-3.0.0_fix_html_install.patch"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable debug) \
|
||||
$(use_enable stats)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dohtml doc/jemalloc.html
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# fixup install_name, #437362
|
||||
install_name_tool \
|
||||
-id "${EPREFIX}"/usr/$(get_libdir)/libjemalloc.1.dylib \
|
||||
"${ED}"/usr/$(get_libdir)/libjemalloc.1.dylib || die
|
||||
fi
|
||||
|
||||
use static-libs || find "${D}" -name '*.a' -delete
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools-multilib eutils flag-o-matic toolchain-funcs
|
||||
|
||||
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="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
|
||||
IUSE="debug static-libs stats"
|
||||
|
||||
HTML_DOCS=( doc/jemalloc.html )
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-3.5.1-strip-optimization.patch"
|
||||
"${FILESDIR}/${PN}-3.5.1-no-pprof.patch"
|
||||
"${FILESDIR}/${PN}-3.5.1_fix_html_install.patch"
|
||||
)
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=( /usr/include/jemalloc/jemalloc.h )
|
||||
|
||||
# autotools-utils.eclass auto-adds configure options when static-libs is in IUSE
|
||||
# but jemalloc doesn't implement them in its configure; need this here to
|
||||
# supress the warnings until automagic is removed from the eclass
|
||||
QA_CONFIGURE_OPTIONS="--enable-static --disable-static --enable-shared --disable-shared"
|
||||
src_configure() {
|
||||
myeconfargs=(
|
||||
$(use_enable debug)
|
||||
$(use_enable stats)
|
||||
)
|
||||
use sparc && append-cppflags -DLG_QUANTUM=4 -mcpu=ultrasparc
|
||||
# The configure test for page shift requires running code which fails
|
||||
# when cross-compiling. Since it uses _SC_PAGESIZE, and the majority
|
||||
# of systems use 4096 as the base page size, just hardcode 12 here.
|
||||
tc-is-cross-compiler && export je_cv_static_page_shift=12
|
||||
autotools-multilib_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-multilib_src_install
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# fixup install_name, #437362
|
||||
install_name_tool \
|
||||
-id "${EPREFIX}"/usr/$(get_libdir)/libjemalloc.1.dylib \
|
||||
"${ED}"/usr/$(get_libdir)/libjemalloc.1.dylib || die
|
||||
fi
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs multilib-build multilib-minimal
|
||||
|
||||
DESCRIPTION="Jemalloc is a general-purpose scalable concurrent allocator"
|
||||
HOMEPAGE="http://www.canonware.com/jemalloc/"
|
||||
SRC_URI="https://github.com/jemalloc/jemalloc/releases/download/${PV}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos"
|
||||
IUSE="debug hardened static-libs stats"
|
||||
HTML_DOCS=( doc/jemalloc.html )
|
||||
PATCHES=( "${FILESDIR}/${PN}-3.5.1-strip-optimization.patch"
|
||||
"${FILESDIR}/${PN}-3.5.1_fix_html_install.patch"
|
||||
)
|
||||
MULTILIB_WRAPPED_HEADERS=( /usr/include/jemalloc/jemalloc.h )
|
||||
# autotools-utils.eclass auto-adds configure options when static-libs is in IUSE
|
||||
# but jemalloc doesn't implement them in its configure; need this here to
|
||||
# supress the warnings until automagic is removed from the eclass
|
||||
QA_CONFIGURE_OPTIONS="--enable-static --disable-static --enable-shared --disable-shared"
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf=()
|
||||
|
||||
if use hardened ; then
|
||||
myconf+=( --disable-syscall )
|
||||
fi
|
||||
|
||||
ECONF_SOURCE="${S}" \
|
||||
econf \
|
||||
$(use_enable debug) \
|
||||
$(use_enable stats) \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
# Copy man file which the Makefile looks for
|
||||
cp "${S}/doc/jemalloc.3" "${BUILD_DIR}/doc" || die
|
||||
emake DESTDIR="${D}" install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# fixup install_name, #437362
|
||||
install_name_tool \
|
||||
-id "${EPREFIX}"/usr/$(get_libdir)/libjemalloc.1.dylib \
|
||||
"${ED}"/usr/$(get_libdir)/libjemalloc.1.dylib || die
|
||||
fi
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools toolchain-funcs multilib-minimal
|
||||
|
||||
DESCRIPTION="Jemalloc is a general-purpose scalable concurrent allocator"
|
||||
HOMEPAGE="http://www.canonware.com/jemalloc/"
|
||||
SRC_URI="https://github.com/jemalloc/jemalloc/releases/download/${PV}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos"
|
||||
IUSE="debug hardened static-libs stats"
|
||||
HTML_DOCS=( doc/jemalloc.html )
|
||||
PATCHES=( "${FILESDIR}/${PN}-4.5.0-strip-optimization.patch"
|
||||
"${FILESDIR}/${PN}-4.5.0-fix_html_install.patch"
|
||||
)
|
||||
MULTILIB_WRAPPED_HEADERS=( /usr/include/jemalloc/jemalloc.h )
|
||||
# autotools-utils.eclass auto-adds configure options when static-libs is in IUSE
|
||||
# but jemalloc doesn't implement them in its configure; need this here to
|
||||
# supress the warnings until automagic is removed from the eclass
|
||||
QA_CONFIGURE_OPTIONS="--enable-static --disable-static --enable-shared --disable-shared"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf=()
|
||||
|
||||
if use hardened ; then
|
||||
myconf+=( --disable-syscall )
|
||||
fi
|
||||
|
||||
ECONF_SOURCE="${S}" \
|
||||
econf \
|
||||
$(use_enable debug) \
|
||||
$(use_enable stats) \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
# Copy man file which the Makefile looks for
|
||||
cp "${S}/doc/jemalloc.3" "${BUILD_DIR}/doc" || die
|
||||
emake DESTDIR="${D}" install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# fixup install_name, #437362
|
||||
install_name_tool \
|
||||
-id "${EPREFIX}"/usr/$(get_libdir)/libjemalloc.1.dylib \
|
||||
"${ED}"/usr/$(get_libdir)/libjemalloc.1.dylib || die
|
||||
fi
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
}
|
@ -1,62 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools toolchain-funcs multilib-minimal
|
||||
|
||||
DESCRIPTION="Jemalloc is a general-purpose scalable concurrent allocator"
|
||||
HOMEPAGE="http://www.canonware.com/jemalloc/"
|
||||
SRC_URI="https://github.com/jemalloc/jemalloc/releases/download/${PV}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
|
||||
IUSE="debug hardened +hugepages lazy-lock static-libs stats xmalloc"
|
||||
HTML_DOCS=( doc/jemalloc.html )
|
||||
PATCHES=( "${FILESDIR}/${PN}-5.0.1-strip-optimization.patch"
|
||||
"${FILESDIR}/${PN}-4.5.0-fix_html_install.patch"
|
||||
)
|
||||
MULTILIB_WRAPPED_HEADERS=( /usr/include/jemalloc/jemalloc.h )
|
||||
# autotools-utils.eclass auto-adds configure options when static-libs is in IUSE
|
||||
# but jemalloc doesn't implement them in its configure; need this here to
|
||||
# supress the warnings until automagic is removed from the eclass
|
||||
QA_CONFIGURE_OPTIONS="--enable-static --disable-static --enable-shared --disable-shared"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf=()
|
||||
|
||||
if use hardened ; then
|
||||
myconf+=( --disable-syscall )
|
||||
fi
|
||||
|
||||
ECONF_SOURCE="${S}" \
|
||||
econf \
|
||||
$(use_enable debug) \
|
||||
$(use_enable lazy-lock) \
|
||||
$(use_enable hugepages thp) \
|
||||
$(use_enable stats) \
|
||||
$(use_enable xmalloc) \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
# Copy man file which the Makefile looks for
|
||||
cp "${S}/doc/jemalloc.3" "${BUILD_DIR}/doc" || die
|
||||
emake DESTDIR="${D}" install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# fixup install_name, #437362
|
||||
install_name_tool \
|
||||
-id "${EPREFIX}"/usr/$(get_libdir)/libjemalloc.2.dylib \
|
||||
"${ED}"/usr/$(get_libdir)/libjemalloc.2.dylib || die
|
||||
fi
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>mozilla@gentoo.org</email>
|
||||
<name>Gentoo Mozilla Team</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Jemalloc is a general-purpose scalable concurrent allocator
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="hugepages">Enable transparent huge page support</flag>
|
||||
<flag name="lazy-lock">Enable lazy locking (only lock when multi-threaded)</flag>
|
||||
<flag name="stats">Enable statistics calculation/reporting</flag>
|
||||
<flag name="xmalloc">Add support for xmalloc (abort-on-out-of-memory)</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">jemalloc/jemalloc</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user