[arch-commits] Commit in tracker/trunk (2 files)

Jan Steffens heftig at archlinux.org
Mon Mar 9 22:56:45 UTC 2020


    Date: Monday, March 9, 2020 @ 22:56:45
  Author: heftig
Revision: 377239

fix tracker-miners tests

Added:
  tracker/trunk/0001-tracker-store-Fix-NULL-check.patch
Modified:
  tracker/trunk/PKGBUILD

-----------------------------------------+
 0001-tracker-store-Fix-NULL-check.patch |   26 ++++++++++++++++++++++++++
 PKGBUILD                                |    7 +++++--
 2 files changed, 31 insertions(+), 2 deletions(-)

Added: 0001-tracker-store-Fix-NULL-check.patch
===================================================================
--- 0001-tracker-store-Fix-NULL-check.patch	                        (rev 0)
+++ 0001-tracker-store-Fix-NULL-check.patch	2020-03-09 22:56:45 UTC (rev 377239)
@@ -0,0 +1,26 @@
+From e93d6241eba74aac269e2fb1327e7438e3b38e78 Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <jan.steffens at gmail.com>
+Date: Mon, 9 Mar 2020 22:49:22 +0000
+Subject: [PATCH] tracker-store: Fix NULL check
+
+The inverted condition made tracker-miners' test suite fail.
+---
+ src/tracker-store/tracker-writeback.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/tracker-store/tracker-writeback.c b/src/tracker-store/tracker-writeback.c
+index fde45afc0..4026b924a 100644
+--- a/src/tracker-store/tracker-writeback.c
++++ b/src/tracker-store/tracker-writeback.c
+@@ -200,7 +200,7 @@ tracker_writeback_transact (void)
+ 	GHashTableIter iter;
+ 	gpointer key, value;
+ 
+-	g_return_if_fail (private == NULL);
++	g_return_if_fail (private != NULL);
+ 
+ 	if (!private->pending_events)
+ 		return;
+-- 
+2.25.1
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-09 22:53:28 UTC (rev 377238)
+++ PKGBUILD	2020-03-09 22:56:45 UTC (rev 377239)
@@ -16,8 +16,10 @@
 provides=(libtracker-{control,miner,sparql}-2.0.so)
 groups=(gnome)
 _commit=fe89b9afbb340d35b55c5630b9640338de9e63a7  # tags/2.3.3^0
-source=("git+https://gitlab.gnome.org/GNOME/tracker.git#commit=$_commit")
-sha256sums=('SKIP')
+source=("git+https://gitlab.gnome.org/GNOME/tracker.git#commit=$_commit"
+        0001-tracker-store-Fix-NULL-check.patch)
+sha256sums=('SKIP'
+            'e7ae90cc2a3843a171a352f92d48117e35d762122c0e8579318b15d44d1a1125')
 
 pkgver() {
   cd $pkgname
@@ -26,6 +28,7 @@
 
 prepare() {
   cd $pkgname
+  git apply -3 ../0001-tracker-store-Fix-NULL-check.patch
 }
 
 build() {



More information about the arch-commits mailing list