From 35f10eb924445634a6b4ec9d5d908df64b777370 Mon Sep 17 00:00:00 2001 From: David King Date: Wed, 22 Jul 2015 13:35:17 +0100 Subject: [PATCH] Add patch to fix broken printf string format --- tracker-1.5.1-fix-printf-string-format.patch | 29 ++++++++++++++++++++ tracker.spec | 6 +++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 tracker-1.5.1-fix-printf-string-format.patch diff --git a/tracker-1.5.1-fix-printf-string-format.patch b/tracker-1.5.1-fix-printf-string-format.patch new file mode 100644 index 0000000..377f656 --- /dev/null +++ b/tracker-1.5.1-fix-printf-string-format.patch @@ -0,0 +1,29 @@ +From ae76cb8c7aa3f4aff89f78bc124eeab06a58e083 Mon Sep 17 00:00:00 2001 +From: David King +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 + diff --git a/tracker.spec b/tracker.spec index 7bf4c3f..019c7a9 100644 --- a/tracker.spec +++ b/tracker.spec @@ -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 - 1.5.1-1 +* Wed Jul 22 2015 David King - 1.5.1-1 - Update to 1.5.1 * Tue Jul 21 2015 David King - 1.5.0-2