diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
| commit | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch) | |
| tree | 0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-libs/jemalloc | |
| parent | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff) | |
| download | baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip | |
Adding metadata
Diffstat (limited to 'dev-libs/jemalloc')
10 files changed, 0 insertions, 507 deletions
diff --git a/dev-libs/jemalloc/Manifest b/dev-libs/jemalloc/Manifest deleted file mode 100644 index 1f6abdde6487..000000000000 --- a/dev-libs/jemalloc/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST jemalloc-5.3.0.tar.bz2 736023 BLAKE2B 9ff51616c3fb086d7cc021c59b83e5f0304d886993f4b5194a6956ffaf742cc509d08a2cf81ead6966c39a44f35621b57550f4a5c726c4508fd2c86c7c056ab0 SHA512 22907bb052096e2caffb6e4e23548aecc5cc9283dce476896a2b1127eee64170e3562fa2e7db9571298814a7a2c7df6e8d1fbe152bd3f3b0c1abec22a2de34b1 diff --git a/dev-libs/jemalloc/files/jemalloc-5.3.0-aarch64-64kib-page-size.patch b/dev-libs/jemalloc/files/jemalloc-5.3.0-aarch64-64kib-page-size.patch deleted file mode 100644 index 151a5f40b695..000000000000 --- a/dev-libs/jemalloc/files/jemalloc-5.3.0-aarch64-64kib-page-size.patch +++ /dev/null @@ -1,38 +0,0 @@ -https://github.com/facebook/jemalloc/commit/7dcdafea00a3a02cfbc84a798a0cc626515011eb -From: lexprfuncall <5360361+lexprfuncall@users.noreply.github.com> -Date: Mon, 25 Aug 2025 19:39:30 -0700 -Subject: [PATCH] Change the default page size to 64KiB on Aarch64 Linux - -This updates the configuration script to set the default page size to -64KiB on Aarch64 Linux. This is motivated by compatibility as a build -configured for a 64KiB page will work on kernels that use the smaller -4KiB or 16KiB pages, whereas the reverse is not true. - -To make the configured page size setting more visible, the script now -displays the page size when printing the configuration results. - -Users that want to override the page size in to choose a smaller value -can still do so with the --with-lg-pagesize configuration option. ---- a/configure.ac -+++ b/configure.ac -@@ -1990,6 +1990,11 @@ case "${host}" in - LG_PAGE=14 - fi - ;; -+ aarch64-unknown-linux-*) -+ if test "x$LG_PAGE" = "xdetect"; then -+ LG_PAGE=16 -+ fi -+ ;; - esac - if test "x$LG_PAGE" = "xdetect"; then - AC_CACHE_CHECK([LG_PAGE], -@@ -3077,6 +3082,8 @@ AC_MSG_RESULT([INCLUDEDIR : ${INCLUDEDIR}]) - AC_MSG_RESULT([LIBDIR : ${LIBDIR}]) - AC_MSG_RESULT([MANDIR : ${MANDIR}]) - AC_MSG_RESULT([]) -+AC_MSG_RESULT([LG_PAGE : ${LG_PAGE}]) -+AC_MSG_RESULT([]) - AC_MSG_RESULT([srcroot : ${srcroot}]) - AC_MSG_RESULT([abs_srcroot : ${abs_srcroot}]) - AC_MSG_RESULT([objroot : ${objroot}]) diff --git a/dev-libs/jemalloc/files/jemalloc-5.3.0-backport-pr-2312.patch b/dev-libs/jemalloc/files/jemalloc-5.3.0-backport-pr-2312.patch deleted file mode 100644 index 8867eeb3b2c1..000000000000 --- a/dev-libs/jemalloc/files/jemalloc-5.3.0-backport-pr-2312.patch +++ /dev/null @@ -1,160 +0,0 @@ -This backports https://github.com/jemalloc/jemalloc/pull/2312, which -I opened after discussion with upstream in -https://github.com/jemalloc/jemalloc/issues/2305, where they explicitly -clarify that the HPA feature is not tested, not supported, and not -intended for use on non-x86 platforms. - -From: matoro <matoro@users.noreply.github.com> -Date: Wed, 27 Jul 2022 11:13:35 -0400 -Subject: [PATCH] Support HPA only on x86 - -This can be overridden with -DHPA_SUPPORTED. - -Unfortunately has to be implemented using preprocessor macros, can't use -test_skip_if because the test name string is already corrupted by that -time. See https://github.com/jemalloc/jemalloc/issues/2305 ---- - include/jemalloc/internal/hpa.h | 27 +++++++++++++++++++++++++++ - src/hpa.c | 7 +------ - test/include/test/test.h | 9 +++++++++ - test/unit/psset.c | 14 ++++++++++++++ - 4 files changed, 51 insertions(+), 6 deletions(-) - -diff --git a/include/jemalloc/internal/hpa.h b/include/jemalloc/internal/hpa.h -index f3562853e..3d389a644 100644 ---- a/include/jemalloc/internal/hpa.h -+++ b/include/jemalloc/internal/hpa.h -@@ -7,6 +7,33 @@ - #include "jemalloc/internal/pai.h" - #include "jemalloc/internal/psset.h" - -+/* -+ * The HPA_SUPPORTED macro is not a technical indicator of whether HPA -+ * theoretically functions on the platform, but rather whether the platform is -+ * tested/supported for using HPA on by the jemalloc developers. -+ */ -+#ifdef HPA_SUPPORTED -+#warning "Force-enabling HPA support. Do NOT report issues to jemalloc developers." -+#else -+#define HPA_SUPPORTED 1 -+ -+/* -+ * At least until the API and implementation is somewhat settled, we -+ * don't want to try to debug the VM subsystem on the hardest-to-test -+ * platform. -+ */ -+#ifdef _WIN32 -+#undef HPA_SUPPORTED -+#endif -+ -+/* -+ * https://github.com/jemalloc/jemalloc/issues/2305#issuecomment-1195917164 -+ */ -+#if !defined(__x86_64__) && !defined(__i386__) -+#undef HPA_SUPPORTED -+#endif -+#endif -+ - typedef struct hpa_central_s hpa_central_t; - struct hpa_central_s { - /* -diff --git a/src/hpa.c b/src/hpa.c -index 7e2aeba0c..0a9946b9e 100644 ---- a/src/hpa.c -+++ b/src/hpa.c -@@ -25,12 +25,7 @@ static uint64_t hpa_time_until_deferred_work(tsdn_t *tsdn, pai_t *self); - - bool - hpa_supported() { --#ifdef _WIN32 -- /* -- * At least until the API and implementation is somewhat settled, we -- * don't want to try to debug the VM subsystem on the hardest-to-test -- * platform. -- */ -+#ifndef HPA_SUPPORTED - return false; - #endif - if (!pages_can_hugify) { -diff --git a/test/include/test/test.h b/test/include/test/test.h -index d4b65912d..7fa56f7be 100644 ---- a/test/include/test/test.h -+++ b/test/include/test/test.h -@@ -546,6 +546,15 @@ static void \ - f(void) { \ - p_test_init(#f); - -+#define TEST_SKIP(f) \ -+static void \ -+f(void) { \ -+ p_test_init(#f); \ -+ test_skip("%s:%s:%d: Test skipped: ", \ -+ __func__, __FILE__, __LINE__); \ -+ p_test_fini(); \ -+} -+ - #define TEST_END \ - goto label_test_end; \ - label_test_end: \ -diff --git a/test/unit/psset.c b/test/unit/psset.c -index 6ff720129..af764d3a3 100644 ---- a/test/unit/psset.c -+++ b/test/unit/psset.c -@@ -276,6 +276,7 @@ TEST_BEGIN(test_evict) { - } - TEST_END - -+#ifdef HPA_SUPPORTED - TEST_BEGIN(test_multi_pageslab) { - bool err; - hpdata_t *ps; -@@ -338,6 +339,9 @@ TEST_BEGIN(test_multi_pageslab) { - expect_false(err, "Allocation should have succeeded"); - } - TEST_END -+#else -+TEST_SKIP(test_multi_pageslab) -+#endif - - static void - stats_expect_empty(psset_bin_stats_t *stats) { -@@ -427,6 +431,7 @@ TEST_END - * (There's nothing magic about these numbers; it's just useful to share the - * setup between the oldest fit and the insert/remove test). - */ -+#ifdef HPA_SUPPORTED - static void - init_test_pageslabs(psset_t *psset, hpdata_t *pageslab, - hpdata_t *worse_pageslab, edata_t *alloc, edata_t *worse_alloc) { -@@ -472,7 +477,9 @@ init_test_pageslabs(psset_t *psset, hpdata_t *pageslab, - &alloc[HUGEPAGE_PAGES - 1]); - expect_ptr_null(evicted, "Unexpected eviction"); - } -+#endif - -+#ifdef HPA_SUPPORTED - TEST_BEGIN(test_oldest_fit) { - bool err; - edata_t alloc[HUGEPAGE_PAGES]; -@@ -495,7 +502,11 @@ TEST_BEGIN(test_oldest_fit) { - "Allocated from the wrong pageslab"); - } - TEST_END -+#else -+TEST_SKIP(test_oldest_fit) -+#endif - -+#ifdef HPA_SUPPORTED - TEST_BEGIN(test_insert_remove) { - bool err; - hpdata_t *ps; -@@ -541,6 +552,9 @@ TEST_BEGIN(test_insert_remove) { - expect_true(err, "psset should be empty, but an alloc succeeded"); - } - TEST_END -+#else -+TEST_SKIP(test_insert_remove) -+#endif - - TEST_BEGIN(test_purge_prefers_nonhuge) { - /* diff --git a/dev-libs/jemalloc/files/jemalloc-5.3.0-backport-pr-2338.patch b/dev-libs/jemalloc/files/jemalloc-5.3.0-backport-pr-2338.patch deleted file mode 100644 index 6d4d4a11f741..000000000000 --- a/dev-libs/jemalloc/files/jemalloc-5.3.0-backport-pr-2338.patch +++ /dev/null @@ -1,83 +0,0 @@ -Backport Musl fixes from PR #2338. - -Upstream PR: https://github.com/jemalloc/jemalloc/pull/2338 -Upstream commits: https://github.com/jemalloc/jemalloc/commit/45249cf5a9cfa13c2c62e68e272a391721523b4b, https://github.com/jemalloc/jemalloc/commit/aba1645f2d65a3b5c46958d7642b46ab3c142cf3 - -From aba1645f2d65a3b5c46958d7642b46ab3c142cf3 Mon Sep 17 00:00:00 2001 -From: Marvin Schmidt <marv@exherbo.org> -Date: Tue, 27 Sep 2022 07:03:14 +0200 -Subject: [PATCH] configure: Handle *-linux-musl* hosts properly - -This is the same as the `*-*-linux*` case with the two exceptions that -we don't set glibc=1 and don't define JEMALLOC_USE_CXX_THROW ---- - configure.ac | 13 +++++++++++++ - 1 file changed, 13 insertions(+) - -diff --git a/configure.ac b/configure.ac -index 2bbf7d54a..f38b72d64 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -723,6 +723,19 @@ case "${host}" in - fi - zero_realloc_default_free="1" - ;; -+ *-*-linux-musl*) -+ dnl syscall(2) and secure_getenv(3) are exposed by _GNU_SOURCE. -+ JE_APPEND_VS(CPPFLAGS, -D_GNU_SOURCE) -+ abi="elf" -+ AC_DEFINE([JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS], [ ], [ ]) -+ AC_DEFINE([JEMALLOC_HAS_ALLOCA_H], [ ], [ ]) -+ AC_DEFINE([JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY], [ ], [ ]) -+ AC_DEFINE([JEMALLOC_THREADED_INIT], [ ], [ ]) -+ if test "${LG_SIZEOF_PTR}" = "3"; then -+ default_retain="1" -+ fi -+ zero_realloc_default_free="1" -+ ;; - *-*-linux*) - dnl syscall(2) and secure_getenv(3) are exposed by _GNU_SOURCE. - JE_APPEND_VS(CPPFLAGS, -D_GNU_SOURCE) - -From 45249cf5a9cfa13c2c62e68e272a391721523b4b Mon Sep 17 00:00:00 2001 -From: Marvin Schmidt <marv@exherbo.org> -Date: Tue, 27 Sep 2022 07:00:13 +0200 -Subject: [PATCH] Fix exception specification error for hosts using musl libc - -It turns out that the previous commit did not suffice since the -JEMALLOC_SYS_NOTHROW definition also causes the same exception specification -errors as JEMALLOC_USE_CXX_THROW did: -``` -x86_64-pc-linux-musl-cc -std=gnu11 -Werror=unknown-warning-option -Wall -Wextra -Wshorten-64-to-32 -Wsign-compare -Wundef -Wno-format-zero-length -Wpointer- -arith -Wno-missing-braces -Wno-missing-field-initializers -pipe -g3 -fvisibility=hidden -Wimplicit-fallthrough -O3 -funroll-loops -march=native -O2 -pipe -c -march=native -O2 -pipe -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/background_thread.o src/background_thread.c -In file included from src/jemalloc_cpp.cpp:9: -In file included from include/jemalloc/internal/jemalloc_preamble.h:27: -include/jemalloc/internal/../jemalloc.h:254:32: error: exception specification in declaration does not match previous declaration - void JEMALLOC_SYS_NOTHROW *je_malloc(size_t size) - ^ -include/jemalloc/internal/../jemalloc.h:75:21: note: expanded from macro 'je_malloc' - ^ -/usr/x86_64-pc-linux-musl/include/stdlib.h:40:7: note: previous declaration is here -void *malloc (size_t); - ^ -``` - -On systems using the musl C library we have to omit the exception specification -on malloc function family like it's done for MacOS, FreeBSD and OpenBSD. ---- - include/jemalloc/jemalloc_macros.h.in | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/include/jemalloc/jemalloc_macros.h.in b/include/jemalloc/jemalloc_macros.h.in -index 2de3f27de..05d996be2 100644 ---- a/include/jemalloc/jemalloc_macros.h.in -+++ b/include/jemalloc/jemalloc_macros.h.in -@@ -142,7 +142,7 @@ - # define JEMALLOC_COLD - #endif - --#if (defined(__APPLE__) || defined(__FreeBSD__)) && !defined(JEMALLOC_NO_RENAME) -+#if (defined(__APPLE__) || defined(__FreeBSD__) || (defined(__linux__) && !defined(__GLIBC__))) && !defined(JEMALLOC_NO_RENAME) - # define JEMALLOC_SYS_NOTHROW - #else - # define JEMALLOC_SYS_NOTHROW JEMALLOC_NOTHROW diff --git a/dev-libs/jemalloc/files/jemalloc-5.3.0-dont-call-libstdcxx-internals.patch b/dev-libs/jemalloc/files/jemalloc-5.3.0-dont-call-libstdcxx-internals.patch deleted file mode 100644 index 096d6393cc6b..000000000000 --- a/dev-libs/jemalloc/files/jemalloc-5.3.0-dont-call-libstdcxx-internals.patch +++ /dev/null @@ -1,27 +0,0 @@ -https://bugs.gentoo.org/967868 - -From 5428f5818645a1181a61e37fbe753bf68dbd07af Mon Sep 17 00:00:00 2001 -From: Ted Rodgers <ted.d.rodgers@gmail.com> -Date: Mon, 22 Dec 2025 23:16:12 -0500 -Subject: [PATCH] Bug 967868: jemalloc_cpp.cpp patch remove compiler internal - detail - ---- - src/jemalloc_cpp.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/jemalloc_cpp.cpp b/src/jemalloc_cpp.cpp -index 451655f..d90a9f5 100644 ---- a/src/jemalloc_cpp.cpp -+++ b/src/jemalloc_cpp.cpp -@@ -87,7 +87,7 @@ handleOOM(std::size_t size, bool nothrow) { - } - - if (ptr == nullptr && !nothrow) -- std::__throw_bad_alloc(); -+ throw std::bad_alloc(); - return ptr; - } - --- -2.52.0 diff --git a/dev-libs/jemalloc/files/jemalloc-5.3.0-gcc15-make-check.patch b/dev-libs/jemalloc/files/jemalloc-5.3.0-gcc15-make-check.patch deleted file mode 100644 index 9af17efbbe71..000000000000 --- a/dev-libs/jemalloc/files/jemalloc-5.3.0-gcc15-make-check.patch +++ /dev/null @@ -1,24 +0,0 @@ -https://bugs.gentoo.org/955995 -From: Martin Jambor <mjambor@suse.cz> -Date: Wed, 30 Apr 2025 18:35:11 +0200 -Subject: Add -fno-builtin to CFLAGS when building integration tests -References: boo#1240665, https://github.com/jemalloc/jemalloc/issues/2823 -Upstream: tbd - -GCC 15 optimizes out allocations which aligned_alloc integration test -expects to fail. Using the -fno-builtin option prevents GCC from -treating malloc specially in this way and the test-suite to pass. - - -Index: jemalloc-5.3.0/Makefile.in -=================================================================== ---- jemalloc-5.3.0.orig/Makefile.in -+++ jemalloc-5.3.0/Makefile.in -@@ -654,6 +654,7 @@ uninstall: uninstall_doc - endif - - tests_unit: $(TESTS_UNIT:$(srcroot)%.c=$(objroot)%$(EXE)) -+tests_integration: CFLAGS += -fno-builtin - tests_integration: $(TESTS_INTEGRATION:$(srcroot)%.c=$(objroot)%$(EXE)) $(TESTS_INTEGRATION_CPP:$(srcroot)%.cpp=$(objroot)%$(EXE)) - tests_analyze: $(TESTS_ANALYZE:$(srcroot)%.c=$(objroot)%$(EXE)) - tests_stress: $(TESTS_STRESS:$(srcroot)%.c=$(objroot)%$(EXE)) diff --git a/dev-libs/jemalloc/files/jemalloc-5.3.0-gentoo-fixups.patch b/dev-libs/jemalloc/files/jemalloc-5.3.0-gentoo-fixups.patch deleted file mode 100644 index e500a63225f0..000000000000 --- a/dev-libs/jemalloc/files/jemalloc-5.3.0-gentoo-fixups.patch +++ /dev/null @@ -1,43 +0,0 @@ -This is jemalloc-5.2.0-gentoo-fixups.patch, rebased on top of upstream commit -https://github.com/jemalloc/jemalloc/commit/ed5fc14b28ca62a6. -From: Jory Pratt <anarchy@gentoo.org> -Date: Tue, 23 Apr 2019 10:04:19 -0500 -Subject: [PATCH] Don't override user cflags, disable html_doc from being - installed - -Signed-off-by: Jory Pratt <anarchy@gentoo.org> ---- a/Makefile.in -+++ b/Makefile.in -@@ -603,7 +603,7 @@ install_doc_man: build_doc_man - $(INSTALL) -v -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 - ---- a/configure.ac -+++ b/configure.ac -@@ -1220,21 +1220,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], diff --git a/dev-libs/jemalloc/jemalloc-5.3.0-r2.ebuild b/dev-libs/jemalloc/jemalloc-5.3.0-r2.ebuild deleted file mode 100644 index 64f1b30cc40f..000000000000 --- a/dev-libs/jemalloc/jemalloc-5.3.0-r2.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="8" - -inherit autotools multilib-minimal - -DESCRIPTION="Jemalloc is a general-purpose scalable concurrent allocator" -HOMEPAGE="http://jemalloc.net/ https://github.com/jemalloc/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 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" -IUSE="debug lazy-lock prof stats xmalloc" -HTML_DOCS=( doc/jemalloc.html ) -PATCHES=( - "${FILESDIR}/${PN}-5.3.0-gentoo-fixups.patch" - "${FILESDIR}/${PN}-5.3.0-backport-pr-2312.patch" - "${FILESDIR}/${PN}-5.3.0-backport-pr-2338.patch" - "${FILESDIR}/${PN}-5.3.0-aarch64-64kib-page-size.patch" # users can override by passing `--with-lg-pagesize=foo` - "${FILESDIR}/${PN}-5.3.0-dont-call-libstdcxx-internals.patch" -) - -MULTILIB_WRAPPED_HEADERS=( /usr/include/jemalloc/jemalloc.h ) - -src_prepare() { - default - eautoreconf -} - -multilib_src_configure() { - local myconf=( - $(use_enable debug) - $(use_enable lazy-lock) - $(use_enable prof) - $(use_enable stats) - $(use_enable xmalloc) - ) - - ECONF_SOURCE="${S}" econf "${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 - find "${ED}" -name '*.a' -delete || die -} diff --git a/dev-libs/jemalloc/jemalloc-5.3.0-r3.ebuild b/dev-libs/jemalloc/jemalloc-5.3.0-r3.ebuild deleted file mode 100644 index 9155c5148016..000000000000 --- a/dev-libs/jemalloc/jemalloc-5.3.0-r3.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="8" - -inherit autotools multilib-minimal - -DESCRIPTION="Jemalloc is a general-purpose scalable concurrent allocator" -HOMEPAGE="http://jemalloc.net/ https://github.com/jemalloc/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 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="debug lazy-lock prof stats xmalloc" -HTML_DOCS=( doc/jemalloc.html ) -PATCHES=( - "${FILESDIR}/${PN}-5.3.0-gentoo-fixups.patch" - "${FILESDIR}/${PN}-5.3.0-backport-pr-2312.patch" - "${FILESDIR}/${PN}-5.3.0-backport-pr-2338.patch" - "${FILESDIR}/${PN}-5.3.0-aarch64-64kib-page-size.patch" # users can override by passing `--with-lg-pagesize=foo` - "${FILESDIR}/${PN}-5.3.0-dont-call-libstdcxx-internals.patch" - "${FILESDIR}/${PN}-5.3.0-gcc15-make-check.patch" -) - -MULTILIB_WRAPPED_HEADERS=( /usr/include/jemalloc/jemalloc.h ) - -src_prepare() { - default - eautoreconf -} - -multilib_src_configure() { - local myconf=( - $(use_enable debug) - $(use_enable lazy-lock) - $(use_enable prof) - $(use_enable stats) - $(use_enable xmalloc) - ) - - ECONF_SOURCE="${S}" econf "${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 - find "${ED}" -name '*.a' -delete || die -} diff --git a/dev-libs/jemalloc/metadata.xml b/dev-libs/jemalloc/metadata.xml deleted file mode 100644 index 641f68313307..000000000000 --- a/dev-libs/jemalloc/metadata.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <!-- maintainer-needed --> - <use> - <flag name="lazy-lock">Enable lazy locking (only lock when multi-threaded)</flag> - <flag name="prof">Enable allocation profiling</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> |
