summaryrefslogtreecommitdiff
path: root/sys-process/numactl/files
diff options
context:
space:
mode:
Diffstat (limited to 'sys-process/numactl/files')
-rw-r--r--sys-process/numactl/files/numactl-2.0.11-sysmacros.patch41
-rw-r--r--sys-process/numactl/files/numactl-2.0.8-cpuid-pic.patch17
2 files changed, 0 insertions, 58 deletions
diff --git a/sys-process/numactl/files/numactl-2.0.11-sysmacros.patch b/sys-process/numactl/files/numactl-2.0.11-sysmacros.patch
deleted file mode 100644
index 3f9536757391..000000000000
--- a/sys-process/numactl/files/numactl-2.0.11-sysmacros.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-https://bugs.gentoo.org/580098
-
-From c1644f92e340d797e490c41a9ef9961125d202b9 Mon Sep 17 00:00:00 2001
-From: Mike Frysinger <vapier@gentoo.org>
-Date: Mon, 18 Apr 2016 18:49:51 -0400
-Subject: [PATCH] include sys/sysmacros.h for major/minor
-
-These functions are not part of any official spec, and glibc has always
-kept them in sys/sysmacros.h. As glibc moves to conform to POSIX, and
-more alternative C libraries come up, we need to include this header
-explicitly to get the prototypes. Otherwise we fail to build like:
-
-affinity.c: In function 'affinity_file':
-affinity.c:177:7: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration]
- if (major(d) != maj || minor(d) != min)
- ^
-affinity.c:177:26: warning: implicit declaration of function 'minor' [-Wimplicit-function-declaration]
- if (major(d) != maj || minor(d) != min)
- ^
-./.libs/libnuma.so: undefined reference to 'minor'
-./.libs/libnuma.so: undefined reference to 'major'
-collect2: error: ld returned 1 exit status
----
- affinity.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/affinity.c b/affinity.c
-index 9fbd6af..984291c 100644
---- a/affinity.c
-+++ b/affinity.c
-@@ -40,6 +40,7 @@
- #include <linux/rtnetlink.h>
- #include <linux/netlink.h>
- #include <sys/types.h>
-+#include <sys/sysmacros.h>
- #include <ctype.h>
- #include <assert.h>
- #include <regex.h>
---
-2.7.4
-
diff --git a/sys-process/numactl/files/numactl-2.0.8-cpuid-pic.patch b/sys-process/numactl/files/numactl-2.0.8-cpuid-pic.patch
deleted file mode 100644
index 02e84b725772..000000000000
--- a/sys-process/numactl/files/numactl-2.0.8-cpuid-pic.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-make the code work on x86/PIC. this code is only used in the demo,
-and the overhead of always running this is system noise, so don't
-bother bracketing with __i386__/__PIC__ defines.
-
-http://bugs.gentoo.org/456238
-
---- a/clearcache.c
-+++ b/clearcache.c
-@@ -57,7 +57,7 @@ void clearcache(unsigned char *mem, unsigned size)
- #if defined(__i386__) || defined(__x86_64__)
- unsigned i, cl, eax, feat;
- /* get clflush unit and feature */
-- asm("cpuid" : "=a" (eax), "=b" (cl), "=d" (feat) : "0" (1) : "cx");
-+ asm("xchg %%ebx, %%esi; cpuid; xchg %%esi, %%ebx;" : "=a" (eax), "=S" (cl), "=d" (feat) : "0" (1) : "cx");
- if (!(feat & (1 << 19)))
- fallback_clearcache();
- cl = ((cl >> 8) & 0xff) * 8;