[arch-commits] Commit in bluez/trunk (PKGBUILD fix_commands_via_pipe_broken.diff)
Andreas Radke
andyrtr at archlinux.org
Sun Jul 24 16:06:08 UTC 2016
Date: Sunday, July 24, 2016 @ 16:06:07
Author: andyrtr
Revision: 272441
upgpkg: bluez 5.41-2
fix broken input commands from pipe FS#50130
Added:
bluez/trunk/fix_commands_via_pipe_broken.diff
Modified:
bluez/trunk/PKGBUILD
-----------------------------------+
PKGBUILD | 9 ++++++++-
fix_commands_via_pipe_broken.diff | 30 ++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-07-24 10:21:41 UTC (rev 272440)
+++ PKGBUILD 2016-07-24 16:06:07 UTC (rev 272441)
@@ -6,19 +6,26 @@
pkgbase=bluez
pkgname=('bluez' 'bluez-utils' 'bluez-libs' 'bluez-cups' 'bluez-hid2hci' 'bluez-plugins')
pkgver=5.41
-pkgrel=1
+pkgrel=2
url="http://www.bluez.org/"
arch=('i686' 'x86_64')
license=('GPL2')
makedepends=('dbus' 'libical' 'systemd')
source=(http://www.kernel.org/pub/linux/bluetooth/${pkgname}-${pkgver}.tar.{xz,sign}
+ fix_commands_via_pipe_broken.diff
bluetooth.modprobe)
# see https://www.kernel.org/pub/linux/bluetooth/sha256sums.asc
sha256sums=('df7dc4462494dad4e60a2943240d584f6e760235dca64f5f10eba46dbab7f5f0'
'SKIP'
+ '807d84588df5ea49338c6adb5605d091855fb234b47476dc6a0eb3f2f7ca3f72'
'46c021be659c9a1c4e55afd04df0c059af1f3d98a96338236412e449bf7477b4')
validpgpkeys=('E932D120BC2AEC444E558F0106CA9F5D1DCF2659') # Marcel Holtmann <marcel at holtmann.org>
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -Np1 -i ../fix_commands_via_pipe_broken.diff
+}
+
build() {
cd ${pkgname}-${pkgver}
./configure \
Added: fix_commands_via_pipe_broken.diff
===================================================================
--- fix_commands_via_pipe_broken.diff (rev 0)
+++ fix_commands_via_pipe_broken.diff 2016-07-24 16:06:07 UTC (rev 272441)
@@ -0,0 +1,30 @@
+From 5f2c8a15228f58f1f7ac772b738fcc1b98b761d1 Mon Sep 17 00:00:00 2001
+From: Johan Hedberg <johan.hedberg at intel.com>
+Date: Sun, 24 Jul 2016 16:18:37 +0300
+Subject: client: Don't attach stdin in connect_handler()
+
+connect_handler() gets called when we're connected to D-Bus but before
+introspection of the remote service (org.bluez) is complete. The
+client_ready() callback otoh waits until the introspection is complete
+and is already also taking care of attaching input.
+---
+ client/main.c | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/client/main.c b/client/main.c
+index 32341ad..056331f 100644
+--- a/client/main.c
++++ b/client/main.c
+@@ -120,9 +120,6 @@ static void connect_handler(DBusConnection *connection, void *user_data)
+ printf("\r");
+ rl_on_new_line();
+ rl_redisplay();
+-
+- if (!input)
+- input = setup_standard_input();
+ }
+
+ static void disconnect_handler(DBusConnection *connection, void *user_data)
+--
+cgit v0.12
+
More information about the arch-commits
mailing list