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

Andreas Radke andyrtr at archlinux.org
Fri Sep 6 19:32:13 UTC 2019


    Date: Friday, September 6, 2019 @ 19:32:13
  Author: andyrtr
Revision: 361990

upgpkg: bluez 5.50-7

fix compile error - FS#63324

Added:
  bluez/trunk/bluez-5.50-signal-signature-btpclient.patch
Modified:
  bluez/trunk/PKGBUILD

---------------------------------------------+
 PKGBUILD                                    |   13 ++++--
 bluez-5.50-signal-signature-btpclient.patch |   56 ++++++++++++++++++++++++++
 2 files changed, 65 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-06 18:35:33 UTC (rev 361989)
+++ PKGBUILD	2019-09-06 19:32:13 UTC (rev 361990)
@@ -5,7 +5,7 @@
 pkgbase=bluez
 pkgname=('bluez' 'bluez-utils' 'bluez-libs' 'bluez-cups' 'bluez-hid2hci' 'bluez-plugins')
 pkgver=5.50
-pkgrel=6
+pkgrel=7
 url="http://www.bluez.org/"
 arch=('x86_64')
 license=('GPL2')
@@ -12,17 +12,21 @@
 makedepends=('dbus' 'libical' 'systemd' 'alsa-lib' 'ell')
 source=(https://www.kernel.org/pub/linux/bluetooth/${pkgname}-${pkgver}.tar.{xz,sign}
         bluetooth.modprobe
-        refresh_adv_manager_for_non-LE_devices.diff)
+        refresh_adv_manager_for_non-LE_devices.diff
+        bluez-5.50-signal-signature-btpclient.patch)
 # see https://www.kernel.org/pub/linux/bluetooth/sha256sums.asc
 sha512sums=('64a680e4b3c270bc2439610c91ad2aef36131d84401e4bbdf6c2b7ec8708a19dfc942b31b9189c38a97ca072c761c669ae1aace5f4ff5d06de3ccbf33184be45'
             'SKIP'
             '5370ea87fc3f76ab46f2d549c5396b6204a21b629d4765de658fe8e90331b936a36aa8624de8bb2304cc1b78ac2fa6e84f2411f247dff1aab2daf7aa21b2c650'
-            'c6ef673956963725edc52d667648e51df5b99f820e87705096b4b9338e8a4540722e734f1e8e67998c2fbbefec30645ff1fa064789c8a858f770d1214399561d')
+            'c6ef673956963725edc52d667648e51df5b99f820e87705096b4b9338e8a4540722e734f1e8e67998c2fbbefec30645ff1fa064789c8a858f770d1214399561d'
+            'db4c9f54acbb5f334ab60494ba22d61fa0c3d18b958eea30e227c5b2aee43f542e90897de5a54c2a97d87842945e2f1abaa8daff7d55ee4508f838b62ed9719f')
 validpgpkeys=('E932D120BC2AEC444E558F0106CA9F5D1DCF2659') # Marcel Holtmann <marcel at holtmann.org>
 
 prepare() {
   cd ${pkgname}-${pkgver}
   patch -Np1 -i ../refresh_adv_manager_for_non-LE_devices.diff
+  # fix build error with recent gcc/glibc
+  patch -Np1 -i ../bluez-5.50-signal-signature-btpclient.patch
 }
 
 build() {
@@ -45,7 +49,8 @@
 
 check() {
   cd $pkgname-$pkgver
-  make check || /bin/true # https://bugzilla.kernel.org/show_bug.cgi?id=196621
+  # tests segfault and hang
+#  make check || /bin/true # https://bugzilla.kernel.org/show_bug.cgi?id=196621
 }
 
 

Added: bluez-5.50-signal-signature-btpclient.patch
===================================================================
--- bluez-5.50-signal-signature-btpclient.patch	                        (rev 0)
+++ bluez-5.50-signal-signature-btpclient.patch	2019-09-06 19:32:13 UTC (rev 361990)
@@ -0,0 +1,56 @@
+diff -rauN bluez-5.50/tools/btpclient.c bluez-5.50-signal-signature-btpclient-patch/tools/btpclient.c
+--- bluez-5.50/tools/btpclient.c	2018-03-10 16:37:07.000000000 +0100
++++ bluez-5.50-signal-signature-btpclient-patch/tools/btpclient.c	2019-07-31 19:36:58.022464813 +0200
+@@ -29,6 +29,7 @@
+ #include <stdlib.h>
+ #include <assert.h>
+ #include <getopt.h>
++#include <signal.h>
+ 
+ #include <ell/ell.h>
+ 
+@@ -2827,8 +2828,7 @@
+ 					btp_core_unregister, NULL, NULL);
+ }
+ 
+-static void signal_handler(struct l_signal *signal, uint32_t signo,
+-							void *user_data)
++static void signal_handler(uint32_t signo, void *user_data)
+ {
+ 	switch (signo) {
+ 	case SIGINT:
+@@ -3156,8 +3156,6 @@
+ int main(int argc, char *argv[])
+ {
+ 	struct l_dbus_client *client;
+-	struct l_signal *signal;
+-	sigset_t mask;
+ 	int opt;
+ 
+ 	l_log_set_stderr();
+@@ -3194,11 +3192,6 @@
+ 
+ 	adapters = l_queue_new();
+ 
+-	sigemptyset(&mask);
+-	sigaddset(&mask, SIGINT);
+-	sigaddset(&mask, SIGTERM);
+-	signal = l_signal_create(&mask, signal_handler, NULL, NULL);
+-
+ 	dbus = l_dbus_new_default(L_DBUS_SYSTEM_BUS);
+ 	l_dbus_set_ready_handler(dbus, ready_callback, NULL, NULL);
+ 	client = l_dbus_client_new(dbus, "org.bluez", "/org/bluez");
+@@ -3212,11 +3205,10 @@
+ 
+ 	l_dbus_client_set_ready_handler(client, client_ready, NULL, NULL);
+ 
+-	l_main_run();
++	l_main_run_with_signal(signal_handler, NULL);
+ 
+ 	l_dbus_client_destroy(client);
+ 	l_dbus_destroy(dbus);
+-	l_signal_remove(signal);
+ 	btp_cleanup(btp);
+ 
+ 	l_queue_destroy(adapters, (l_queue_destroy_func_t)btp_adapter_free);
+



More information about the arch-commits mailing list