rpms/numactl/devel numactl-1.0.2-get_mempolicy-const.patch, NONE, 1.1 numactl.spec, 1.46, 1.47 numactl-node-cpubind.patch, 1.1, NONE numactl-parse_bitmap_nodebind.patch, 1.1, NONE

Neil Horman (nhorman) fedora-extras-commits at redhat.com
Thu Dec 20 15:14:08 UTC 2007


Author: nhorman

Update of /cvs/extras/rpms/numactl/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8405

Modified Files:
	numactl.spec 
Added Files:
	numactl-1.0.2-get_mempolicy-const.patch 
Removed Files:
	numactl-node-cpubind.patch numactl-parse_bitmap_nodebind.patch 
Log Message:
Resolves: bz 418551

numactl-1.0.2-get_mempolicy-const.patch:

--- NEW FILE numactl-1.0.2-get_mempolicy-const.patch ---
diff -up numactl-1.0.2/syscall.c.orig numactl-1.0.2/syscall.c
--- numactl-1.0.2/syscall.c.orig	2007-12-20 10:07:04.000000000 -0500
+++ numactl-1.0.2/syscall.c	2007-12-20 10:07:28.000000000 -0500
@@ -127,7 +127,7 @@ long syscall6(long call, long a, long b,
 #endif
 
 long WEAK get_mempolicy(int *policy, 
-		   const unsigned long *nmask, unsigned long maxnode,
+		   unsigned long *nmask, unsigned long maxnode,
 		   void *addr, int flags)          
 {
 	return syscall(__NR_get_mempolicy, policy, nmask, maxnode, addr, flags);
diff -up numactl-1.0.2/numaif.h.orig numactl-1.0.2/numaif.h
--- numactl-1.0.2/numaif.h.orig	2007-12-20 10:07:51.000000000 -0500
+++ numactl-1.0.2/numaif.h	2007-12-20 10:07:56.000000000 -0500
@@ -9,7 +9,7 @@ extern "C" { 
 
 /* System calls */
 extern long get_mempolicy(int *policy, 
-			  const unsigned long *nmask, unsigned long maxnode,
+			  unsigned long *nmask, unsigned long maxnode,
 			  void *addr, int flags);
 extern long mbind(void *start, unsigned long len, int mode, 
 		  const unsigned long *nmask, unsigned long maxnode, unsigned flags);


Index: numactl.spec
===================================================================
RCS file: /cvs/extras/rpms/numactl/devel/numactl.spec,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- numactl.spec	14 Dec 2007 20:15:57 -0000	1.46
+++ numactl.spec	20 Dec 2007 15:13:33 -0000	1.47
@@ -1,7 +1,7 @@
 Name:		numactl
 Summary:	Library for tuning for Non Uniform Memory Access machines
 Version:	1.0.2
-Release:	1%{dist} 
+Release:	2%{dist} 
 License:	LGPLv2/GPLv2
 Group: 		System Environment/Base
 URL: 		ftp://ftp.suse.com/pub/people/ak/numa/
@@ -9,6 +9,7 @@
 Buildroot:	%{_tmppath}/%{name}-buildroot
 
 ExcludeArch: s390 s390x
+Patch0: numactl-1.0.2-get_mempolicy-const.patch
 
 
 %description
@@ -26,6 +27,7 @@
 
 %prep
 %setup -q 
+%patch0 -p1
 
 %build
 make CFLAGS="$RPM_OPT_FLAGS -I. -fPIC"
@@ -67,6 +69,9 @@
 %{_mandir}/man3/*.3*
 
 %changelog
+* Thu Dec 20 2007 Neil Horman <nhorman at redhat.com> - 1.0.2-1
+- Update numactl to fix get_mempolicy signature (bz 418551)
+
 * Fri Dec 14 2007 Neil Horman <nhorman at redhat.com> - 1.0.2-1
 - Update numactl to latest version (bz 425281)
 


--- numactl-node-cpubind.patch DELETED ---


--- numactl-parse_bitmap_nodebind.patch DELETED ---




More information about the fedora-extras-commits mailing list