]> git.pld-linux.org Git - packages/libgda.git/commitdiff
- added format patch (fixes build with -Werror=format-security) auto/th/libgda-1.2.4-19
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 5 Jan 2013 21:39:46 +0000 (22:39 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 5 Jan 2013 21:39:46 +0000 (22:39 +0100)
libgda-format.patch [new file with mode: 0644]
libgda.spec

diff --git a/libgda-format.patch b/libgda-format.patch
new file mode 100644 (file)
index 0000000..335e5c0
--- /dev/null
@@ -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);
index 4f6097daa92f417b9bba881eb3dc58e0217a80be..f14297190eef69f67da4ef57e0c4975d97442549 100644 (file)
@@ -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
This page took 0.135611 seconds and 4 git commands to generate.