[arch-commits] Commit in dleyna-connector-dbus/trunk (PKGBUILD)
Date: Tuesday, May 19, 2020 @ 08:16:51 Author: felixonmars Revision: 386230 upgpkg: dleyna-connector-dbus 0.3.0-3: reproducibility rebuild Modified: dleyna-connector-dbus/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2020-05-19 08:16:46 UTC (rev 386229) +++ PKGBUILD2020-05-19 08:16:51 UTC (rev 386230) @@ -2,7 +2,7 @@ pkgname=dleyna-connector-dbus pkgver=0.3.0 -pkgrel=2 +pkgrel=3 pkgdesc="Provides a D-Bus API for the dLeyna services" arch=(x86_64) url="https://01.org/dleyna;
[arch-commits] Commit in dleyna-connector-dbus/trunk (PKGBUILD)
Date: Saturday, May 4, 2019 @ 18:54:52 Author: arojas Revision: 352484 https Modified: dleyna-connector-dbus/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2019-05-04 18:52:51 UTC (rev 352483) +++ PKGBUILD2019-05-04 18:54:52 UTC (rev 352484) @@ -5,7 +5,7 @@ pkgrel=2 pkgdesc="Provides a D-Bus API for the dLeyna services" arch=(x86_64) -url="http://01.org/dleyna; +url="https://01.org/dleyna; license=(LGPL2.1) depends=(dleyna-core dbus) makedepends=(git)
[arch-commits] Commit in dleyna-connector-dbus/trunk (PKGBUILD)
Date: Thursday, March 14, 2019 @ 11:31:11 Author: heftig Revision: 347928 0.3.0-2 Modified: dleyna-connector-dbus/trunk/PKGBUILD --+ PKGBUILD |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2019-03-14 11:28:30 UTC (rev 347927) +++ PKGBUILD2019-03-14 11:31:11 UTC (rev 347928) @@ -2,7 +2,7 @@ pkgname=dleyna-connector-dbus pkgver=0.3.0 -pkgrel=1 +pkgrel=2 pkgdesc="Provides a D-Bus API for the dLeyna services" arch=(x86_64) url="http://01.org/dleyna; @@ -27,6 +27,7 @@ cd $pkgname ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --disable-static + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make }
[arch-commits] Commit in dleyna-connector-dbus/trunk (PKGBUILD crash.patch)
Date: Wednesday, September 20, 2017 @ 18:55:49 Author: heftig Revision: 305942 0.3.0-1 Modified: dleyna-connector-dbus/trunk/PKGBUILD Deleted: dleyna-connector-dbus/trunk/crash.patch -+ PKGBUILD| 27 +++--- crash.patch | 83 -- 2 files changed, 16 insertions(+), 94 deletions(-) Modified: PKGBUILD === --- PKGBUILD2017-09-20 18:54:30 UTC (rev 305941) +++ PKGBUILD2017-09-20 18:55:49 UTC (rev 305942) @@ -2,25 +2,30 @@ # Maintainer: Jan Alexander Steffens (heftig)pkgname=dleyna-connector-dbus -pkgver=0.2.0 -pkgrel=2 +pkgver=0.3.0 +pkgrel=1 pkgdesc="Provides a D-Bus API for the dLeyna services" arch=(i686 x86_64) url="http://01.org/dleyna; license=(LGPL2.1) depends=(dleyna-core dbus) -source=(https://01.org/sites/default/files/downloads/dleyna/$pkgname-$pkgver.tar.gz -crash.patch) -sha256sums=('e791511206761282a658bb8253de076dcb1f8c8fbdc81219efe5ffe80cb2bea5' -'cf44774ba06160dbd6c8aa5f1a3caae0f054f44c3ae4613a8d17aa8464ee9195') +makedepends=(git) +_commit=1f0932aaacdd67700912a0c9c6e610f16f346ced # tags/0.3.0 +source=("git+https://github.com/01org/dleyna-connector-dbus#commit=$_commit;) +sha256sums=('SKIP') +pkgver() { + cd $pkgname + git describe --tags | sed 's/-/+/g' +} + prepare() { - cd $pkgname-$pkgver - patch -Np1 -i ../crash.patch + cd $pkgname + NOCONFIGURE=1 ./autogen.sh } build() { - cd $pkgname-$pkgver + cd $pkgname ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --disable-static make @@ -27,11 +32,11 @@ } check() { - cd $pkgname-$pkgver + cd $pkgname make check } package() { - cd $pkgname-$pkgver + cd $pkgname make DESTDIR="$pkgdir" install } Deleted: crash.patch === --- crash.patch 2017-09-20 18:54:30 UTC (rev 305941) +++ crash.patch 2017-09-20 18:55:49 UTC (rev 305942) @@ -1,83 +0,0 @@ -From 00870c6f44b68582c98cb36e73297f014c269f95 Mon Sep 17 00:00:00 2001 -From: Debarshi Ray -Date: Mon, 19 Jan 2015 19:24:05 +0100 -Subject: [PATCH] Don't crash when trying to unwatch non-existent client - -$ gdbus call \ ---session \ ---dest com.intel.dleyna-renderer \ ---object-path /com/intel/dLeynaRenderer \ ---method com.intel.dLeynaRenderer.Manager.Release - -If a service is spawned as a result of the above command, then it will -lead to a crash with this backtrace: - -(client_name=0x7f7c94009750 ":1.603") at src/connector-dbus.c:271 -(conn=, sender=0x7f7c94009750 ":1.603", -object=, interface=, -method=, parameters=, -invocation=0x2360e00) at server.c:780 -at gdbusconnection.c:4884 -at gmain.c:3111 -(context=context@entry=0x2342ea0) at gmain.c:3710 -block=block@entry=1, dispatch=dispatch@entry=1, -self=) at gmain.c:3781 -at gmain.c:3975 -(server=, control_point=, -user_data=0x0) at libdleyna/core/main-loop.c:155 -argv=) at daemon.c:93 - -This is because g_hash_table_lookup returns NULL which we try to -dereference to get the client_id. - -Instead of our hand-spun solution for storing unsigned integers in a -GHashTable, let's use standard GLib mechanisms for doing that. We -avoid this problem and reduce a g_new/g_free pair as a bonus. - src/connector-dbus.c | 11 --- - 1 file changed, 4 insertions(+), 7 deletions(-) - -diff --git a/src/connector-dbus.c b/src/connector-dbus.c -index 0e16239..83774c0 100644 a/src/connector-dbus.c -+++ b/src/connector-dbus.c -@@ -173,7 +173,7 @@ static gboolean prv_connector_initialize(const gchar *server_info, - g_context.objects = g_hash_table_new_full(g_direct_hash, g_direct_equal, - g_free, prv_free_dbus_object); - g_context.clients = g_hash_table_new_full(g_str_hash, g_str_equal, --g_free, g_free); -+g_free, NULL); - - g_context.root_node_info = g_dbus_node_info_new_for_xml(root_info, - NULL); -@@ -268,8 +268,8 @@ static void prv_connector_unwatch_client(const gchar *client_name) - - DLEYNA_LOG_DEBUG("Enter"); - -- client_id = *(guint *)g_hash_table_lookup(g_context.clients, --client_name); -+ client_id = GPOINTER_TO_UINT(g_hash_table_lookup(g_context.clients, -+ client_name)); - (void) g_hash_table_remove(g_context.clients, client_name); - - g_bus_unwatch_name(client_id); -@@ -287,7 +287,6 @@ static void prv_lost_client(GDBusConnection *connection, const gchar *name, - static gboolean prv_connector_watch_client(const gchar *client_name) - { -
[arch-commits] Commit in dleyna-connector-dbus/trunk (PKGBUILD crash.patch)
Date: Tuesday, June 30, 2015 @ 05:57:17 Author: heftig Revision: 241409 dleyna-core rebuild Added: dleyna-connector-dbus/trunk/crash.patch Modified: dleyna-connector-dbus/trunk/PKGBUILD -+ PKGBUILD| 13 ++--- crash.patch | 83 ++ 2 files changed, 93 insertions(+), 3 deletions(-) Modified: PKGBUILD === --- PKGBUILD2015-06-30 03:55:52 UTC (rev 241408) +++ PKGBUILD2015-06-30 03:57:17 UTC (rev 241409) @@ -3,15 +3,22 @@ pkgname=dleyna-connector-dbus pkgver=0.2.0 -pkgrel=1 +pkgrel=2 pkgdesc=Provides a D-Bus API for the dLeyna services arch=(i686 x86_64) url=http://01.org/dleyna; license=(LGPL2.1) depends=(dleyna-core dbus) -source=(https://01.org/sites/default/files/downloads/dleyna/$pkgname-$pkgver.tar.gz) -sha256sums=('e791511206761282a658bb8253de076dcb1f8c8fbdc81219efe5ffe80cb2bea5') +source=(https://01.org/sites/default/files/downloads/dleyna/$pkgname-$pkgver.tar.gz +crash.patch) +sha256sums=('e791511206761282a658bb8253de076dcb1f8c8fbdc81219efe5ffe80cb2bea5' +'cf44774ba06160dbd6c8aa5f1a3caae0f054f44c3ae4613a8d17aa8464ee9195') +prepare() { + cd $pkgname-$pkgver + patch -Np1 -i ../crash.patch +} + build() { cd $pkgname-$pkgver ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ Added: crash.patch === --- crash.patch (rev 0) +++ crash.patch 2015-06-30 03:57:17 UTC (rev 241409) @@ -0,0 +1,83 @@ +From 00870c6f44b68582c98cb36e73297f014c269f95 Mon Sep 17 00:00:00 2001 +From: Debarshi Ray debars...@freedesktop.org +Date: Mon, 19 Jan 2015 19:24:05 +0100 +Subject: [PATCH] Don't crash when trying to unwatch non-existent client + +$ gdbus call \ +--session \ +--dest com.intel.dleyna-renderer \ +--object-path /com/intel/dLeynaRenderer \ +--method com.intel.dLeynaRenderer.Manager.Release + +If a service is spawned as a result of the above command, then it will +lead to a crash with this backtrace: + +(client_name=0x7f7c94009750 :1.603) at src/connector-dbus.c:271 +(conn=optimized out, sender=0x7f7c94009750 :1.603, +object=optimized out, interface=optimized out, +method=optimized out, parameters=optimized out, +invocation=0x2360e00) at server.c:780 +at gdbusconnection.c:4884 +at gmain.c:3111 +(context=context@entry=0x2342ea0) at gmain.c:3710 +block=block@entry=1, dispatch=dispatch@entry=1, +self=optimized out) at gmain.c:3781 +at gmain.c:3975 +(server=optimized out, control_point=optimized out, +user_data=0x0) at libdleyna/core/main-loop.c:155 +argv=optimized out) at daemon.c:93 + +This is because g_hash_table_lookup returns NULL which we try to +dereference to get the client_id. + +Instead of our hand-spun solution for storing unsigned integers in a +GHashTable, let's use standard GLib mechanisms for doing that. We +avoid this problem and reduce a g_new/g_free pair as a bonus. +--- + src/connector-dbus.c | 11 --- + 1 file changed, 4 insertions(+), 7 deletions(-) + +diff --git a/src/connector-dbus.c b/src/connector-dbus.c +index 0e16239..83774c0 100644 +--- a/src/connector-dbus.c b/src/connector-dbus.c +@@ -173,7 +173,7 @@ static gboolean prv_connector_initialize(const gchar *server_info, + g_context.objects = g_hash_table_new_full(g_direct_hash, g_direct_equal, + g_free, prv_free_dbus_object); + g_context.clients = g_hash_table_new_full(g_str_hash, g_str_equal, +-g_free, g_free); ++g_free, NULL); + + g_context.root_node_info = g_dbus_node_info_new_for_xml(root_info, + NULL); +@@ -268,8 +268,8 @@ static void prv_connector_unwatch_client(const gchar *client_name) + + DLEYNA_LOG_DEBUG(Enter); + +- client_id = *(guint *)g_hash_table_lookup(g_context.clients, +-client_name); ++ client_id = GPOINTER_TO_UINT(g_hash_table_lookup(g_context.clients, ++ client_name)); + (void) g_hash_table_remove(g_context.clients, client_name); + + g_bus_unwatch_name(client_id); +@@ -287,7 +287,6 @@ static void prv_lost_client(GDBusConnection *connection, const gchar *name, + static gboolean prv_connector_watch_client(const gchar *client_name) + { + guint watch_id; +- guint *client_id; + gboolean added = TRUE; + + DLEYNA_LOG_DEBUG(Enter); +@@ -301,10 +300,8 @@ static gboolean prv_connector_watch_client(const gchar *client_name) + G_BUS_NAME_WATCHER_FLAGS_NONE, + NULL, prv_lost_client, NULL, +