Compare commits
51 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
a978eac5aa | ||
|
1bdeee2cb5 | ||
|
c45afa33ba | ||
|
d0426d7b79 | ||
|
b5af8c3c75 | ||
|
9196f19398 | ||
|
d4d03700a7 | ||
|
0e5c64014e | ||
|
9451822cab | ||
|
3ef07b76b0 | ||
|
e0b1886a29 | ||
|
83b261d548 | ||
|
9c2773c027 | ||
|
a2d12f1b38 | ||
|
fa5db90694 | ||
|
7402eaba27 | ||
|
05a7a6de8f | ||
|
4586ad027a | ||
|
8272c8c525 | ||
|
bf53dd24de | ||
|
a3be73aa2f | ||
|
dbef751cdc | ||
|
dffe64e071 | ||
|
f9284a8b7f | ||
|
98a5654856 | ||
|
3642915ac5 | ||
|
e259e8a110 | ||
|
707c98b899 | ||
|
752930fcb7 | ||
|
5b51f71632 | ||
|
0ec014bf3c | ||
|
0d916f8622 | ||
|
ad688020e8 | ||
|
6e7f663d92 | ||
|
58bb2b1694 | ||
|
e6f8410fdc | ||
|
580707d8f1 | ||
|
f431c73f5c | ||
|
dddb66e66b | ||
|
5697068691 | ||
|
23550b1331 | ||
|
b18abf1f21 | ||
|
b0aab85fa9 | ||
|
4d923202a8 | ||
|
952c5ec8f3 | ||
|
430e2c46ac | ||
|
785521b60a | ||
|
c1fe2f8a3b | ||
|
3b447b6b79 | ||
|
b8ff4023d6 | ||
|
f01061d5ca |
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
numactl-0.6.4.tar.gz
|
||||
numactl-0.6.4
|
||||
numactl-0.9.8.tar.gz
|
||||
numactl-1.0.2.tar.gz
|
6
Makefile
6
Makefile
@ -1,6 +0,0 @@
|
||||
# Makefile for source rpm: numactl
|
||||
# $Id$
|
||||
NAME := numactl
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
include ../common/Makefile.common
|
17
numactl-1.0.2-alpha-syscall.patch
Normal file
17
numactl-1.0.2-alpha-syscall.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff -up numactl-1.0.2/syscall.c.orig numactl-1.0.2/syscall.c
|
||||
--- numactl-1.0.2/syscall.c.orig 2008-03-14 07:28:58.000000000 -0400
|
||||
+++ numactl-1.0.2/syscall.c 2008-03-14 07:29:31.000000000 -0400
|
||||
@@ -62,6 +62,13 @@
|
||||
#define __NR_set_mempolicy 261
|
||||
#define __NR_migrate_pages 258
|
||||
|
||||
+#elif defined(__alpha__)
|
||||
+
|
||||
+#define __NR_mbind 429
|
||||
+#define __NR_get_mempolicy 430
|
||||
+#define __NR_set_mempolicy 431
|
||||
+#define __NR_migrate_pages 449
|
||||
+
|
||||
#elif !defined(DEPS_RUN)
|
||||
#error "Add syscalls for your architecture or update kernel headers"
|
||||
#endif
|
36
numactl-1.0.2-get_mempolicy-const.patch
Normal file
36
numactl-1.0.2-get_mempolicy-const.patch
Normal file
@ -0,0 +1,36 @@
|
||||
diff -up numactl-1.0.2/syscall.c.orig numactl-1.0.2/syscall.c
|
||||
--- numactl-1.0.2/syscall.c.orig 2007-08-16 10:36:23.000000000 -0400
|
||||
+++ numactl-1.0.2/syscall.c 2007-12-20 10:33:27.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/numaint.h.orig numactl-1.0.2/numaint.h
|
||||
--- numactl-1.0.2/numaint.h.orig 2007-12-20 10:33:53.000000000 -0500
|
||||
+++ numactl-1.0.2/numaint.h 2007-12-20 10:33:58.000000000 -0500
|
||||
@@ -5,7 +5,7 @@ extern int numa_sched_setaffinity(pid_t
|
||||
extern int numa_sched_getaffinity(pid_t pid, unsigned len, const unsigned long *mask);
|
||||
extern int numa_sched_setaffinity_int(pid_t pid, unsigned len,const unsigned long *mask);
|
||||
extern int numa_sched_getaffinity_int(pid_t pid, unsigned len,const unsigned long *mask);
|
||||
-extern long get_mempolicy_int(int *policy, const unsigned long *nmask,
|
||||
+extern long get_mempolicy_int(int *policy, unsigned long *nmask,
|
||||
unsigned long maxnode, void *addr, int flags);
|
||||
extern long mbind_int(void *start, unsigned long len, int mode,
|
||||
const unsigned long *nmask, unsigned long maxnode, unsigned flags);
|
||||
diff -up numactl-1.0.2/numaif.h.orig numactl-1.0.2/numaif.h
|
||||
--- numactl-1.0.2/numaif.h.orig 2007-08-16 10:36:23.000000000 -0400
|
||||
+++ numactl-1.0.2/numaif.h 2007-12-20 10:33:27.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);
|
24
numactl-1.0.2-sparc-syscall.patch
Normal file
24
numactl-1.0.2-sparc-syscall.patch
Normal file
@ -0,0 +1,24 @@
|
||||
--- 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
|
162
numactl.spec
Normal file
162
numactl.spec
Normal file
@ -0,0 +1,162 @@
|
||||
Name: numactl
|
||||
Summary: Library for tuning for Non Uniform Memory Access machines
|
||||
Version: 1.0.2
|
||||
Release: 6%{dist}
|
||||
License: LGPLv2/GPLv2
|
||||
Group: System Environment/Base
|
||||
URL: ftp://ftp.suse.com/pub/people/ak/numa/
|
||||
Source0: ftp://ftp.suse.com/pub/people/ak/numa/numactl-%{version}.tar.gz
|
||||
Buildroot: %{_tmppath}/%{name}-buildroot
|
||||
|
||||
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
|
||||
other programs with a specific NUMA policy and a libnuma to do
|
||||
allocations with NUMA policy in applications.
|
||||
|
||||
%package devel
|
||||
Summary: Development package for building Applications that use numa
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Provides development headers for numa library calls
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
make CFLAGS="$RPM_OPT_FLAGS -I. -fPIC"
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_includedir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3
|
||||
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man5
|
||||
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
|
||||
|
||||
make prefix=$RPM_BUILD_ROOT/usr libdir=$RPM_BUILD_ROOT/%{_libdir} install
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libnuma.so.1
|
||||
%{_bindir}/numactl
|
||||
%{_bindir}/numademo
|
||||
%{_bindir}/numastat
|
||||
%{_bindir}/memhog
|
||||
%{_bindir}/migratepages
|
||||
%{_mandir}/man5/*.5*
|
||||
%{_mandir}/man8/*.8*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libnuma.so
|
||||
%{_includedir}/numa.h
|
||||
%{_includedir}/numaif.h
|
||||
%{_mandir}/man3/*.3*
|
||||
|
||||
%changelog
|
||||
* Mon Mar 16 2008 Dennis Gilmore <dennis@ausil.us> - 1.0.2-6
|
||||
- add sparc syscalls
|
||||
|
||||
* Fri Mar 14 2008 Neil Horman <nhorman@redhat.com> - 1.0.2-5
|
||||
- Fixing spec file to actually apply alpha patch :)
|
||||
|
||||
* Fri Mar 14 2008 Neil Horman <nhorman@redhat.com> - 1.0.2-4
|
||||
- Add alpha syscalls (bz 396361)
|
||||
|
||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.2-3
|
||||
- Autorebuild for GCC 4.3
|
||||
|
||||
* Thu Dec 20 2007 Neil Horman <nhorman@redhat.com> - 1.0.2-1
|
||||
- Update numactl to fix get_mempolicy signature (bz 418551)
|
||||
|
||||
* Fri Dec 14 2007 Neil Horman <nhorman@redhat.com> - 1.0.2-1
|
||||
- Update numactl to latest version (bz 425281)
|
||||
|
||||
* Tue Aug 07 2007 Neil Horman <nhorman@redhat.com> - 0.9.8-4
|
||||
- Fixing some remaining merge review issues (bz 226207)
|
||||
|
||||
* Fri Aug 03 2007 Neil Horman <nhorman@redhat.com> - 0.9.8-3
|
||||
- fixing up merge review (bz 226207)
|
||||
|
||||
* Fri Jan 12 2007 Neil Horman <nhorman@redhat.com> - 0.9.8-2
|
||||
- Properly fixed bz 221982
|
||||
- Updated revision string to include %{dist}
|
||||
|
||||
* Thu Jan 11 2007 Neil Horman <nhorman@redhat.com> - 0.9.8-1.38
|
||||
- Fixed -devel to depend on base package so libnuma.so resolves
|
||||
|
||||
* Thu Sep 21 2006 Neil Horman <nhorman@redhat.com> - 0.9.8-1.36
|
||||
- adding nodebind patch for bz 207404
|
||||
|
||||
* Fri Aug 25 2006 Neil Horman <nhorman@redhat.com> - 0.9.8-1.35
|
||||
- moving over libnuma.so to -devel package as well
|
||||
|
||||
* Fri Aug 25 2006 Neil Horman <nhorman@redhat.com> - 0.9.8-1.34
|
||||
- split out headers/devel man pages to a devel subpackage
|
||||
|
||||
* Tue Aug 15 2006 Neil Horman <nhorman@redhat.com> - 0.9.8-1.32
|
||||
- add patch for broken cpu/nodebind output (bz 201906)
|
||||
|
||||
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.9.8-1.31
|
||||
- rebuild
|
||||
|
||||
* Tue Jun 13 2006 Neil Horman <nhorman@redhat.com>
|
||||
- Rebased numactl to version 0.9.8 for FC6/RHEL5
|
||||
|
||||
* Wed Apr 26 2006 Neil Horman <nhorman@redhat.com>
|
||||
- Added patches for 64 bit overflows and cpu mask problem
|
||||
|
||||
* Fri Mar 10 2006 Bill Nottingham <notting@redhat.com>
|
||||
- rebuild for ppc TLS issue (#184446)
|
||||
|
||||
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.6.4-1.25.2
|
||||
- bump again for double-long bug on ppc(64)
|
||||
|
||||
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com>
|
||||
- rebuilt for new gcc4.1 snapshot and glibc changes
|
||||
|
||||
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Thu Jul 7 2005 Dave Jones <davej@redhat.com>
|
||||
- numactl doesn't own the manpage dirs. (#161547)
|
||||
|
||||
* Tue Mar 1 2005 Dave Jones <davej@redhat.com>
|
||||
- Rebuild for gcc4
|
||||
|
||||
* Tue Feb 8 2005 Dave Jones <davej@redhat.com>
|
||||
- rebuild with -D_FORTIFY_SOURCE=2
|
||||
|
||||
* Wed Nov 10 2004 David Woodhouse <dwmw2@redhat.com>
|
||||
- Fix build on x86_64
|
||||
|
||||
* Thu Oct 21 2004 David Woodhouse <dwmw2@redhat.com>
|
||||
- Add PPC support
|
||||
|
||||
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Sat Jun 05 2004 Warren Togami <wtogami@redhat.com>
|
||||
- spec cleanup
|
||||
|
||||
* Sat Jun 05 2004 Arjan van de Ven <arjanv@redhat.com>
|
||||
- initial packaging
|
||||
|
Loading…
Reference in New Issue
Block a user