From: Jakub Bogusz Date: Sat, 5 Jan 2013 21:39:46 +0000 (+0100) Subject: - added format patch (fixes build with -Werror=format-security) X-Git-Tag: auto/th/libgda-1.2.4-19 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=24d1d43678a7e4814082b36af89d47c4fa22a84a;p=packages%2Flibgda.git - added format patch (fixes build with -Werror=format-security) --- 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); 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