From: "Haelwenn Monnier" <contact@hacktivis.me>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-libs/memkind/
Date: Tue, 7 Sep 2021 02:58:53 +0000 (UTC) [thread overview]
Message-ID: <1630823608.9d64d349f1b52d953d9cbb0378b5b9163893c3ad.lanodan@gentoo> (raw)
commit: 9d64d349f1b52d953d9cbb0378b5b9163893c3ad
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sun Sep 5 06:33:28 2021 +0000
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Sun Sep 5 06:33:28 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9d64d349
dev-libs/memkind: more useflags
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
...d-1.11.0-r1.ebuild => memkind-1.11.0-r2.ebuild} | 33 +++++++++++++++++++---
dev-libs/memkind/metadata.xml | 9 ++++++
2 files changed, 38 insertions(+), 4 deletions(-)
diff --git a/dev-libs/memkind/memkind-1.11.0-r1.ebuild b/dev-libs/memkind/memkind-1.11.0-r2.ebuild
similarity index 58%
rename from dev-libs/memkind/memkind-1.11.0-r1.ebuild
rename to dev-libs/memkind/memkind-1.11.0-r2.ebuild
index a3e239b54..45310e91a 100644
--- a/dev-libs/memkind/memkind-1.11.0-r1.ebuild
+++ b/dev-libs/memkind/memkind-1.11.0-r2.ebuild
@@ -14,10 +14,11 @@ KEYWORDS="~amd64"
LICENSE="BSD"
SLOT="0"
-IUSE="+heap-manager openmp secure test +tls" #daxctl
+IUSE="+daxctl debug decorators +heap-manager hwloc initial-exec-tls openmp secure test +tls"
RDEPEND="
- sys-block/ndctl
+ daxctl? ( sys-block/ndctl )
+ hwloc? ( sys-apps/hwloc )
sys-process/numactl
"
DEPEND="
@@ -29,6 +30,19 @@ PATCHES=( "${FILESDIR}/${PN}-respect-ar.patch" )
RESTRICT="test" # ERROR: ./test/test.sh requires a NUMA enabled system with more than one node.
#RESTRICT="!test? ( test )"
+pkg_pretend() {
+ linux-info_pkg_setup
+ CONFIG_CHECK_MODULES=""
+ if use daxctl; then
+ CONFIG_CHECK_MODULES+="DEV_DAX_KMEM "
+ fi
+ if linux_config_exists; then
+ for module in ${CONFIG_CHECK_MODULES}; do
+ linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled"
+ done
+ fi
+}
+
src_prepare() {
default
eautoreconf
@@ -38,11 +52,16 @@ src_prepare() {
src_configure() {
tc-export AR
local myconf=(
- --disable-silent-rules
+ --disable-debug
+ --disable-gcov
--enable-shared
--enable-static
- --enable-daxctl
+ $(use_enable daxctl)
+ $(use_enable decorators)
+ $(use_enable debug debug-jemalloc)
$(use_enable heap-manager)
+ $(use_enable hwloc)
+ $(use_enable initial-exec-tls memkind-initial-exec-tls)
$(use_enable openmp)
$(use_enable secure)
$(use_enable tls)
@@ -50,6 +69,12 @@ src_configure() {
econf "${myconf[@]}"
}
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+ find "${ED}" -name '*.a' -delete || die
+}
+
src_test() {
addwrite /proc/sys/vm/nr_hugepages
echo 3000 > /proc/sys/vm/nr_hugepages
diff --git a/dev-libs/memkind/metadata.xml b/dev-libs/memkind/metadata.xml
index 85632a06d..1c0d07d52 100644
--- a/dev-libs/memkind/metadata.xml
+++ b/dev-libs/memkind/metadata.xml
@@ -1,16 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
+ <longdescription lang="en">
+The memkind library is a user extensible heap manager built on top of jemalloc which enables control of memory characteristics and a partitioning of the heap between kinds of memory. The kinds of memory are defined by operating system memory policies that have been applied to virtual address ranges. Memory characteristics supported by memkind without user extension include control of NUMA and page size features. The jemalloc non-standard interface has been extended to enable specialized arenas to make requests for virtual memory from the operating system through the memkind partition interface. Through the other memkind interfaces the user can control and extend memory partition features and allocate memory while selecting enabled features. Memkind interface allows to create and control file-backed memory (PMEM kind) on specified device.
+ </longdescription>
<maintainer type="person">
<description>co-maintainers welcome</description>
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<upstream>
+ <bugs-to>https://github.com/memkind/memkind/issues</bugs-to>
<remote-id type="github">memkind/memkind</remote-id>
</upstream>
<use>
+ <flag name="daxctl">Build library with daxctl support</flag>
+ <flag name="debug">Build debugging jemalloc code</flag>
+ <flag name="decorators">Enable decorators</flag>
<flag name="heap-manager">Allow switching allocator at runtime</flag>
+ <flag name="hwloc">Build library with hwloc support</flag>
+ <flag name="initial-exec-tls">Build library with initial-exec-tls support</flag>
<flag name="secure">Build libraries with security enhancements</flag>
<flag name="tls">Enable thread local storage</flag>
</use>
next reply other threads:[~2021-09-07 2:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-07 2:58 Haelwenn Monnier [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-05-29 18:29 [gentoo-commits] repo/proj/guru:master commit in: dev-libs/memkind/ Andrew Ammerlaan
2022-05-29 18:29 Andrew Ammerlaan
2022-03-26 11:53 Andrew Ammerlaan
2021-06-30 19:39 Florian Schmaus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1630823608.9d64d349f1b52d953d9cbb0378b5b9163893c3ad.lanodan@gentoo \
--to=contact@hacktivis.me \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox