[glances/f18] Patch to fix bug #914837 (noSuchProcess)

madko madko at fedoraproject.org
Sun Feb 24 00:27:56 UTC 2013


commit e39a5c33829127a3790fa4a8b607860666b0ac4f
Author: Edouard Bourguignon <madko at linuxed.net>
Date:   Fri Feb 22 14:01:54 2013 +0100

    Patch to fix bug #914837 (noSuchProcess)

 glances.spec                  |    9 +++++----
 glances_uninitialised_y.patch |   10 ++++++++++
 2 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/glances.spec b/glances.spec
index d3b18dc..3b49588 100644
--- a/glances.spec
+++ b/glances.spec
@@ -12,7 +12,8 @@ Group:		Applications/System
 License:	GPLv3
 URL:		https://github.com/nicolargo/glances
 Source0:	https://github.com/downloads/nicolargo/%{name}/%{name}-%{version}.tar.gz
-Patch0:		glances-1.5.2-noSuchProcess.patch
+Patch0:		glances_uninitialised_y.patch
+Patch1:		glances-1.5.2-noSuchProcess.patch
 BuildArch:	noarch
 BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 %if 0%{?rhel} && 0%{?rhel} <= 5
@@ -33,7 +34,7 @@ It is developed in Python.
 %prep
 %setup -q
 %patch0 -p1
-
+%patch1 -p1
 
 %build
 
@@ -62,8 +63,8 @@ rm -rf %{buildroot}
 * Sat Feb 23 2013 Edouard Bourguignon <madko at linuxed.net> - 1.5.2-3
 - Patch to fix bug #914837 (noSuchProcess)
 
-* Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.5.2-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
+* Sat Jan 12 2013 Edouard Bourguignon <madko at linuxed.net> - 1.5.2-2
+- Patch to initialize y in displayMem (bug #894347)
 
 * Sun Dec 30 2012 Edouard Bourguignon <madko at linuxed.net> - 1.5.2-1
 - Upgrade to 1.5.2
diff --git a/glances_uninitialised_y.patch b/glances_uninitialised_y.patch
new file mode 100644
index 0000000..31813eb
--- /dev/null
+++ b/glances_uninitialised_y.patch
@@ -0,0 +1,10 @@
+--- glances.ori/glances/glances.py	2013-01-12 18:34:45.152652060 +0100
++++ glances/glances/glances.py	2013-01-12 18:34:19.438452689 +0100
+@@ -1737,6 +1737,7 @@
+         return offset_x
+ 
+     def displayMem(self, mem, memswap, proclist, offset_x=0):
++	y = 0
+         # Memory
+         if not mem:
+             return 0


More information about the scm-commits mailing list