From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 58D65138334 for ; Fri, 15 Feb 2019 14:15:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3D4F5E08EC; Fri, 15 Feb 2019 14:15:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EE12EE08EC for ; Fri, 15 Feb 2019 14:15:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CE97D335CBD for ; Fri, 15 Feb 2019 14:15:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1D02444B for ; Fri, 15 Feb 2019 14:15:19 +0000 (UTC) From: "Mart Raudsepp" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mart Raudsepp" Message-ID: <1550240068.fe6bac8296ebbf1da3f8bdb366f47ed4229fa163.leio@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/tracker/files/, app-misc/tracker/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/tracker/files/2.1.7-upgrade-path-fix.patch app-misc/tracker/tracker-2.1.7-r1.ebuild app-misc/tracker/tracker-2.1.7.ebuild X-VCS-Directories: app-misc/tracker/ app-misc/tracker/files/ X-VCS-Committer: leio X-VCS-Committer-Name: Mart Raudsepp X-VCS-Revision: fe6bac8296ebbf1da3f8bdb366f47ed4229fa163 X-VCS-Branch: master Date: Fri, 15 Feb 2019 14:15:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d364aa9f-2579-46fb-8e79-dd16baac9397 X-Archives-Hash: dfc261622fc73edef7c77852108726a2 commit: fe6bac8296ebbf1da3f8bdb366f47ed4229fa163 Author: Mart Raudsepp gentoo org> AuthorDate: Fri Feb 15 14:13:09 2019 +0000 Commit: Mart Raudsepp gentoo org> CommitDate: Fri Feb 15 14:14:28 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe6bac82 app-misc/tracker: fix database upgrade from tracker-1 Without the added patch tracker-store actually fails to upgrade the database from tracker-1 times to tracker-2 and exits, thus for users that had used tracker-1 already tracker-2 wouldn't actually work at all. This patch fixes it for me at least. This might only be a problem when upgrading from tracker-1 only now, while having sqlite at v3.25 or newer, but this will be the case for only main tree users. Bug: https://bugs.gentoo.org/672308 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Mart Raudsepp gentoo.org> .../tracker/files/2.1.7-upgrade-path-fix.patch | 33 ++++++++++++++++++++++ ...racker-2.1.7.ebuild => tracker-2.1.7-r1.ebuild} | 1 + 2 files changed, 34 insertions(+) diff --git a/app-misc/tracker/files/2.1.7-upgrade-path-fix.patch b/app-misc/tracker/files/2.1.7-upgrade-path-fix.patch new file mode 100644 index 00000000000..a1fa32738d8 --- /dev/null +++ b/app-misc/tracker/files/2.1.7-upgrade-path-fix.patch @@ -0,0 +1,33 @@ +From d7e31d6940efdb6716689136774a94cfdfd83189 Mon Sep 17 00:00:00 2001 +From: Carlos Garnacho +Date: Mon, 17 Dec 2018 13:34:23 +0100 +Subject: [PATCH] libtracker-data: Update FTS if base tables were altered + +That will issue an update of all tables, so the FTS view might be +affected. This is not caught by ontology change tests, as this +is a situation that can only happen when migrating from 1.x databases +ATM. + +(cherry picked from commit 70758fc059e91936e88d5264b195ac291e995144) +--- + src/libtracker-data/tracker-data-manager.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c +index f2addd0df..05a96b4dd 100644 +--- a/src/libtracker-data/tracker-data-manager.c ++++ b/src/libtracker-data/tracker-data-manager.c +@@ -3701,8 +3701,8 @@ tracker_data_ontology_import_into_db (TrackerDataManager *manager, + } + + #if HAVE_TRACKER_FTS +- if (in_update) { +- update_fts = tracker_data_manager_fts_changed (manager); ++ if (base_tables_altered || in_update) { ++ update_fts = base_tables_altered | tracker_data_manager_fts_changed (manager); + + if (update_fts) + tracker_db_interface_sqlite_fts_delete_table (iface); +-- +2.17.0 + diff --git a/app-misc/tracker/tracker-2.1.7.ebuild b/app-misc/tracker/tracker-2.1.7-r1.ebuild similarity index 98% rename from app-misc/tracker/tracker-2.1.7.ebuild rename to app-misc/tracker/tracker-2.1.7-r1.ebuild index 24923cfd409..c9232427a4b 100644 --- a/app-misc/tracker/tracker-2.1.7.ebuild +++ b/app-misc/tracker/tracker-2.1.7-r1.ebuild @@ -52,6 +52,7 @@ PATCHES=( "${FILESDIR}"/${PV}-prevent-stack-smashing.patch "${FILESDIR}"/${PV}-glib-2.60-compat.patch "${FILESDIR}"/${PV}-fix-library-symlinks.patch + "${FILESDIR}"/${PV}-upgrade-path-fix.patch ) function inotify_enabled() {