From 2d5c9eaaa7a817a1658c5e9f988277cd50c3beb1 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 26 Feb 2024 09:57:27 -0500 Subject: [PATCH] numactl: update to 2.0.18. --- srcpkgs/numactl/patches/musl.patch | 15 +++++++-------- srcpkgs/numactl/patches/no-perl-regex.patch | 16 ++++++++++++++++ srcpkgs/numactl/template | 4 ++-- 3 files changed, 25 insertions(+), 10 deletions(-) create mode 100644 srcpkgs/numactl/patches/no-perl-regex.patch diff --git a/srcpkgs/numactl/patches/musl.patch b/srcpkgs/numactl/patches/musl.patch index a566f050680..2a301304415 100644 --- a/srcpkgs/numactl/patches/musl.patch +++ b/srcpkgs/numactl/patches/musl.patch @@ -1,22 +1,21 @@ __GLIBC_PREREQ is only defined with glibc, so that only process it with __GLIBC__. ---- a/syscall.c 2014-10-20 16:12:53.000000000 +0200 -+++ b/syscall.c 2015-06-22 08:13:22.729034702 +0200 -@@ -115,14 +115,16 @@ - +--- a/syscall.c ++++ b/syscall.c +@@ -153,7 +153,8 @@ + # define __GLIBC_PREREQ(x,y) 0 #endif -#if defined(__GLIBC__) && __GLIBC_PREREQ(2, 11) +#if defined(__GLIBC__) -+# if __GLIBC_PREREQ(2,11) ++# if __GLIBC_PREREQ(2, 11) /* glibc 2.11 seems to have working 6 argument sycall. Use the glibc supplied syscall in this case. - The version cut-off is rather arbitary and could be probably +@@ -161,6 +162,7 @@ earlier. */ --#define syscall6 syscall -+# define syscall6 syscall + #define syscall6 syscall +#endif #elif defined(__x86_64__) /* 6 argument calls on x86-64 are often buggy in both glibc and diff --git a/srcpkgs/numactl/patches/no-perl-regex.patch b/srcpkgs/numactl/patches/no-perl-regex.patch new file mode 100644 index 00000000000..4594e072caa --- /dev/null +++ b/srcpkgs/numactl/patches/no-perl-regex.patch @@ -0,0 +1,16 @@ +The grep in xbps-src chroots does not support Perl regexes, so restore a prior +version of the grep to identify highest and lowest nodes in test/bind_range. + +--- a/test/bind_range ++++ b/test/bind_range +@@ -92,8 +92,8 @@ + } + + HIGHESTCPU=$(ls /sys/bus/cpu/devices | sed s/cpu// | sort -n | tail -1) +-HIGHESTNODE=$(numactl -H | grep -Pzo 'node [0-9]* cpus: [0-9].*(.|\n)node [0-9]* size: [1-9].* MB' | tail -n1 | cut -f2 -d' ') +-LOWESTNODE=$(numactl -H | grep -Pzo 'node [0-9]* cpus: [0-9].*(.|\n)node [0-9]* size: [1-9].* MB' | head -n1 | cut -f2 -d' ') ++HIGHESTNODE=$(numactl -H | grep -e 'node [0-9]* cpus: [0-9]*' | tail -n1 | cut -f2 -d' ') ++LOWESTNODE=$(numactl -H | grep -e 'node [0-9]* cpus: [0-9]*' | head -n1 | cut -f2 -d' ') + + get_mask + diff --git a/srcpkgs/numactl/template b/srcpkgs/numactl/template index bccf5484e9e..629145b6bee 100644 --- a/srcpkgs/numactl/template +++ b/srcpkgs/numactl/template @@ -1,6 +1,6 @@ # Template file for 'numactl' pkgname=numactl -version=2.0.14 +version=2.0.18 revision=1 build_style=gnu-configure hostmakedepends="automake libtool" @@ -9,7 +9,7 @@ maintainer="Orphaned " license="LGPL-2.1-only" homepage="https://github.com/numactl/numactl" distfiles="https://github.com/numactl/numactl/archive/v${version}.tar.gz" -checksum=1ee27abd07ff6ba140aaf9bc6379b37825e54496e01d6f7343330cf1a4487035 +checksum=8cd6c13f3096e9c2293c1d732f56e2aa37a7ada1a98deed3fac7bd6da1aaaaf6 if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then # XXX