[packages/libgda] - added format patch (fixes build with -Werror=format-security)
qboosh
qboosh at pld-linux.org
Sat Jan 5 22:39:44 CET 2013
commit 24d1d43678a7e4814082b36af89d47c4fa22a84a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jan 5 22:39:46 2013 +0100
- added format patch (fixes build with -Werror=format-security)
libgda-format.patch | 25 +++++++++++++++++++++++++
libgda.spec | 14 ++++++++------
2 files changed, 33 insertions(+), 6 deletions(-)
---
diff --git a/libgda.spec b/libgda.spec
index 4f6097d..f142971 100644
--- a/libgda.spec
+++ b/libgda.spec
@@ -36,6 +36,7 @@ Patch7: %{name}-sybase.patch
Patch8: %{name}-firebird.patch
Patch9: glib.patch
Patch10: %{name}-xml.patch
+Patch11: %{name}-format.patch
URL: http://www.gnome-db.org/
%{?with_firebird:BuildRequires: Firebird-devel}
BuildRequires: autoconf >= 2.59
@@ -290,6 +291,7 @@ Pakiet dostarczający dane z xBase (dBase, Clippera, FoxPro) dla GDA.
%patch8 -p1
%patch9 -p1
%patch10 -p1
+%patch11 -p1
%build
CXXFLAGS="%{rpmcxxflags} -fno-rtti -fno-exceptions"
@@ -343,12 +345,12 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/gda-config-tool
-%attr(755,root,root) %{_libdir}/libgda-2.so.*.*
-%attr(755,root,root) %{_libdir}/libgda-report-2.so.*.*
-%attr(755,root,root) %{_libdir}/libgdasql.so.*.*
-%ghost %{_libdir}/libgda-2.so.3
-%ghost %{_libdir}/libgda-report-2.so.3
-%ghost %{_libdir}/libgdasql.so.3
+%attr(755,root,root) %{_libdir}/libgda-2.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgda-2.so.3
+%attr(755,root,root) %{_libdir}/libgda-report-2.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgda-report-2.so.3
+%attr(755,root,root) %{_libdir}/libgdasql.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgdasql.so.3
%dir %{_libdir}/libgda
%dir %{_libdir}/libgda/providers
%attr(755,root,root) %{_libdir}/libgda/providers/libgda-xml.so
diff --git a/libgda-format.patch b/libgda-format.patch
new file mode 100644
index 0000000..335e5c0
--- /dev/null
+++ b/libgda-format.patch
@@ -0,0 +1,25 @@
+--- libgda-1.2.4/providers/postgres/gda-postgres-provider.c.orig 2007-01-09 13:50:57.000000000 +0100
++++ libgda-1.2.4/providers/postgres/gda-postgres-provider.c 2013-01-05 20:50:03.335312531 +0100
+@@ -837,7 +837,7 @@
+ result = gda_postgres_provider_single_command (pg_prv, cnc, "BEGIN");
+ if (result&&isolation_level != NULL) {
+ result=gda_postgres_provider_single_command (pg_prv, cnc, isolation_level) ;
+- g_message (isolation_level);
++ g_message ("%s", isolation_level);
+ }
+ g_free(isolation_level);
+
+--- libgda-1.2.4/tools/gda-config-tool.c.orig 2007-01-09 13:50:52.000000000 +0100
++++ libgda-1.2.4/tools/gda-config-tool.c 2013-01-05 21:46:55.702888382 +0100
+@@ -1396,9 +1396,9 @@
+ const char *paramInDsn = "DSN parameters:";
+
+ g_print ("Provider name: %s\n", info->id);
+- g_print (desc);
++ g_print ("%s", desc);
+ pretty_print (info->description, strlen (desc));
+- g_print (paramInDsn);
++ g_print ("%s", paramInDsn);
+ str = g_string_new (NULL);
+ g_list_foreach (info->gda_params, add_param_name_to_string, str);
+ pretty_print (str->str, strlen (paramInDsn) + 1);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libgda.git/commitdiff/24d1d43678a7e4814082b36af89d47c4fa22a84a
More information about the pld-cvs-commit
mailing list