[arch-commits] Commit in rygel/trunk (3 files)

Jan Steffens heftig at gemini.archlinux.org
Wed Oct 13 18:06:39 UTC 2021


    Date: Wednesday, October 13, 2021 @ 18:06:38
  Author: heftig
Revision: 425862

0.40.2-2: fixes to tracker3 plugin

Added:
  rygel/trunk/0001-tracker3-Don-t-create-connection-in-static-construct.patch
  rygel/trunk/0002-tracker3-Correct-graph-name-for-video-items.patch
Modified:
  rygel/trunk/PKGBUILD

-----------------------------------------------------------------+
 0001-tracker3-Don-t-create-connection-in-static-construct.patch |   40 ++++++++++
 0002-tracker3-Correct-graph-name-for-video-items.patch          |   22 +++++
 PKGBUILD                                                        |   15 ++-
 3 files changed, 73 insertions(+), 4 deletions(-)

Added: 0001-tracker3-Don-t-create-connection-in-static-construct.patch
===================================================================
--- 0001-tracker3-Don-t-create-connection-in-static-construct.patch	                        (rev 0)
+++ 0001-tracker3-Don-t-create-connection-in-static-construct.patch	2021-10-13 18:06:38 UTC (rev 425862)
@@ -0,0 +1,40 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <jan.steffens at gmail.com>
+Date: Wed, 13 Oct 2021 17:33:05 +0000
+Subject: [PATCH] tracker3: Don't create connection in static constructor
+
+bus_new will wait for work in the GDBus thread to be completed. However,
+further type initialization in the GDBus thread will block on the GType
+class_init_rec_mutex we're already holding and we end up in a deadlock.
+---
+ .../tracker3/rygel-tracker-root-container.vala   | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/src/plugins/tracker3/rygel-tracker-root-container.vala b/src/plugins/tracker3/rygel-tracker-root-container.vala
+index c5d3b25a55d6..c7f722a81ce8 100644
+--- a/src/plugins/tracker3/rygel-tracker-root-container.vala
++++ b/src/plugins/tracker3/rygel-tracker-root-container.vala
+@@ -34,15 +34,15 @@ public class Rygel.Tracker.RootContainer : Rygel.SimpleContainer {
+ 
+     public static Sparql.Connection connection;
+ 
+-    static construct {
+-        try {
+-            RootContainer.connection = Sparql.Connection.bus_new (TRACKER_SERVICE, null);
+-        } catch (Error err) {
+-            error ("Failed to connect to tracker: %s", err.message);
+-        }
+-    }
+-
+     public RootContainer (string title) {
++        if (RootContainer.connection == null) {
++            try {
++                RootContainer.connection = Sparql.Connection.bus_new (TRACKER_SERVICE, null);
++            } catch (Error err) {
++                error ("Failed to connect to tracker: %s", err.message);
++            }
++        }
++
+         base.root (title);
+ 
+         if (this.get_bool_config_without_error ("share-music")) {

Added: 0002-tracker3-Correct-graph-name-for-video-items.patch
===================================================================
--- 0002-tracker3-Correct-graph-name-for-video-items.patch	                        (rev 0)
+++ 0002-tracker3-Correct-graph-name-for-video-items.patch	2021-10-13 18:06:38 UTC (rev 425862)
@@ -0,0 +1,22 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <jan.steffens at gmail.com>
+Date: Wed, 13 Oct 2021 17:55:24 +0000
+Subject: [PATCH] tracker3: Correct graph name for video items
+
+---
+ src/plugins/tracker3/rygel-tracker-video-item-factory.vala | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/plugins/tracker3/rygel-tracker-video-item-factory.vala b/src/plugins/tracker3/rygel-tracker-video-item-factory.vala
+index bed04c711eaf..7a765cf772bd 100644
+--- a/src/plugins/tracker3/rygel-tracker-video-item-factory.vala
++++ b/src/plugins/tracker3/rygel-tracker-video-item-factory.vala
+@@ -42,7 +42,7 @@ public class Rygel.Tracker.VideoItemFactory : ItemFactory {
+     private const string CATEGORY = "nmm:Video";
+     private const string CATEGORY_IRI = "http://www.tracker-project.org/" +
+                                         "temp/nmm#Video";
+-    private const string GRAPH = "tracker:Videos";
++    private const string GRAPH = "tracker:Video";
+ 
+     public VideoItemFactory () {
+         var upload_folder = Environment.get_user_special_dir

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-10-13 17:43:08 UTC (rev 425861)
+++ PKGBUILD	2021-10-13 18:06:38 UTC (rev 425862)
@@ -3,7 +3,7 @@
 
 pkgname=rygel
 pkgver=0.40.2
-pkgrel=1
+pkgrel=2
 epoch=1
 pkgdesc="UPnP AV MediaServer and MediaRenderer"
 url="https://wiki.gnome.org/Projects/Rygel"
@@ -17,12 +17,17 @@
             'gst-plugins-bad: Extra media codecs'
             'gst-plugins-ugly: Extra media codecs'
             'gst-libav: Extra media codecs'
-            'tracker3-miners: Share indexed media files')
+            'tracker3-miners: Share indexed media files'
+            'tumbler: Thumbnailing service')
 backup=(etc/rygel.conf)
 groups=(gnome)
 _commit=4cc71529e53acaae16957d38a6565396a7ebf6b4  # tags/rygel-0.40.2^0
-source=("git+https://gitlab.gnome.org/GNOME/rygel.git#commit=$_commit")
-sha256sums=('SKIP')
+source=("git+https://gitlab.gnome.org/GNOME/rygel.git#commit=$_commit"
+        0001-tracker3-Don-t-create-connection-in-static-construct.patch
+        0002-tracker3-Correct-graph-name-for-video-items.patch)
+sha256sums=('SKIP'
+            '888f5e0c23a677521074523b262e19de6f859f8bf44d614429fb75d2f960c4c3'
+            '17ef15116014dda19f6887b8d84b55876f998ed9f660f381f2636a92b63ada46')
 
 pkgver() {
   cd $pkgname
@@ -32,6 +37,8 @@
 prepare() {
   cd $pkgname
   git cherry-pick -n d0410cccf6af55e16d3ba9400ad5e9f703313739
+  git apply -3 ../0001-tracker3-Don-t-create-connection-in-static-construct.patch
+  git apply -3 ../0002-tracker3-Correct-graph-name-for-video-items.patch
 }
 
 build() {



More information about the arch-commits mailing list