[gentoo-commits] repo/proj/guru:master commit in: dev-libs/memkind/

2022-05-29 Thread Andrew Ammerlaan
commit: 77c09001ebcb2ec3bc97bc8fcc60c37c64df2a8e
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sat May 28 23:35:10 2022 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Sat May 28 23:35:10 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=77c09001

dev-libs/memkind: drop 1.11.0-r2

Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-libs/memkind/Manifest |  1 -
 dev-libs/memkind/memkind-1.11.0-r2.ebuild | 82 ---
 2 files changed, 83 deletions(-)

diff --git a/dev-libs/memkind/Manifest b/dev-libs/memkind/Manifest
index a753c820a..cb2fa9243 100644
--- a/dev-libs/memkind/Manifest
+++ b/dev-libs/memkind/Manifest
@@ -1,2 +1 @@
-DIST memkind-1.11.0.tar.gz 1072455 BLAKE2B 
2de2cf053687ba2150f694e8c4143eeca74fc377feee2b6892067b661d8c58d7d5fcacb021fc92a47dad27f52aa4cbc6408cfede3141ab1f8ae81147b49aa6a7
 SHA512 
0b5bde35b3565c730fa954aebfe2ccbecd1e120c920d05acdbc0a74914731a90aeef8d57101f1f47bd35fd310bc143fa517bc871b32e592b8412384ff652fc05
 DIST memkind-1.13.0.tar.gz 767 BLAKE2B 
fb2b0ca70b6da32b2bf42cba68f549c279f301f2c9b2eb2f7dfcb2909105bb1eb84bd6abdf15dfcb5f45a5e0bab7fbd0aef95ce090b06b02bc8ae099bdf1b0ca
 SHA512 
509d49e3c67321496b322469d4bb13aa8b9038e94dc9bdfb379c38e86a5705ba13bc015443da8291be49711e14bce9845b697f62cfcc981168f255f9fb515b0e

diff --git a/dev-libs/memkind/memkind-1.11.0-r2.ebuild 
b/dev-libs/memkind/memkind-1.11.0-r2.ebuild
deleted file mode 100644
index f6d2be77a..0
--- a/dev-libs/memkind/memkind-1.11.0-r2.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8..10} pypy3 )
-
-inherit autotools linux-info python-any-r1 toolchain-funcs
-
-DESCRIPTION="user extensible heap manager built on top of jemalloc"
-HOMEPAGE="https://memkind.github.io/memkind/;
-SRC_URI="https://github.com/memkind/memkind/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-KEYWORDS="~amd64"
-
-LICENSE="BSD"
-SLOT="0"
-IUSE="+daxctl debug decorators +heap-manager hwloc initial-exec-tls openmp 
secure test +tls"
-
-RDEPEND="
-   daxctl? ( sys-block/ndctl )
-   hwloc? ( sys-apps/hwloc )
-   sys-process/numactl
-"
-DEPEND="
-   ${RDEPEND}
-   ${PYTHON_DEPS}
-"
-
-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
-   cd jemalloc && eautoreconf
-}
-
-src_configure() {
-   tc-export AR
-   local myconf=(
-   --disable-debug
-   --disable-gcov
-   --enable-shared
-   --enable-static
-   $(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)
-   )
-   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
-   emake check
-}



[gentoo-commits] repo/proj/guru:master commit in: dev-libs/memkind/

2022-05-29 Thread Andrew Ammerlaan
commit: 3032d87db8dfba40d929032d91843103f7a1d317
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sat May 28 23:34:59 2022 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Sat May 28 23:34:59 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3032d87d

dev-libs/memkind: enable py3.11

Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-libs/memkind/memkind-1.13.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/memkind/memkind-1.13.0.ebuild 
b/dev-libs/memkind/memkind-1.13.0.ebuild
index a7059c9f0..181be56bb 100644
--- a/dev-libs/memkind/memkind-1.13.0.ebuild
+++ b/dev-libs/memkind/memkind-1.13.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{8..10} pypy3 )
+PYTHON_COMPAT=( python3_{8..11} pypy3 )
 
 inherit autotools linux-info python-any-r1 toolchain-funcs
 



[gentoo-commits] repo/proj/guru:master commit in: dev-libs/memkind/

2022-03-26 Thread Andrew Ammerlaan
commit: daf9eab9a7d7834f98dbe348a9714c5609a6797f
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sat Mar 26 07:28:19 2022 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Sat Mar 26 07:28:19 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=daf9eab9

dev-libs/memkind: add 1.13.0

Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-libs/memkind/Manifest  |  1 +
 dev-libs/memkind/memkind-1.13.0.ebuild | 83 ++
 dev-libs/memkind/metadata.xml  |  1 +
 3 files changed, 85 insertions(+)

diff --git a/dev-libs/memkind/Manifest b/dev-libs/memkind/Manifest
index ccd278dda..a753c820a 100644
--- a/dev-libs/memkind/Manifest
+++ b/dev-libs/memkind/Manifest
@@ -1 +1,2 @@
 DIST memkind-1.11.0.tar.gz 1072455 BLAKE2B 
2de2cf053687ba2150f694e8c4143eeca74fc377feee2b6892067b661d8c58d7d5fcacb021fc92a47dad27f52aa4cbc6408cfede3141ab1f8ae81147b49aa6a7
 SHA512 
0b5bde35b3565c730fa954aebfe2ccbecd1e120c920d05acdbc0a74914731a90aeef8d57101f1f47bd35fd310bc143fa517bc871b32e592b8412384ff652fc05
+DIST memkind-1.13.0.tar.gz 767 BLAKE2B 
fb2b0ca70b6da32b2bf42cba68f549c279f301f2c9b2eb2f7dfcb2909105bb1eb84bd6abdf15dfcb5f45a5e0bab7fbd0aef95ce090b06b02bc8ae099bdf1b0ca
 SHA512 
509d49e3c67321496b322469d4bb13aa8b9038e94dc9bdfb379c38e86a5705ba13bc015443da8291be49711e14bce9845b697f62cfcc981168f255f9fb515b0e

diff --git a/dev-libs/memkind/memkind-1.13.0.ebuild 
b/dev-libs/memkind/memkind-1.13.0.ebuild
new file mode 100644
index 0..ac1b42959
--- /dev/null
+++ b/dev-libs/memkind/memkind-1.13.0.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+
+inherit autotools linux-info python-any-r1 toolchain-funcs
+
+DESCRIPTION="user extensible heap manager built on top of jemalloc"
+HOMEPAGE="https://memkind.github.io/memkind;
+SRC_URI="https://github.com/memkind/memkind/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+KEYWORDS="~amd64"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="+daxctl debug decorators filelog +heap-manager hwloc initial-exec-tls 
openmp secure test +tls"
+
+RDEPEND="
+   daxctl? ( sys-block/ndctl )
+   hwloc? ( sys-apps/hwloc )
+   sys-process/numactl
+"
+DEPEND="
+   ${RDEPEND}
+   ${PYTHON_DEPS}
+"
+
+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
+   cd jemalloc && eautoreconf
+}
+
+src_configure() {
+   tc-export AR
+   local myconf=(
+   --disable-debug
+   --disable-gcov
+   --enable-shared
+   --enable-static
+   $(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 logging-to-file filelog)
+   $(use_enable openmp)
+   $(use_enable secure)
+   $(use_enable tls)
+   )
+   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
+   emake check
+}

diff --git a/dev-libs/memkind/metadata.xml b/dev-libs/memkind/metadata.xml
index 1c0d07d52..c063cd6ec 100644
--- a/dev-libs/memkind/metadata.xml
+++ b/dev-libs/memkind/metadata.xml
@@ -19,6 +19,7 @@ The memkind library is a user extensible heap manager built 
on top of jemalloc w
Enable decorators
Allow switching allocator at 
runtime
Build library with hwloc support
+   Log to file for each process
Build library with 
initial-exec-tls support
Build libraries with security 
enhancements
Enable thread local storage



[gentoo-commits] repo/proj/guru:master commit in: dev-libs/memkind/, dev-libs/memkind/files/

2021-09-06 Thread Haelwenn Monnier
commit: 1d13a0a388f3cb468d2c1b98395c1f4e3198f2f6
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sun Sep  5 05:42:21 2021 +
Commit: Haelwenn Monnier  hacktivis  me>
CommitDate: Sun Sep  5 05:42:21 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1d13a0a3

dev-libs/memkind: respect AR

Closes: https://bugs.gentoo.org/799452
Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-libs/memkind/files/memkind-respect-ar.patch | 11 +++
 dev-libs/memkind/memkind-1.11.0-r1.ebuild   |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/dev-libs/memkind/files/memkind-respect-ar.patch 
b/dev-libs/memkind/files/memkind-respect-ar.patch
new file mode 100644
index 0..0318e2d8d
--- /dev/null
+++ b/dev-libs/memkind/files/memkind-respect-ar.patch
@@ -0,0 +1,11 @@
+--- a/Makefile.am
 b/Makefile.am
+@@ -518,7 +518,7 @@
+ endef
+ 
+ static_lib: libmemkind.la
+-  bash -c "ar -M < <(echo -e '$(ar_prog)')"
++  bash -c "${AR} -M < <(echo -e '$(ar_prog)')"
+   cp libmemkind.a .libs/
+   rm libmemkind.a
+ 

diff --git a/dev-libs/memkind/memkind-1.11.0-r1.ebuild 
b/dev-libs/memkind/memkind-1.11.0-r1.ebuild
index d5aea5c96..a3e239b54 100644
--- a/dev-libs/memkind/memkind-1.11.0-r1.ebuild
+++ b/dev-libs/memkind/memkind-1.11.0-r1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 PYTHON_COMPAT=( python3_{8..10} pypy3 )
 
-inherit autotools linux-info python-any-r1
+inherit autotools linux-info python-any-r1 toolchain-funcs
 
 DESCRIPTION="user extensible heap manager built on top of jemalloc"
 HOMEPAGE="https://memkind.github.io/memkind;
@@ -25,6 +25,7 @@ DEPEND="
${PYTHON_DEPS}
 "
 
+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 )"
 
@@ -35,6 +36,7 @@ src_prepare() {
 }
 
 src_configure() {
+   tc-export AR
local myconf=(
--disable-silent-rules
--enable-shared



[gentoo-commits] repo/proj/guru:master commit in: dev-libs/memkind/

2021-09-06 Thread Haelwenn Monnier
commit: 9d64d349f1b52d953d9cbb0378b5b9163893c3ad
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sun Sep  5 06:33:28 2021 +
Commit: Haelwenn Monnier  hacktivis  me>
CommitDate: Sun Sep  5 06:33:28 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9d64d349

dev-libs/memkind: more useflags

Signed-off-by: Alessandro Barbieri  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 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
 
+   
+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.
+   

co-maintainers welcome
lssndrbarbi...@gmail.com
Alessandro Barbieri


+   https://github.com/memkind/memkind/issues
memkind/memkind


+   Build library with daxctl support
+   Build debugging jemalloc code
+   Enable decorators
Allow switching allocator at 
runtime
+   Build library with hwloc support
+   Build library with 
initial-exec-tls support
Build libraries with security 
enhancements
Enable thread local storage




[gentoo-commits] repo/proj/guru:master commit in: dev-libs/memkind/

2021-06-30 Thread Florian Schmaus
commit: d05258d472ac7be5d185b4f32241b4359dea2cc5
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Wed Jun 30 16:56:43 2021 +
Commit: Florian Schmaus  gentoo  org>
CommitDate: Wed Jun 30 16:56:43 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d05258d4

dev-libs/memkind: initial import

Signed-off-by: Alessandro Barbieri  gmail.com>

 dev-libs/memkind/Manifest  |  1 +
 dev-libs/memkind/memkind-1.11.0.ebuild | 48 ++
 dev-libs/memkind/metadata.xml  | 17 
 3 files changed, 66 insertions(+)

diff --git a/dev-libs/memkind/Manifest b/dev-libs/memkind/Manifest
new file mode 100644
index 0..ccd278dda
--- /dev/null
+++ b/dev-libs/memkind/Manifest
@@ -0,0 +1 @@
+DIST memkind-1.11.0.tar.gz 1072455 BLAKE2B 
2de2cf053687ba2150f694e8c4143eeca74fc377feee2b6892067b661d8c58d7d5fcacb021fc92a47dad27f52aa4cbc6408cfede3141ab1f8ae81147b49aa6a7
 SHA512 
0b5bde35b3565c730fa954aebfe2ccbecd1e120c920d05acdbc0a74914731a90aeef8d57101f1f47bd35fd310bc143fa517bc871b32e592b8412384ff652fc05

diff --git a/dev-libs/memkind/memkind-1.11.0.ebuild 
b/dev-libs/memkind/memkind-1.11.0.ebuild
new file mode 100644
index 0..2eec152e7
--- /dev/null
+++ b/dev-libs/memkind/memkind-1.11.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools linux-info
+
+DESCRIPTION="user extensible heap manager built on top of jemalloc"
+HOMEPAGE="https://memkind.github.io/memkind;
+SRC_URI="https://github.com/memkind/memkind/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+KEYWORDS="~amd64"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="+heap-manager openmp secure +tls" #daxctl
+#RESTRICT="test"
+
+DEPEND="
+   sys-block/ndctl
+   sys-process/numactl
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+   default
+   eautoreconf
+   cd jemalloc && eautoreconf
+}
+
+src_configure() {
+   local myconf=(
+   --disable-silent-rules
+   --enable-shared
+   --enable-static
+   --enable-daxctl
+   $(use_enable heap-manager)
+   $(use_enable openmp)
+   $(use_enable secure)
+   $(use_enable tls)
+   )
+   econf "${myconf[@]}"
+}
+
+src_test() {
+   addwrite /proc/sys/vm/nr_hugepages
+   echo 3000 > /proc/sys/vm/nr_hugepages
+   emake check
+}

diff --git a/dev-libs/memkind/metadata.xml b/dev-libs/memkind/metadata.xml
new file mode 100644
index 0..85632a06d
--- /dev/null
+++ b/dev-libs/memkind/metadata.xml
@@ -0,0 +1,17 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   co-maintainers welcome
+   lssndrbarbi...@gmail.com
+   Alessandro Barbieri
+   
+   
+   memkind/memkind
+   
+   
+   Allow switching allocator at 
runtime
+   Build libraries with security 
enhancements
+   Enable thread local storage
+   
+