summaryrefslogtreecommitdiff
path: root/sys-process/numactl
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
commit0f558761aa2dee1017b4751e4017205e015a9560 (patch)
tree037df795519468a25d9362b4e95cdaeb84eb1cf9 /sys-process/numactl
parent752d6256e5204b958b0ef7905675a940b5e9172f (diff)
gentoo resync : 29.12.2022
Diffstat (limited to 'sys-process/numactl')
-rw-r--r--sys-process/numactl/Manifest3
-rw-r--r--sys-process/numactl/numactl-2.0.14-r1.ebuild68
-rw-r--r--sys-process/numactl/numactl-9999.ebuild19
3 files changed, 78 insertions, 12 deletions
diff --git a/sys-process/numactl/Manifest b/sys-process/numactl/Manifest
index 9b36df31d6f3..b268021223c4 100644
--- a/sys-process/numactl/Manifest
+++ b/sys-process/numactl/Manifest
@@ -2,6 +2,7 @@ AUX numactl-2.0.10-numademo-cflags.patch 504 BLAKE2B f2346a298b86b9c667d0d9550af
AUX numactl-2.0.14-latomic.patch 1657 BLAKE2B fbaec11307df3fd619254f5f1f253c856169390ec75e1e83b9c3c3b8c76a4c5c48c099496b2aea6dacedeb9c1a9f2d8991621d9f5e1c32a0f1f533968e905c45 SHA512 c699b6de2b66dc9e37bc88406e802183d600fc177cc36ff7699df5c0cc465bb3e262a87d7ad37ee35344b3f581da576dca7900640f57d65b2ad5429c422acbc3
AUX numactl-2.0.14-numademo-cflags.patch 501 BLAKE2B 23eb5a93f07edcd67d3b964bd3b48469ec4316e64a9b1641b3dc92e299f03b4f5ec4a31154236fb811fc613da5e8bdd9b401238f6da883f1818f67ab1800ebec SHA512 0d58314ee1454add2d4d35114c5dca0d4785ecd09700f041ad312e7aa0b2d23aa1c3bc0ae01a33db901252081509de45abce690acb3c6ae3f0d9393903739386
DIST numactl-2.0.14.tar.gz 439000 BLAKE2B 5f2abe25061ac29ecad8a6b24fe800d72c3538d9a155358f4b329ed1140053c7dbd93f01891904f76db94ed01113a34b4ebcbbf40e4060caf747958785ac9590 SHA512 28b95985d6b2f26c5f6f15fe235224c998c86f534adf5fdaa355a292cf2fd65515c91ba2a76c899d552d439b18ea1209a1712bd6755f8ee3a442f3935993b2e6
+EBUILD numactl-2.0.14-r1.ebuild 1705 BLAKE2B 8c69dff00334ccd3f62afb61768927456ff2beaa80f2f40ceea56f3d7bae1d295e73273455125bb2cdd3ddb054969fda193fb837282531f84494ac04b32a4173 SHA512 50d704c7433b8039bad8e559eb972d24c2a864bbfa82a5eab664caf181001da92bc997c5052afbad0995211155e545a7a23d1f99e1c5e3b8090e3f460be8b11e
EBUILD numactl-2.0.14.ebuild 1850 BLAKE2B 79a112c3115a49bcf57435892b4f2b8907e9a131f5c4c095ba5f564fd31720041cf3e11db1ba63dcce36ad4e41c3aa0af470942583d7f89c20cac0043ebcb05f SHA512 0b795f1fd010e060ab3b3b719aca58c1584d06cd59110551b29330de5ac016624aba367b03a1605f11d398f360ff831c5a40027e220c7e0c0a28004bf0cc82c0
-EBUILD numactl-9999.ebuild 1793 BLAKE2B a60630e87e88a1fc9036a87e87e9f8f39ba73cbee908d921031ddfa41f40d6bab94be02d4ee882b8e544144f9dbed28875fc80e9a3342179b704e163127d45ee SHA512 efd5417286f3510781eb3606107524c5b20db291bed4ab36b86ddb196e69dead0f372440f1072c0fe6f939bb15148330ed1ad9fc98dca097abcaec7a611bb80c
+EBUILD numactl-9999.ebuild 1663 BLAKE2B a2e4d0f75f12f3d700a18b3481b52706dbe6fb0fe02581beb0621e7f05ff9a6620b9ad3c40dce523c732766ab391af215b654efbee109c0fc0872da6220c56f5 SHA512 32b9f789352e35bd79b05ea6b646565b360e80c50afb66524b8f2e7b0c50617b77c286a1c9c7c7ea78a3b2d57d21ca766da38674810634c65a4c512d0ca55c18
MISC metadata.xml 338 BLAKE2B f07f6fb58a52cc75df1b0aa14db593310004028277cafc3d0dbb96b6e993d1c6fdb1da77897906aa5542bd4dfd122718753f490b28a9848b3a075110ce1b7998 SHA512 3fd437a0f7ac273e48b26e5f530c46cbdf4f27c1b28f886d0b1543e7b781479cbaea57e93ab2575d0efc6cb355d4c310f0887203ed82e76c2e6b0e4152f6fdda
diff --git a/sys-process/numactl/numactl-2.0.14-r1.ebuild b/sys-process/numactl/numactl-2.0.14-r1.ebuild
new file mode 100644
index 000000000000..d05f47076bb7
--- /dev/null
+++ b/sys-process/numactl/numactl-2.0.14-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="Utilities and libraries for NUMA systems"
+HOMEPAGE="https://github.com/numactl/numactl"
+if [[ ${PV} == 9999 ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/numactl/numactl.git"
+else
+ SRC_URI="https://github.com/numactl/numactl/releases/download/v${PV}/${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="static-libs"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.14-latomic.patch
+ "${FILESDIR}"/${PN}-2.0.14-numademo-cflags.patch # bug #540856
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+
+ # We need to copy the sources or else tests will fail
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" econf $(use_enable static-libs static)
+}
+
+multilib_src_compile() {
+ multilib_is_native_abi && default || emake libnuma.la
+}
+
+multilib_src_test() {
+ if multilib_is_native_abi ; then
+ if [[ -d /sys/devices/system/node ]] ; then
+ einfo "The only generically safe test is regress2."
+ einfo "The other test cases require 2 NUMA nodes."
+ emake regress2
+ else
+ ewarn "You do not have baseline NUMA support in your kernel, skipping tests."
+ fi
+ fi
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" \
+ install$(multilib_is_native_abi || echo "-libLTLIBRARIES install-includeHEADERS")
+ find "${ED}"/usr/ -type f -name libnuma.la -delete || die
+}
+
+multilib_src_install_all() {
+ local DOCS=( README.md )
+ einstalldocs
+
+ # Delete man pages provided by the man-pages package, bug #238805
+ rm -r "${ED}"/usr/share/man/man[25] || die
+}
diff --git a/sys-process/numactl/numactl-9999.ebuild b/sys-process/numactl/numactl-9999.ebuild
index 52aa4083497c..75c8f3695219 100644
--- a/sys-process/numactl/numactl-9999.ebuild
+++ b/sys-process/numactl/numactl-9999.ebuild
@@ -1,19 +1,18 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-inherit autotools flag-o-matic multilib-minimal
+inherit autotools multilib-minimal
DESCRIPTION="Utilities and libraries for NUMA systems"
HOMEPAGE="https://github.com/numactl/numactl"
-if [[ "${PV}" == 9999 ]] ; then
+if [[ ${PV} == 9999 ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/numactl/numactl.git"
else
SRC_URI="https://github.com/numactl/numactl/releases/download/v${PV}/${P}.tar.gz"
- # ARM lacks the __NR_migrate_pages syscall.
- KEYWORDS="~amd64 -arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~x86 ~amd64-linux"
+ KEYWORDS="~alpha ~amd64 ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux"
fi
LICENSE="GPL-2"
@@ -21,17 +20,14 @@ SLOT="0"
IUSE="static-libs"
PATCHES=(
- "${FILESDIR}"/${PN}-2.0.10-numademo-cflags.patch #540856
+ "${FILESDIR}"/${PN}-2.0.14-numademo-cflags.patch # bug #540856
)
src_prepare() {
default
- # lto not supported yet
- # gcc-9 with -flto leads to link failures: #692254
- filter-flags -flto*
-
eautoreconf
+
# We need to copy the sources or else tests will fail
multilib_copy_sources
}
@@ -65,6 +61,7 @@ multilib_src_install() {
multilib_src_install_all() {
local DOCS=( README.md )
einstalldocs
- # delete man pages provided by the man-pages package #238805
+
+ # Delete man pages provided by the man-pages package, bug #238805
rm -r "${ED}"/usr/share/man/man[25] || die
}