[arch-commits] Commit in rygel/repos (4 files)

Jan Steffens heftig at gemini.archlinux.org
Mon Oct 25 20:12:59 UTC 2021


    Date: Monday, October 25, 2021 @ 20:12:59
  Author: heftig
Revision: 426560

archrelease: copy trunk to staging-x86_64

Added:
  rygel/repos/staging-x86_64/
  rygel/repos/staging-x86_64/0001-tracker3-Don-t-create-connection-in-static-construct.patch
    (from rev 426559, rygel/trunk/0001-tracker3-Don-t-create-connection-in-static-construct.patch)
  rygel/repos/staging-x86_64/0002-tracker3-Correct-graph-name-for-video-items.patch
    (from rev 426559, rygel/trunk/0002-tracker3-Correct-graph-name-for-video-items.patch)
  rygel/repos/staging-x86_64/PKGBUILD
    (from rev 426559, 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                                                        |   55 ++++++++++
 3 files changed, 117 insertions(+)

Copied: rygel/repos/staging-x86_64/0001-tracker3-Don-t-create-connection-in-static-construct.patch (from rev 426559, rygel/trunk/0001-tracker3-Don-t-create-connection-in-static-construct.patch)
===================================================================
--- staging-x86_64/0001-tracker3-Don-t-create-connection-in-static-construct.patch	                        (rev 0)
+++ staging-x86_64/0001-tracker3-Don-t-create-connection-in-static-construct.patch	2021-10-25 20:12:59 UTC (rev 426560)
@@ -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")) {

Copied: rygel/repos/staging-x86_64/0002-tracker3-Correct-graph-name-for-video-items.patch (from rev 426559, rygel/trunk/0002-tracker3-Correct-graph-name-for-video-items.patch)
===================================================================
--- staging-x86_64/0002-tracker3-Correct-graph-name-for-video-items.patch	                        (rev 0)
+++ staging-x86_64/0002-tracker3-Correct-graph-name-for-video-items.patch	2021-10-25 20:12:59 UTC (rev 426560)
@@ -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

Copied: rygel/repos/staging-x86_64/PKGBUILD (from rev 426559, rygel/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2021-10-25 20:12:59 UTC (rev 426560)
@@ -0,0 +1,55 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=rygel
+pkgver=0.40.2
+pkgrel=3
+epoch=1
+pkgdesc="UPnP AV MediaServer and MediaRenderer"
+url="https://wiki.gnome.org/Projects/Rygel"
+arch=(x86_64)
+license=(LGPL)
+depends=(gupnp gupnp-av gupnp-dlna libgee gtk3 libunistring tracker3
+         libmediaart gst-editing-services)
+makedepends=(vala gobject-introspection git meson)
+optdepends=('gst-plugins-base: Extra media codecs'
+            'gst-plugins-good: Extra media codecs'
+            'gst-plugins-bad: Extra media codecs'
+            'gst-plugins-ugly: Extra media codecs'
+            'gst-libav: Extra media codecs'
+            '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"
+        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
+  git describe --tags | sed 's/^RYGEL//;s/^rygel-//;s/_/./g;s/-/+/g'
+}
+
+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() {
+  arch-meson $pkgname build
+  meson compile -C build
+}
+
+check() {
+  meson test -C build --print-errorlogs
+}
+
+package() {
+  meson install -C build --destdir "$pkgdir"
+}



More information about the arch-commits mailing list