Compare commits

...

51 Commits
rawhide ... f9

Author SHA1 Message Date
Fedora Release Engineering
a978eac5aa dist-git conversion 2010-07-29 04:38:18 +00:00
Bill Nottingham
1bdeee2cb5 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:25:29 +00:00
Dennis Gilmore
c45afa33ba add sparc syscalls 2009-03-17 00:09:48 +00:00
Jesse Keating
d0426d7b79 Initialize branch F-9 for numactl 2008-04-21 05:20:08 +00:00
Neil Horman
b5af8c3c75 Fixing silly spec file mistake 2008-03-14 11:38:31 +00:00
Neil Horman
9196f19398 Resolves: bz 396361 2008-03-14 11:31:23 +00:00
Jesse Keating
d4d03700a7 - Autorebuild for GCC 4.3 2008-02-19 16:10:30 +00:00
Neil Horman
0e5c64014e Updating patch to build properly 2007-12-20 15:35:17 +00:00
Neil Horman
9451822cab Resolves: bz 418551 2007-12-20 15:13:33 +00:00
Neil Horman
3ef07b76b0 Updating numactl to latest version 2007-12-14 20:15:57 +00:00
Bill Nottingham
e0b1886a29 makefile update to properly grab makefile.common 2007-10-15 19:11:41 +00:00
Neil Horman
83b261d548 Updating spec for merge review 2007-08-07 20:36:56 +00:00
Neil Horman
9c2773c027 Updating spec for merge review 2007-08-07 20:35:06 +00:00
Neil Horman
a2d12f1b38 Updating spec for merge review 2007-08-07 20:31:56 +00:00
Neil Horman
fa5db90694 Fixes bz 226207 2007-08-04 00:34:50 +00:00
Neil Horman
7402eaba27 doing merge cleanup (bz 226207) 2007-08-03 23:54:34 +00:00
Neil Horman
05a7a6de8f doing merge cleanup (bz 226207) 2007-08-03 23:52:58 +00:00
Neil Horman
4586ad027a fixing dependency problem and updating release string 2007-01-12 14:37:41 +00:00
Neil Horman
8272c8c525 Fixing -devel missing dependency on numactl base 2007-01-11 13:39:34 +00:00
Neil Horman
bf53dd24de Fixing -devel missing dependency on numactl base 2007-01-11 13:38:45 +00:00
Neil Horman
a3be73aa2f fixing bz 207404 2006-09-21 16:34:54 +00:00
Neil Horman
dbef751cdc updating numactl to put libnuma.so in -devel 2006-08-25 18:42:21 +00:00
Neil Horman
dffe64e071 splitting out devel headers to devel pacakge] 2006-08-25 15:41:38 +00:00
Neil Horman
f9284a8b7f cleaning up/fixing bz 201906 2006-08-15 14:18:47 +00:00
Jesse Keating
98a5654856 bumped for rebuild 2006-07-12 07:29:48 +00:00
Neil Horman
3642915ac5 turning on ppc64 arch for numactl 2006-06-14 11:34:48 +00:00
Neil Horman
e259e8a110 rebasing to numactl-0.9.8 for FC-6 2006-06-13 14:58:47 +00:00
Neil Horman
707c98b899 bumping release number 2006-04-27 14:58:35 +00:00
Neil Horman
752930fcb7 adding new patches 2006-04-27 14:38:52 +00:00
Bill Nottingham
5b51f71632 rebuild for ppc TLS issue (#184446) 2006-03-10 06:06:35 +00:00
Jesse Keating
0ec014bf3c bump for bug in double-long on ppc(64) 2006-02-11 04:48:25 +00:00
Jesse Keating
0d916f8622 bump for new gcc/glibc 2006-02-07 13:16:46 +00:00
Jesse Keating
ad688020e8 gcc update bump 2005-12-09 22:42:31 +00:00
Dave Jones
6e7f663d92 missing file 2005-07-08 01:06:16 +00:00
Dave Jones
58bb2b1694 spots fix. 2005-07-08 01:03:32 +00:00
Dave Jones
e6f8410fdc make the dirs again 2005-07-08 00:40:36 +00:00
Dave Jones
580707d8f1 need manpage dirs already present. 2005-07-08 00:38:23 +00:00
Dave Jones
f431c73f5c ignore 2005-07-08 00:33:50 +00:00
Dave Jones
dddb66e66b numactl doesn't own the manpage dirs. (#161547) 2005-07-08 00:32:20 +00:00
Dave Jones
5697068691 gcc4 2005-03-02 04:07:30 +00:00
Dave Jones
23550b1331 unneeded 2005-02-09 22:23:49 +00:00
Dave Jones
b18abf1f21 GARG. another! 2005-02-09 00:06:41 +00:00
Dave Jones
b0aab85fa9 typo 2005-02-09 00:05:40 +00:00
Dave Jones
4d923202a8 bump 2005-02-08 23:53:06 +00:00
Dave Jones
952c5ec8f3 GAR 2005-02-08 23:50:02 +00:00
Dave Jones
430e2c46ac rebuild with -D_FORTITY_SOURCE=2 2005-02-08 23:49:48 +00:00
David Woodhouse
785521b60a Add x86_64 build fix to head too 2004-11-10 17:16:44 +00:00
David Woodhouse
c1fe2f8a3b *** empty log message *** 2004-10-21 10:51:50 +00:00
David Woodhouse
3b447b6b79 Add ppc 2004-10-21 10:43:11 +00:00
cvsdist
b8ff4023d6 auto-import changelog data from numactl-0.6.4-1.9.src.rpm
Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
2004-09-09 09:20:08 +00:00
cvsdist
f01061d5ca auto-import changelog data from numactl-0.6.4-1.8.src.rpm
Sat Jun 05 2004 Warren Togami <wtogami@redhat.com>
- spec cleanup
Sat Jun 05 2004 Arjan van de Ven <arjanv@redhat.com>
- initial packaging
2004-09-09 09:20:04 +00:00
8 changed files with 244 additions and 6 deletions

View File

4
.gitignore vendored Normal file
View 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

View File

@ -1,6 +0,0 @@
# Makefile for source rpm: numactl
# $Id$
NAME := numactl
SPECFILE = $(firstword $(wildcard *.spec))
include ../common/Makefile.common

View 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

View 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);

View 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
View 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

View File

@ -0,0 +1 @@
392a5bc3e79f016edcaee0cb6ceadf90 numactl-1.0.2.tar.gz