rpms/numactl/F-9 numactl-1.0.2-sparc-syscall.patch, NONE, 1.1 numactl.spec, 1.50, 1.51

Dennis Gilmore ausil at fedoraproject.org
Tue Mar 17 00:10:18 UTC 2009


Author: ausil

Update of /cvs/pkgs/rpms/numactl/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv1896

Modified Files:
	numactl.spec 
Added Files:
	numactl-1.0.2-sparc-syscall.patch 
Log Message:
add sparc syscalls


numactl-1.0.2-sparc-syscall.patch:

--- NEW FILE numactl-1.0.2-sparc-syscall.patch ---
--- numactl-1.0.2/syscall.c.orig	2009-03-16 18:52:40.000000000 -0500
+++ numactl-1.0.2/syscall.c	2009-03-16 19:04:19.000000000 -0500
@@ -69,6 +69,21 @@
 #define __NR_set_mempolicy 431
 #define __NR_migrate_pages 449
 
+#elif defined(__sparc__) && defined(__arch64)
+
+#define __NR_migrate_pages      302
+#define __NR_mbind              303
+#define __NR_get_mempolicy      304
+#define __NR_set_mempolicy      305
+
+
+#elif defined(__sparc__)
+
+#define __NR_migrate_pages      302
+#define __NR_mbind              303
+#define __NR_get_mempolicy      304
+#define __NR_set_mempolicy      305
+
 #elif !defined(DEPS_RUN)
 #error "Add syscalls for your architecture or update kernel headers"
 #endif


Index: numactl.spec
===================================================================
RCS file: /cvs/pkgs/rpms/numactl/F-9/numactl.spec,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- numactl.spec	14 Mar 2008 11:38:31 -0000	1.50
+++ numactl.spec	17 Mar 2009 00:09:48 -0000	1.51
@@ -1,7 +1,7 @@
 Name:		numactl
 Summary:	Library for tuning for Non Uniform Memory Access machines
 Version:	1.0.2
-Release:	5%{dist} 
+Release:	6%{dist} 
 License:	LGPLv2/GPLv2
 Group: 		System Environment/Base
 URL: 		ftp://ftp.suse.com/pub/people/ak/numa/
@@ -11,6 +11,7 @@
 ExcludeArch: s390 s390x
 Patch0: numactl-1.0.2-get_mempolicy-const.patch
 Patch1: numactl-1.0.2-alpha-syscall.patch
+Patch2: numactl-1.0.2-sparc-syscall.patch
 
 %description
 Simple NUMA policy support. It consists of a numactl program to run
@@ -29,6 +30,7 @@
 %setup -q 
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 make CFLAGS="$RPM_OPT_FLAGS -I. -fPIC"
@@ -70,6 +72,9 @@
 %{_mandir}/man3/*.3*
 
 %changelog
+* Mon Mar 16 2008 Dennis Gilmore <dennis at ausil.us> - 1.0.2-6
+- add sparc syscalls
+
 * Fri Mar 14 2008 Neil Horman <nhorman at redhat.com> - 1.0.2-5
 - Fixing spec file to actually apply alpha patch :)
 




More information about the fedora-extras-commits mailing list