From a3be73aa2f71b5b5af39e0e087cbc2e135dc2046 Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Thu, 21 Sep 2006 16:34:54 +0000 Subject: [PATCH] fixing bz 207404 --- numactl-parse_bitmap_nodebind.patch | 11 +++++++++++ numactl.spec | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 numactl-parse_bitmap_nodebind.patch diff --git a/numactl-parse_bitmap_nodebind.patch b/numactl-parse_bitmap_nodebind.patch new file mode 100644 index 0000000..e0ce9ab --- /dev/null +++ b/numactl-parse_bitmap_nodebind.patch @@ -0,0 +1,11 @@ +--- numactl-0.9.8/numactl-0.9.8/libnuma.c.orig 2006-09-21 12:26:52.000000000 -0400 ++++ numactl-0.9.8/numactl-0.9.8/libnuma.c 2006-09-21 12:27:14.000000000 -0400 +@@ -420,7 +420,7 @@ int numa_parse_bitmap(char *line, unsign + while (p > line && *p != ',') + --p; + /* Eat two 32bit fields at a time to get longs */ +- if (sizeof(unsigned long) == 8) { ++ if (p > line && sizeof(unsigned long) == 8) { + oldp--; + memmove(p, p+1, oldp-p+1); + while (p > line && *p != ',') diff --git a/numactl.spec b/numactl.spec index ca7831c..42ef241 100644 --- a/numactl.spec +++ b/numactl.spec @@ -11,6 +11,7 @@ Buildroot: %{_tmppath}/%{name}-buildroot ExcludeArch: s390 s390x Patch1: numactl-node-cpubind.patch +Patch2: numactl-parse_bitmap_nodebind.patch %description Simple NUMA policy support. It consists of a numactl program to run @@ -29,6 +30,7 @@ Provides development headers for numa library calls %prep %setup -q -c -a 0 %patch1 +%patch2 -p1 %build cd numactl-%{version} @@ -72,6 +74,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/*.3* %changelog +* Thu Sep 21 2006 Neil Horman - 0.9.8-1.36 +- adding nodebind patch for bz 207404 + * Fri Aug 25 2006 Neil Horman - 0.9.8-1.35 - moving over libnuma.so to -devel package as well