Resolves: bz 516223
This commit is contained in:
parent
0d7a4bfed6
commit
05de204252
12
numactl-2.0.3-nodes_allowed_list_obo.patch
Normal file
12
numactl-2.0.3-nodes_allowed_list_obo.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up numactl-2.0.3/libnuma.c.orig numactl-2.0.3/libnuma.c
|
||||||
|
--- numactl-2.0.3/libnuma.c.orig 2009-08-10 07:02:12.000000000 -0400
|
||||||
|
+++ numactl-2.0.3/libnuma.c 2009-08-10 07:02:39.000000000 -0400
|
||||||
|
@@ -464,7 +464,7 @@ set_thread_constraints(void)
|
||||||
|
nodes_allowed_list = malloc(strlen(buffer)-18);
|
||||||
|
strncpy(nodes_allowed_list, buffer + 19,
|
||||||
|
strlen(buffer) - 19);
|
||||||
|
- nodes_allowed_list[strlen(nodes_allowed_list)-1] = '\0';
|
||||||
|
+ nodes_allowed_list[strlen(buffer)-19] = '\0';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fclose(f);
|
@ -1,7 +1,7 @@
|
|||||||
Name: numactl
|
Name: numactl
|
||||||
Summary: Library for tuning for Non Uniform Memory Access machines
|
Summary: Library for tuning for Non Uniform Memory Access machines
|
||||||
Version: 2.0.3
|
Version: 2.0.3
|
||||||
Release: 5%{dist}
|
Release: 6%{dist}
|
||||||
License: LGPLv2/GPLv2
|
License: LGPLv2/GPLv2
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: ftp://oss.sgi.com/www/projects/libnuma/download
|
URL: ftp://oss.sgi.com/www/projects/libnuma/download
|
||||||
@ -10,6 +10,7 @@ Buildroot: %{_tmppath}/%{name}-buildroot
|
|||||||
|
|
||||||
Patch0: numactl-2.0.3-rc3-distance_parsing.patch
|
Patch0: numactl-2.0.3-rc3-distance_parsing.patch
|
||||||
Patch1: numactl-2.0.3-rc3-no-nodes-warning.patch
|
Patch1: numactl-2.0.3-rc3-no-nodes-warning.patch
|
||||||
|
Patch2: numactl-2.0.3-nodes_allowed_list_obo.patch
|
||||||
|
|
||||||
ExcludeArch: s390 s390x
|
ExcludeArch: s390 s390x
|
||||||
|
|
||||||
@ -30,6 +31,7 @@ Provides development headers for numa library calls
|
|||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make CFLAGS="$RPM_OPT_FLAGS -I."
|
make CFLAGS="$RPM_OPT_FLAGS -I."
|
||||||
@ -71,6 +73,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man3/*.3*
|
%{_mandir}/man3/*.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 10 2009 Neil Horman <nhorman@redhat.com> - 2.0.3-6
|
||||||
|
- Fix obo in nodes_allowed_list strncpy (bz 516223)
|
||||||
|
|
||||||
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-5
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user