![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community,
here is the log from the commit of package numactl
checked in at Thu Nov 20 15:57:35 CET 2008.
--------
--- arch/x86_64/numactl/numactl.changes 2008-08-05 16:59:28.000000000 +0200
+++ /mounts/work_src_done/STABLE/numactl/numactl.changes 2008-11-20 13:24:41.000000000 +0100
@@ -1,0 +2,6 @@
+Thu Nov 20 11:58:59 CET 2008 - bwalle@suse.de
+
+- Fixes to libnuma.c numa.h numacompat1.h by Daniel Gollub to fix
+ v1 compatiblity (bnc#441440).
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
New:
----
numactl-compat.diff
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ numactl.spec ++++++
--- /var/tmp/diff_new_pack.z11538/_old 2008-11-20 15:56:58.000000000 +0100
+++ /var/tmp/diff_new_pack.z11538/_new 2008-11-20 15:56:58.000000000 +0100
@@ -23,13 +23,14 @@
License: GPL v2 only; GPL v2 or later
Summary: NUMA Policy Control
Version: 2.0.2
-Release: 1
+Release: 16
AutoReqProv: on
Source: numactl-%{version}.tar.bz2
Group: System/Management
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: ia64 x86_64 ppc64 ppc
Requires: perl
+Patch0: numactl-compat.diff
%description
Control NUMA policy for individual processes. Offer libnuma for
@@ -79,6 +80,7 @@
%prep
%setup
+%patch0 -p1
%build
make CFLAGS="${RPM_OPT_FLAGS}"
@@ -118,6 +120,9 @@
%{_libdir}/lib*so
%changelog
+* Thu Nov 20 2008 bwalle@suse.de
+- Fixes to libnuma.c numa.h numacompat1.h by Daniel Gollub to fix
+ v1 compatiblity (bnc#441440).
* Tue Aug 05 2008 bwalle@suse.de
- update to 2.0.2
o Various numademo improvements:
@@ -194,7 +199,7 @@
- Save/restore errno correctly (#182158)
* Thu Jun 08 2006 ak@suse.de
- Fix cpu buffer sizing for affinity syscalls (#182145)
-* Wed May 24 2006 ak@suse.de
+* Tue May 23 2006 ak@suse.de
- Fix cpumap parsing again (#177749)
* Thu Mar 30 2006 ak@suse.de
- Fix the cpumap parsing fix to not corrupt memory (still #161089)
@@ -208,7 +213,7 @@
* Thu Mar 23 2006 ak@suse.de
- Don't install syscall manpages which are in the normal
manpages now (#158550)
-* Mon Feb 13 2006 ak@suse.de
+* Sun Feb 12 2006 ak@suse.de
- Install migratepages manpage (followon for #143825)
* Wed Feb 08 2006 ak@suse.de
- Add support for page migration (#143825)
@@ -222,7 +227,7 @@
- Update to numactl 0.8
* Fri Dec 16 2005 ro@suse.de
- do not build as root
-* Tue Oct 11 2005 ak@suse.de
+* Mon Oct 10 2005 ak@suse.de
- use RPM_OPT_FLAGS
- fix build on ia64 with debuginfo package
* Mon Oct 10 2005 ak@suse.de
++++++ numactl-compat.diff ++++++
diff -Nurp numactl-2.0.2/CHANGES numactl-2.0.3-rc1/CHANGES
--- numactl-2.0.2/CHANGES 2008-08-05 16:36:58.000000000 +0200
+++ numactl-2.0.3-rc1/CHANGES 2008-11-20 00:54:06.000000000 +0100
@@ -269,3 +269,6 @@ updating in newer kernels (Mel Gorman)
- Fix numaif.h and numaint.h (migrate_pages; from Masatake Yamato)
- Fixes to numademo (min/max, and array index; from Kent Liu)
- Fixes to Makefile and permissions; from Berhard Walle
+
+2.0.3-rc1
+- Fixes to libnuma.c numa.h numacompat1.h by Daniel Rahn to fix v1 compatiblity
diff -Nurp numactl-2.0.2/libnuma.c numactl-2.0.3-rc1/libnuma.c
--- numactl-2.0.2/libnuma.c 2008-08-05 16:36:58.000000000 +0200
+++ numactl-2.0.3-rc1/libnuma.c 2008-11-20 00:54:06.000000000 +0100
@@ -74,24 +74,6 @@ int numa_exit_on_error = 0;
int numa_exit_on_warn = 0;
static void set_sizes(void);
-static inline void
-nodemask_set_v1(nodemask_t *mask, int node)
-{
- mask->n[node / (8*sizeof(unsigned long))] |=
- (1UL<<(node%(8*sizeof(unsigned long))));
-}
-
-static inline int
-nodemask_isset_v1(const nodemask_t *mask, int node)
-{
- if ((unsigned)node >= NUMA_NUM_NODES)
- return 0;
- if (mask->n[node / (8*sizeof(unsigned long))] &
- (1UL<<(node%(8*sizeof(unsigned long)))))
- return 1;
- return 0;
-}
-
/*
* There are two special functions, _init(void) and _fini(void), which
* are called automatically by the dynamic loader whenever a library is loaded.
@@ -107,7 +89,7 @@ numa_init(void)
/* numa_all_nodes should represent existing nodes on this system */
max = numa_num_configured_nodes();
for (i = 0; i < max; i++)
- nodemask_set_v1((nodemask_t *)&numa_all_nodes, i);
+ nodemask_set_compat((nodemask_t *)&numa_all_nodes, i);
memset(&numa_no_nodes, 0, sizeof(numa_no_nodes));
}
@@ -509,7 +491,7 @@ set_thread_constraints(void)
static void
set_numa_max_cpu(void)
{
- int len = 2048;
+ int len = 4096;
int n;
int olde = errno;
struct bitmask *buffer;
@@ -995,7 +977,7 @@ copy_bitmask_to_nodemask(struct bitmask
if (i >= max)
break;
if (numa_bitmask_isbitset(bmp, i))
- nodemask_set_v1((nodemask_t *)nmp, i);
+ nodemask_set_compat((nodemask_t *)nmp, i);
}
}
@@ -1034,7 +1016,7 @@ copy_nodemask_to_bitmask(nodemask_t *nmp
if (max > bmp->size)
max = bmp->size;
for (i=0; i
participants (1)
-
root@Hilbert.suse.de