Compare commits

...

2 Commits
rawhide ... f20

Author SHA1 Message Date
Petr Holasek 5640ee1fcf Resolves: bz1080421 2014-07-31 16:08:10 +02:00
Petr Holasek 82958057d5 Rebased to 2.0.9 2013-10-09 12:12:45 +02:00
4 changed files with 28 additions and 3 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ numactl-2.0.3.tar.gz
/numactl-2.0.6.tar.gz
/numactl-2.0.7.tar.gz
/numactl-2.0.8.tar.gz
/numactl-2.0.9.tar.gz

View File

@ -0,0 +1,15 @@
diff -up numactl-2.0.9/numactl.c.orig numactl-2.0.9/numactl.c
--- numactl-2.0.9/numactl.c.orig 2014-07-31 15:42:21.474060364 +0200
+++ numactl-2.0.9/numactl.c 2014-07-31 15:42:32.894085763 +0200
@@ -242,6 +242,11 @@ void hardware(void)
int prevnode=-1;
int skip=0;
int maxnode = numa_max_node();
+
+ if (numa_available() < 0) {
+ printf("No NUMA available on this system\n");
+ exit(1);
+ }
for (i=0; i<=maxnode; i++)
if (numa_bitmask_isbitset(numa_nodes_ptr, i))

View File

@ -1,7 +1,7 @@
Name: numactl
Summary: Library for tuning for Non Uniform Memory Access machines
Version: 2.0.8
Release: 4%{dist}
Version: 2.0.9
Release: 2%{dist}
# libnuma is LGPLv2 and GPLv2
# numactl binaries are GPLv2 only
License: GPLv2
@ -12,6 +12,8 @@ Buildroot: %{_tmppath}/%{name}-buildroot
ExcludeArch: s390 s390x %{arm}
Patch1: numactl-2.0.9-hw-check-segfault.patch
%description
Simple NUMA policy support. It consists of a numactl program to run
other programs with a specific NUMA policy.
@ -37,6 +39,7 @@ Provides development headers for numa library calls
%prep
%setup -q -n %{name}-%{version}
%patch1 -p1
%build
make clean
@ -85,6 +88,12 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/*.3*
%changelog
* Thu Jul 31 2014 Petr Holasek <pholasek@redhat.com> 2.0.9-2
- fixed segfault on non-NUMA systems (bz1080421)
* Wed Oct 09 2013 Petr Holasek <pholasek@redhat.com> 2.0.9-1
- Rebased to 2.0.9
* Fri Aug 02 2013 Karsten Hopp <karsten@redhat.com> 2.0.8-4
- rebuild in F20 to fix some dependency issues on PPC

View File

@ -1 +1 @@
157def35edcc0ab94144398000b01d18 numactl-2.0.8.tar.gz
136685c8eaf9d6569c351fe1d453b30c numactl-2.0.9.tar.gz