packages: f-spot/f-spot.spec, f-spot/f-spot-taglib.patch (NEW) - fix compil...

baggins baggins at pld-linux.org
Thu Oct 28 22:43:26 CEST 2010


Author: baggins                      Date: Thu Oct 28 20:43:26 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix compilation issues with new mono in taglib
  https://bugzilla.gnome.org/show_bug.cgi?id=629222

---- Files affected:
packages/f-spot:
   f-spot.spec (1.103 -> 1.104) , f-spot-taglib.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/f-spot/f-spot.spec
diff -u packages/f-spot/f-spot.spec:1.103 packages/f-spot/f-spot.spec:1.104
--- packages/f-spot/f-spot.spec:1.103	Fri Sep 17 13:40:36 2010
+++ packages/f-spot/f-spot.spec	Thu Oct 28 22:43:21 2010
@@ -12,6 +12,7 @@
 Group:		X11/Applications/Graphics
 Source0:	http://ftp.gnome.org/Public/GNOME/sources/f-spot/0.8/%{name}-%{version}.tar.bz2
 # Source0-md5:	f7d52adbf280c972adccd66338e49f3d
+Patch0:		%{name}-taglib.patch
 URL:		http://www.gnome.org/projects/f-spot/
 BuildRequires:	GConf2-devel >= 2.14.0
 BuildRequires:	autoconf
@@ -70,6 +71,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__intltoolize}
@@ -146,6 +148,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.104  2010/10/28 20:43:21  baggins
+- fix compilation issues with new mono in taglib
+  https://bugzilla.gnome.org/show_bug.cgi?id=629222
+
 Revision 1.103  2010/09/17 11:40:36  alucard
 - added S: dcraw (for raw files support)
 

================================================================
Index: packages/f-spot/f-spot-taglib.patch
diff -u /dev/null packages/f-spot/f-spot-taglib.patch:1.1
--- /dev/null	Thu Oct 28 22:43:26 2010
+++ packages/f-spot/f-spot-taglib.patch	Thu Oct 28 22:43:21 2010
@@ -0,0 +1,47 @@
+From c1ef435b47a111046b86a5df33d98829762dc3ab Mon Sep 17 00:00:00 2001
+From: Marek Habersack <grendel at twistedcode.net>
+Date: Wed, 15 Sep 2010 23:18:08 +0200
+Subject: [PATCH] All fields of a struct must be initialized before the constructor returns
+
+---
+ src/TagLib/IFD/Entries/Rational.cs  |    6 ++++--
+ src/TagLib/IFD/Entries/SRational.cs |    6 ++++--
+ 2 files changed, 8 insertions(+), 4 deletions(-)
+
+diff --git a/src/TagLib/IFD/Entries/Rational.cs b/src/TagLib/IFD/Entries/Rational.cs
+index e8a69c5..2113a9a 100644
+--- f-spot-0.8.0/lib/TagLib/TagLib/src/TagLib/IFD/Entries/Rational.cs~
++++ f-spot-0.8.0/lib/TagLib/TagLib/src/TagLib/IFD/Entries/Rational.cs
+@@ -62,8 +62,10 @@ namespace TagLib.IFD.Entries
+ 		/// </param>
+ 		public Rational (uint numerator, uint denominator)
+ 		{
+-			Numerator = numerator;
+-			Denominator = denominator;
++			if (denominator == 0)
++				throw new ArgumentException ("denominator");
++			this.numerator = numerator;
++			this.denominator = denominator;
+ 		}
+ 
+ #endregion
+diff --git a/src/TagLib/IFD/Entries/SRational.cs b/src/TagLib/IFD/Entries/SRational.cs
+index f80dee8..59ca58a 100644
+--- f-spot-0.8.0/lib/TagLib/TagLib/src/TagLib/IFD/Entries/SRational.cs~
++++ f-spot-0.8.0/lib/TagLib/TagLib/src/TagLib/IFD/Entries/SRational.cs
+@@ -62,8 +62,10 @@ namespace TagLib.IFD.Entries
+ 		/// </param>
+ 		public SRational (int numerator, int denominator)
+ 		{
+-			Numerator = numerator;
+-			Denominator = denominator;
++			if (denominator == 0)
++				throw new ArgumentException ("denominator");
++			this.numerator = numerator;
++			this.denominator = denominator;
+ 		}
+ 
+ #endregion
+-- 
+1.7.2.3
+
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/f-spot/f-spot.spec?r1=1.103&r2=1.104&f=u



More information about the pld-cvs-commit mailing list