rpms/numactl/devel numactl-2.0.3-rc3-no-nodes-warning.patch, NONE, 1.1 numactl.spec, 1.58, 1.59
Neil Horman
nhorman at fedoraproject.org
Wed Jun 17 17:17:49 UTC 2009
- Previous message (by thread): rpms/eclipse-veditor/F-10 eclipse-veditor.spec, NONE, 1.1 import.log, NONE, 1.1 veditor_0_6_3.tar.bz, NONE, 1.1
- Next message (by thread): rpms/eclipse-veditor/F-11 eclipse-veditor.spec, NONE, 1.1 import.log, NONE, 1.1 veditor_0_6_3.tar.bz, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: nhorman
Update of /cvs/extras/rpms/numactl/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18725
Modified Files:
numactl.spec
Added Files:
numactl-2.0.3-rc3-no-nodes-warning.patch
Log Message:
Resolves: bz 499633)
numactl-2.0.3-rc3-no-nodes-warning.patch:
--- NEW FILE numactl-2.0.3-rc3-no-nodes-warning.patch ---
diff -up numactl-2.0.3-rc3/libnuma.c.orig numactl-2.0.3-rc3/libnuma.c
--- numactl-2.0.3-rc3/libnuma.c.orig 2009-06-17 13:13:28.000000000 -0400
+++ numactl-2.0.3-rc3/libnuma.c 2009-06-17 13:14:10.000000000 -0400
@@ -1209,9 +1209,10 @@ numa_node_to_cpus_v1(int node, unsigned
sprintf(fn, "/sys/devices/system/node/node%d/cpumap", node);
f = fopen(fn, "r");
if (!f || getdelim(&line, &len, '\n', f) < 1) {
- numa_warn(W_nosysfs2,
- "/sys not mounted or invalid. Assuming one node: %s",
- strerror(errno));
+ if (f)
+ numa_warn(W_nosysfs2,
+ "/sys not mounted or invalid. Assuming one node: %s",
+ strerror(errno));
bitmask.maskp = (unsigned long *)mask;
bitmask.size = buflen_needed * 8;
numa_bitmask_setall(&bitmask);
@@ -1287,9 +1288,10 @@ numa_node_to_cpus_v2(int node, struct bi
sprintf(fn, "/sys/devices/system/node/node%d/cpumap", node);
f = fopen(fn, "r");
if (!f || getdelim(&line, &len, '\n', f) < 1) {
- numa_warn(W_nosysfs2,
- "/sys not mounted or invalid. Assuming one node: %s",
- strerror(errno));
+ if (f)
+ numa_warn(W_nosysfs2,
+ "/sys not mounted or invalid. Assuming one node: %s",
+ strerror(errno));
numa_bitmask_setall(mask);
err = -1;
}
Index: numactl.spec
===================================================================
RCS file: /cvs/extras/rpms/numactl/devel/numactl.spec,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -p -r1.58 -r1.59
--- numactl.spec 8 May 2009 18:56:31 -0000 1.58
+++ numactl.spec 17 Jun 2009 17:17:18 -0000 1.59
@@ -1,7 +1,7 @@
Name: numactl
Summary: Library for tuning for Non Uniform Memory Access machines
Version: 2.0.3
-Release: 1%{dist}
+Release: 2%{dist}
License: LGPLv2/GPLv2
Group: System Environment/Base
URL: ftp://oss.sgi.com/www/projects/libnuma/download
@@ -9,6 +9,7 @@ Source0: ftp://oss.sgi.com/www/projects/
Buildroot: %{_tmppath}/%{name}-buildroot
Patch0: numactl-2.0.3-rc3-distance_parsing.patch
+Patch1: numactl-2.0.3-rc3-no-nodes-warning.patch
ExcludeArch: s390 s390x
@@ -28,6 +29,7 @@ Provides development headers for numa li
%prep
%setup -q -n %{name}-%{version}-rc3
%patch0 -p1
+%patch1 -p1
%build
make CFLAGS="$RPM_OPT_FLAGS -I."
@@ -69,6 +71,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/*.3*
%changelog
+* Wed Jun 17 2009 Neil Horman <nhorman at redhat.com>
+- Fix silly libnuma warnings again (bz 499633)
+
* Fri May 08 2009 Neil Horman <nhorman at redhat.com>
- Update to 2.0.3-rc3 (bz 499633)
- Previous message (by thread): rpms/eclipse-veditor/F-10 eclipse-veditor.spec, NONE, 1.1 import.log, NONE, 1.1 veditor_0_6_3.tar.bz, NONE, 1.1
- Next message (by thread): rpms/eclipse-veditor/F-11 eclipse-veditor.spec, NONE, 1.1 import.log, NONE, 1.1 veditor_0_6_3.tar.bz, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list