[packages/seahorse] - build fix for: seahorse-gpgme-keyring.c:862:1: error: size of array '_GStaticAssertCompileTimeAs

hawk hawk at pld-linux.org
Mon Jul 23 19:57:43 CEST 2012


commit d8fb0edee163e93f7940c80603313903c9513ca8
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Mon Jul 23 18:03:08 2012 +0000

    - build fix for:
      seahorse-gpgme-keyring.c:862:1: error: size of array '_GStaticAssertCompileTimeAssertion_12' is negative
      seahorse-gpgme-keyring.c:862:2: error: cannot convert to a pointer type

 seahorse-build.patch | 12 ++++++++++++
 seahorse.spec        |  4 +++-
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/seahorse-build.patch b/seahorse-build.patch
new file mode 100644
index 0000000..f4ae709
--- /dev/null
+++ b/seahorse-build.patch
@@ -0,0 +1,12 @@
+diff -ur seahorse-3.4.1.orig//pgp/seahorse-gpgme-keyring.c seahorse-3.4.1/pgp/seahorse-gpgme-keyring.c
+--- seahorse-3.4.1.orig//pgp/seahorse-gpgme-keyring.c	2012-01-27 13:50:26.000000000 +0000
++++ seahorse-3.4.1/pgp/seahorse-gpgme-keyring.c	2012-07-23 17:55:58.026184013 +0000
+@@ -859,7 +859,7 @@
+ {
+ 	SeahorseGpgmeKeyring *self = SEAHORSE_GPGME_KEYRING (object);
+ 
+-	g_clear_object (self->pv->actions);
++	g_clear_object (&self->pv->actions);
+ 	g_hash_table_destroy (self->pv->keys);
+ 
+ 	/* All monitoring and scheduling should be done */
diff --git a/seahorse.spec b/seahorse.spec
index 73211b4..8435e27 100644
--- a/seahorse.spec
+++ b/seahorse.spec
@@ -2,11 +2,12 @@ Summary:	Seahorse - A GNOME front end for GnuPG
 Summary(pl.UTF-8):	Seahorse - frontend GNOME do GnuPG
 Name:		seahorse
 Version:	3.4.1
-Release:	1
+Release:	2
 License:	GPL v2
 Group:		X11/Applications
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/seahorse/3.4/%{name}-%{version}.tar.xz
 # Source0-md5:	0d5215a1b6d5747afe0909f4d91f53b9
+Patch0:		%{name}-build.patch
 URL:		http://www.gnome.org/projects/seahorse/
 BuildRequires:	atk-devel >= 1.32.0
 BuildRequires:	autoconf >= 2.63
@@ -59,6 +60,7 @@ kluczami jest prowadzone przez intuicyjny interfejs.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__glib_gettextize}


More information about the pld-cvs-commit mailing list