commit: c1bbbe478dad48e842ceb89f61a099ab0a5c5806 Author: Han Han <hanhanzhiyeqianke <AT> gmail <DOT> com> AuthorDate: Sat Jul 27 14:34:06 2019 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Wed Aug 7 20:25:53 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1bbbe47
dev-libs/jemalloc: Add USE flag prof Add USE flag prof to enable or disable allocation profiling. Signed-off-by: Han Han <hanhanzhiyeqianke <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/12556 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> dev-libs/jemalloc/jemalloc-5.0.1.ebuild | 3 ++- dev-libs/jemalloc/jemalloc-5.1.0.ebuild | 3 ++- dev-libs/jemalloc/jemalloc-5.2.0.ebuild | 3 ++- dev-libs/jemalloc/metadata.xml | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dev-libs/jemalloc/jemalloc-5.0.1.ebuild b/dev-libs/jemalloc/jemalloc-5.0.1.ebuild index f5ad09f06a6..ddad51b8e61 100644 --- a/dev-libs/jemalloc/jemalloc-5.0.1.ebuild +++ b/dev-libs/jemalloc/jemalloc-5.0.1.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://github.com/jemalloc/jemalloc/releases/download/${PV}/${P}.tar.b 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" +IUSE="debug hardened +hugepages lazy-lock prof 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" @@ -40,6 +40,7 @@ multilib_src_configure() { $(use_enable debug) \ $(use_enable lazy-lock) \ $(use_enable hugepages thp) \ + $(use_enable prof) \ $(use_enable stats) \ $(use_enable xmalloc) \ "${myconf[@]}" diff --git a/dev-libs/jemalloc/jemalloc-5.1.0.ebuild b/dev-libs/jemalloc/jemalloc-5.1.0.ebuild index 7eda36ea909..3a7b8d7c3de 100644 --- a/dev-libs/jemalloc/jemalloc-5.1.0.ebuild +++ b/dev-libs/jemalloc/jemalloc-5.1.0.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://github.com/jemalloc/jemalloc/releases/download/${PV}/${P}.tar.b 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 lazy-lock static-libs stats xmalloc" +IUSE="debug hardened lazy-lock prof 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" @@ -39,6 +39,7 @@ multilib_src_configure() { econf \ $(use_enable debug) \ $(use_enable lazy-lock) \ + $(use_enable prof) \ $(use_enable stats) \ $(use_enable xmalloc) \ "${myconf[@]}" diff --git a/dev-libs/jemalloc/jemalloc-5.2.0.ebuild b/dev-libs/jemalloc/jemalloc-5.2.0.ebuild index 16ced36e757..3e82a451db0 100644 --- a/dev-libs/jemalloc/jemalloc-5.2.0.ebuild +++ b/dev-libs/jemalloc/jemalloc-5.2.0.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://github.com/jemalloc/jemalloc/releases/download/${PV}/${P}.tar.b 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 lazy-lock static-libs stats xmalloc" +IUSE="debug hardened lazy-lock prof static-libs stats xmalloc" HTML_DOCS=( doc/jemalloc.html ) PATCHES=( "${FILESDIR}/${PN}-5.2.0-gentoo-fixups.patch" ) @@ -38,6 +38,7 @@ multilib_src_configure() { econf \ $(use_enable debug) \ $(use_enable lazy-lock) \ + $(use_enable prof) \ $(use_enable stats) \ $(use_enable xmalloc) \ "${myconf[@]}" diff --git a/dev-libs/jemalloc/metadata.xml b/dev-libs/jemalloc/metadata.xml index 848a0a7987d..14624ae1ff1 100644 --- a/dev-libs/jemalloc/metadata.xml +++ b/dev-libs/jemalloc/metadata.xml @@ -11,6 +11,7 @@ <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="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>
