Add patch to fix broken printf string format

This commit is contained in:
David King 2015-07-22 13:35:17 +01:00
parent 7f99f0a581
commit 35f10eb924
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,29 @@
From ae76cb8c7aa3f4aff89f78bc124eeab06a58e083 Mon Sep 17 00:00:00 2001
From: David King <amigadave@amigadave.com>
Date: Wed, 22 Jul 2015 13:31:55 +0100
Subject: [PATCH] libtracker-data: Fix printf string format
Introduced by commit 81135ae19c727df716d0c0945869462e75a53497.
https://bugzilla.gnome.org/show_bug.cgi?id=752717
---
src/libtracker-data/tracker-db-interface-sqlite.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/libtracker-data/tracker-db-interface-sqlite.c b/src/libtracker-data/tracker-db-interface-sqlite.c
index 7ea87c8..17ea88d 100644
--- a/src/libtracker-data/tracker-db-interface-sqlite.c
+++ b/src/libtracker-data/tracker-db-interface-sqlite.c
@@ -1304,7 +1304,8 @@ tracker_db_interface_sqlite_fts_delete_id (TrackerDBInterface *db_interface,
stmt = tracker_db_interface_create_statement (db_interface,
TRACKER_DB_STATEMENT_CACHE_TYPE_UPDATE,
&error,
- db_interface->fts_delete_str);
+ "%s",
+ db_interface->fts_delete_str);
if (!stmt || error) {
if (error) {
g_warning ("Could not create FTS delete statement: %s",
--
2.4.6

View File

@ -28,6 +28,9 @@ Source0: https://download.gnome.org/sources/%{name}/1.5/%{name}-%{version
# https://bugzilla.redhat.com/show_bug.cgi?id=771601
Patch0: 0001-Only-autostart-in-GNOME-771601.patch
# Fix broken printf format string.
Patch1: tracker-1.5.1-fix-printf-string-format.patch
BuildRequires: desktop-file-utils
BuildRequires: firefox
BuildRequires: giflib-devel
@ -174,6 +177,7 @@ This package contains the documentation for tracker
%setup -q
%patch0 -p1 -b .autostart-gnome
%patch1 -p1 -b .tracker-printf
## nuke unwanted rpaths, see also
## https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
@ -325,7 +329,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
* Wed Jul 22 2015 Igor Gnatenko <ignatenko@src.gnome.org> - 1.5.1-1
* Wed Jul 22 2015 David King <amigadave@amigadave.com> - 1.5.1-1
- Update to 1.5.1
* Tue Jul 21 2015 David King <amigadave@amigadave.com> - 1.5.0-2