From: Han Han Date: Sat, 27 Jul 2019 14:34:06 +0000 (+0800) Subject: dev-libs/jemalloc: Add USE flag prof X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=c1bbbe478dad48e842ceb89f61a099ab0a5c5806;p=gentoo.git dev-libs/jemalloc: Add USE flag prof Add USE flag prof to enable or disable allocation profiling. Signed-off-by: Han Han Closes: https://github.com/gentoo/gentoo/pull/12556 Signed-off-by: Thomas Deutschmann --- diff --git a/dev-libs/jemalloc/jemalloc-5.0.1.ebuild b/dev-libs/jemalloc/jemalloc-5.0.1.ebuild index f5ad09f06a68..ddad51b8e619 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 7eda36ea909c..3a7b8d7c3def 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 16ced36e7579..3e82a451db07 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 848a0a7987dd..14624ae1ff1b 100644 --- a/dev-libs/jemalloc/metadata.xml +++ b/dev-libs/jemalloc/metadata.xml @@ -11,6 +11,7 @@ Enable transparent huge page support Enable lazy locking (only lock when multi-threaded) + Enable allocation profiling Enable statistics calculation/reporting Add support for xmalloc (abort-on-out-of-memory)