[packages/qof] - added format patch (fixes build with -Werror=format-security) - updated ac version - only libgda3

qboosh qboosh at pld-linux.org
Sun Dec 1 09:45:42 CET 2013


commit 65145b3f403f9f5d9c790d398d827661287d2d34
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 1 09:46:53 2013 +0100

    - added format patch (fixes build with -Werror=format-security)
    - updated ac version
    - only libgda3 is supported

 qof-format.patch | 11 +++++++++++
 qof.spec         |  8 +++++---
 2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/qof.spec b/qof.spec
index eaa7239..d239d34 100644
--- a/qof.spec
+++ b/qof.spec
@@ -7,13 +7,14 @@ License:	GPL v2+
 Group:		Libraries
 Source0:	https://alioth.debian.org/frs/download.php/file/3908/%{name}-%{version}.tar.gz
 # Source0-md5:	4f32eaf1fa92819fccb1590fdc2233a5
+Patch0:		%{name}-format.patch
 URL:		https://alioth.debian.org/projects/qof/
-BuildRequires:	autoconf >= 2.61
+BuildRequires:	autoconf >= 2.68
 BuildRequires:	automake
 BuildRequires:	db-devel
 BuildRequires:	gettext-devel >= 0.18.1
 BuildRequires:	glib2-devel >= 1:2.10.0
-BuildRequires:	libgda5-devel
+BuildRequires:	libgda3-devel >= 3.0.1
 BuildRequires:	libtool
 BuildRequires:	libxml2-devel >= 1:2.5.10
 BuildRequires:	perl-base >= 5.0
@@ -67,6 +68,7 @@ Statyczne biblioteki QOF.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__gettextize}
@@ -90,7 +92,7 @@ rm -rf $RPM_BUILD_ROOT
 
 # dlopened
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/qof2/libqof-backend-*.{la,a}
-
+# obsoleted by pkg-config
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libqof.la
 
 %find_lang %{name}
diff --git a/qof-format.patch b/qof-format.patch
new file mode 100644
index 0000000..fd4a357
--- /dev/null
+++ b/qof-format.patch
@@ -0,0 +1,11 @@
+--- qof-0.8.7/backend/gda/qof-gda.c.orig	2011-05-04 21:53:53.000000000 +0200
++++ qof-0.8.7/backend/gda/qof-gda.c	2013-12-01 09:30:05.564960365 +0100
+@@ -357,7 +357,7 @@
+ 		qof_error_set_be (be, qof_error_register (msg, FALSE));
+ 		PERR (" failed to connect to GDA: '%s'", msg);
+ 		qgda_be->error = TRUE;
+-		g_message (msg);
++		g_message ("%s", msg);
+ 		g_free (msg);
+ 		g_error_free (qgda_be->gda_err);
+ #ifdef ONLY_DEBUG
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/qof.git/commitdiff/65145b3f403f9f5d9c790d398d827661287d2d34



More information about the pld-cvs-commit mailing list