[packages/heap-shot] - added fix patch; now builds with mono 3.2.3

qboosh qboosh at pld-linux.org
Mon Oct 21 20:52:08 CEST 2013


commit 9f4a8ae329a98654663b2900ac6986bcd7b37d89
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Oct 21 20:51:37 2013 +0200

    - added fix patch; now builds with mono 3.2.3

 heap-shot-fix.patch | 19 +++++++++++++++++++
 heap-shot.spec      |  2 ++
 2 files changed, 21 insertions(+)
---
diff --git a/heap-shot.spec b/heap-shot.spec
index 7d2649e..e74b136 100644
--- a/heap-shot.spec
+++ b/heap-shot.spec
@@ -12,6 +12,7 @@ Source0:	%{name}.tar.bz2
 # Source0-md5:	976f917b5703eb321b7acac42e6f9000
 Patch0:		%{name}-unicode-dot.patch
 Patch1:		%{name}-build.patch
+Patch2:		%{name}-fix.patch
 URL:		http://www.mono-project.com/HeapShot
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -37,6 +38,7 @@ two separate points in time.
 %setup -q -n %{name}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__libtoolize}
diff --git a/heap-shot-fix.patch b/heap-shot-fix.patch
new file mode 100644
index 0000000..47e67d1
--- /dev/null
+++ b/heap-shot-fix.patch
@@ -0,0 +1,19 @@
+--- heap-shot/HeapShot.Gui.Widgets/ReferenceTreeViewer.cs.orig	2010-05-07 20:20:25.000000000 +0200
++++ heap-shot/HeapShot.Gui.Widgets/ReferenceTreeViewer.cs	2013-10-21 20:33:54.693743484 +0200
+@@ -426,7 +426,7 @@
+ 						} else
+ 							return string.Format ("There are <b>{0:n0}</b> bytes of <b>{1}</b> objects", node.TotalMemory, GetShortName (node.TypeName));
+ 					}
+-					case 6:
++					case 6: {
+ 						string pname = GetParentType (iter);
+ 						if (pname != null) {
+ 							if (InverseReferences)
+@@ -435,6 +435,7 @@
+ 								return string.Format ("Objects of type <b>{0}</b> referenced by <b>{2}</b> objects have an average size of <b>{1:n0}</b> bytes", GetShortName (node.TypeName), node.AverageSize, pname);
+ 						} else
+ 							return string.Format ("Objects of type <b>{0}</b> have an average size of <b>{1:n0}</b> bytes", GetShortName (node.TypeName), node.AverageSize);
++					}
+ 				}
+ 			} else {
+ 				FieldReference fr = (FieldReference) ob;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/heap-shot.git/commitdiff/9f4a8ae329a98654663b2900ac6986bcd7b37d89



More information about the pld-cvs-commit mailing list