summaryrefslogtreecommitdiff
path: root/sys-process
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-07-23 08:52:39 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-07-23 08:52:39 +0100
commitc9aaa2ff911ee95adca22bcd9264e8ecfa3d5149 (patch)
tree32153e53b9929840fafd6a0bf95110df4c2885df /sys-process
parentbc8e1f28a81cb6ef9bc3fd1103842690c4320ce4 (diff)
gentoo auto-resync : 23:07:2023 - 08:52:38
Diffstat (limited to 'sys-process')
-rw-r--r--sys-process/Manifest.gzbin10133 -> 10137 bytes
-rw-r--r--sys-process/numactl/Manifest3
-rw-r--r--sys-process/numactl/files/numactl-2.0.16-configure-check-for-largefile-support.patch27
-rw-r--r--sys-process/numactl/files/numactl-2.0.16-replace-stat64-with-normal-functions.patch65
-rw-r--r--sys-process/numactl/numactl-2.0.16-r1.ebuild69
5 files changed, 164 insertions, 0 deletions
diff --git a/sys-process/Manifest.gz b/sys-process/Manifest.gz
index 86d30c586eda..862d19cc6c0b 100644
--- a/sys-process/Manifest.gz
+++ b/sys-process/Manifest.gz
Binary files differ
diff --git a/sys-process/numactl/Manifest b/sys-process/numactl/Manifest
index bca2ac4bd1a4..520381167cdd 100644
--- a/sys-process/numactl/Manifest
+++ b/sys-process/numactl/Manifest
@@ -1,9 +1,12 @@
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
+AUX numactl-2.0.16-configure-check-for-largefile-support.patch 696 BLAKE2B 2529cbffcd4081d95337d1c939070407b85acb3ac9ac3c737673d427e40bd569d70ee95277b356bbd4146d4a20e5c91aa9441c33ade21a32451bf0fb17896007 SHA512 cd1bc8fc6b35c4edaf1a0c5fe62c680931545261bade679ac1e827bcee0140af0b38b200a444dbd3e8b106397bf8ec9dad1829b3d0a4df63d7d36d59b2e2192a
+AUX numactl-2.0.16-replace-stat64-with-normal-functions.patch 2197 BLAKE2B 880a78806a1671799659e372166bc9069a7fdd80289a8405237f0671dbf3c30672462dd13d190122636c070c16818f5e403e1a22ce90d0a381b0e813a8c1f79e SHA512 201cf17c7251ccfa4c939eb724bd556a946199433cc583731e2572892845ca3862d3c5006c4cc09dc9ae051658f49372c0f03816fbe513b54956a47a98b61ee4
DIST numactl-2.0.14.tar.gz 439000 BLAKE2B 5f2abe25061ac29ecad8a6b24fe800d72c3538d9a155358f4b329ed1140053c7dbd93f01891904f76db94ed01113a34b4ebcbbf40e4060caf747958785ac9590 SHA512 28b95985d6b2f26c5f6f15fe235224c998c86f534adf5fdaa355a292cf2fd65515c91ba2a76c899d552d439b18ea1209a1712bd6755f8ee3a442f3935993b2e6
DIST numactl-2.0.16.tar.gz 450003 BLAKE2B 3ac38129b914d62958182020f57969878f2817bd3155c6b5362a66f96deb2058268fa8004729a2d3333642c8c0bee73a451030a287958fa145247b7685e426aa SHA512 6e17724567c363a08994fe7f5569b6ec62bd1ae608244945fddcb2d6a212b08140340f0d862595ba4016fcba95193e851cb286798f685d314b4c72687af6d879
EBUILD numactl-2.0.14-r1.ebuild 1972 BLAKE2B e29104089d6ae76dafffb25ab20390f5be3fcc10422c4104011e0a0f105b20ae7cee136e0932ed6e229d5430a2e1c3f71e8337ac523bd5e1cf40288764c5b81e SHA512 bf64f82e8a41736d424fb24b566b383a8c80157cc15e208896ff4aa2229c5b042b3b51c958002ce1fc000432b53793f4493e61e8e4460f030f63753a81fda311
EBUILD numactl-2.0.14.ebuild 1841 BLAKE2B f6c3eca6f949ab769f37b1ee43eddf5fbf87f375fe812da37620f57d04aa00b78df120cda707e17dd6557653aebb3af9cafeba6bee94baa6233c6248be4198e2 SHA512 b3116b67733df5b4feea18e85cdf979e553205445f232a6e67391e8a9d902e39310c121e5ffc4bffc2689baf46dd3043f039d0c976e0b3049b4c3e978c43df5b
+EBUILD numactl-2.0.16-r1.ebuild 1834 BLAKE2B c022de59ac14e57cac34fdb250d7e15e12bdf21f0fb8a34c6286286151aa5a921d719a921db148902c59b20b656c75e664ac539dec54369fbeb3fe978eb0cb9a SHA512 deb291096ae80935e6fb403376252b1ac3e374d0d0b92a458c11328c792b5d4fd30dbc4ef8db00812320f6cfb4e99025f7365cb5fc126dbb63d1d0e3bf86052d
EBUILD numactl-2.0.16.ebuild 1657 BLAKE2B 6237fdad80b7444184cd0f8edbfbed1e4628f847981caf96a1df8ddd8b5a6c13f3c5a42af5e5c05ff668e6fd62b5ba922e1b31e175234301a14f4bd409a507b2 SHA512 c46c87d99142a8730d29f9fb74d17b1a952425a2c296518ca6df885e692ceef992cc024a0d0a1b0d7704cfada06045aa0a790dcce32e2d18ff925e7fdf74c57b
EBUILD numactl-9999.ebuild 1663 BLAKE2B a2e4d0f75f12f3d700a18b3481b52706dbe6fb0fe02581beb0621e7f05ff9a6620b9ad3c40dce523c732766ab391af215b654efbee109c0fc0872da6220c56f5 SHA512 32b9f789352e35bd79b05ea6b646565b360e80c50afb66524b8f2e7b0c50617b77c286a1c9c7c7ea78a3b2d57d21ca766da38674810634c65a4c512d0ca55c18
MISC metadata.xml 338 BLAKE2B f07f6fb58a52cc75df1b0aa14db593310004028277cafc3d0dbb96b6e993d1c6fdb1da77897906aa5542bd4dfd122718753f490b28a9848b3a075110ce1b7998 SHA512 3fd437a0f7ac273e48b26e5f530c46cbdf4f27c1b28f886d0b1543e7b781479cbaea57e93ab2575d0efc6cb355d4c310f0887203ed82e76c2e6b0e4152f6fdda
diff --git a/sys-process/numactl/files/numactl-2.0.16-configure-check-for-largefile-support.patch b/sys-process/numactl/files/numactl-2.0.16-configure-check-for-largefile-support.patch
new file mode 100644
index 000000000000..f22ba23999c1
--- /dev/null
+++ b/sys-process/numactl/files/numactl-2.0.16-configure-check-for-largefile-support.patch
@@ -0,0 +1,27 @@
+https://github.com/numactl/numactl/commit/246b0e695644ad614f6c324505d7cfa6e74f1fc1.patch
+From: Khem Raj <raj.khem@gmail.com>
+Date: Thu, 15 Dec 2022 12:10:37 -0800
+Subject: [PATCH] configure: Check for largefile support
+
+This helps in using 64bit versions of off_t related functions
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ configure.ac | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index ebf9917..6139132 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -14,6 +14,9 @@ LT_INIT
+
+ AC_PROG_CC
+
++# Check for enabling LFS support
++AC_SYS_LARGEFILE
++
+ # Override CFLAGS so that we can specify custom CFLAGS for numademo.
+ AX_AM_OVERRIDE_VAR([CFLAGS])
+
+
diff --git a/sys-process/numactl/files/numactl-2.0.16-replace-stat64-with-normal-functions.patch b/sys-process/numactl/files/numactl-2.0.16-replace-stat64-with-normal-functions.patch
new file mode 100644
index 000000000000..9b08a55c2e77
--- /dev/null
+++ b/sys-process/numactl/files/numactl-2.0.16-replace-stat64-with-normal-functions.patch
@@ -0,0 +1,65 @@
+https://github.com/numactl/numactl/commit/851bbd5b963a7a5d95b8fe3102cf05972dc72655.patch
+From: Khem Raj <raj.khem@gmail.com>
+Date: Thu, 15 Dec 2022 12:11:13 -0800
+Subject: [PATCH] shm.c: Replace stat64/fstat64/ftruncate64mmap64 with normal
+ functions
+
+These functions were needed when _FILE_OFFSET_BITS was not 64, using
+AC_SYS_LARGEFILE will detect it correctly and make the normal variants
+of these functions behave same as their *64 counterparts.
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ shm.c | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/shm.c b/shm.c
+index 20537d9..5d0d1ab 100644
+--- a/shm.c
++++ b/shm.c
+@@ -24,8 +24,8 @@
+ #include <sys/mman.h>
+ #include <sys/ipc.h>
+ #include <sys/shm.h>
+-#include <sys/fcntl.h>
+ #include <sys/stat.h>
++#include <fcntl.h>
+ #include <stdarg.h>
+ #include <errno.h>
+ #include <unistd.h>
+@@ -135,7 +135,7 @@ void attach_sysvshm(char *name, char *opt)
+ /* Attach a shared memory file. */
+ void attach_shared(char *name, char *opt)
+ {
+- struct stat64 st;
++ struct stat st;
+
+ shmfd = open(name, O_RDWR);
+ if (shmfd < 0) {
+@@ -146,14 +146,14 @@ void attach_shared(char *name, char *opt)
+ if (shmfd < 0)
+ nerror("cannot create file %s", name);
+ }
+- if (fstat64(shmfd, &st) < 0)
++ if (fstat(shmfd, &st) < 0)
+ err("shm stat");
+ /* the file size must be larger than mmap shmlen + shmoffset, otherwise SIGBUS
+ * will be caused when we access memory, because mmaped memory is no longer in
+ * the range of the file laster.
+ */
+ if ((shmlen + shmoffset) > st.st_size) {
+- if (ftruncate64(shmfd, shmlen + shmoffset) < 0) {
++ if (ftruncate(shmfd, shmlen + shmoffset) < 0) {
+ /* XXX: we could do it by hand, but it would it
+ would be impossible to apply policy then.
+ need to fix that in the kernel. */
+@@ -168,7 +168,7 @@ void attach_shared(char *name, char *opt)
+
+ /* RED-PEN For shmlen > address space may need to map in pieces.
+ Left for some poor 32bit soul. */
+- shmptr = mmap64(NULL, shmlen, PROT_READ | PROT_WRITE, MAP_SHARED, shmfd, shmoffset);
++ shmptr = mmap(NULL, shmlen, PROT_READ | PROT_WRITE, MAP_SHARED, shmfd, shmoffset);
+ if (shmptr == (char*)-1)
+ err("shm mmap");
+ }
+
diff --git a/sys-process/numactl/numactl-2.0.16-r1.ebuild b/sys-process/numactl/numactl-2.0.16-r1.ebuild
new file mode 100644
index 000000000000..dca719d54ef6
--- /dev/null
+++ b/sys-process/numactl/numactl-2.0.16-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2023 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-numademo-cflags.patch # bug #540856
+ "${FILESDIR}"/${PN}-2.0.16-replace-stat64-with-normal-functions.patch # bug #540856
+ "${FILESDIR}"/${PN}-2.0.16-configure-check-for-largefile-support.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
+}