net-wireless/bluez: Fix missing header build failure
authorPacho Ramos <pacho@gentoo.org>
Sat, 19 Jan 2019 08:17:18 +0000 (09:17 +0100)
committerPacho Ramos <pacho@gentoo.org>
Sat, 19 Jan 2019 08:56:23 +0000 (09:56 +0100)
Thanks-to: Dennis Schridde
Thanks-to: W. Duijvenvoorde
Closes: https://bugs.gentoo.org/675362
Package-Manager: Portage-2.3.55, Repoman-2.3.12
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
net-wireless/bluez/bluez-5.50-r1.ebuild
net-wireless/bluez/files/bluez-5.50-btpclient-header.patch [new file with mode: 0644]

index 176d40c87d0cbf408be184cdb8cad459b735a05d..677e62aad26bede0db6fd343c89b85094883ee0f 100644 (file)
@@ -60,6 +60,9 @@ DOC_CONTENTS="
 "
 
 PATCHES=(
+       # Fix missing header (fixed in 'master')
+       "${FILESDIR}"/${P}-btpclient-header.patch
+
        # Use static group "plugdev" to not force people to become root for
        # controlling the devices.
        "${FILESDIR}"/${PN}-plugdev.patch
diff --git a/net-wireless/bluez/files/bluez-5.50-btpclient-header.patch b/net-wireless/bluez/files/bluez-5.50-btpclient-header.patch
new file mode 100644 (file)
index 0000000..61a8e6a
--- /dev/null
@@ -0,0 +1,10 @@
+diff -Nuar bluez-5.50/tools/btpclient.c bluez-5.50-fixed/tools/btpclient.c
+--- bluez-5.50/tools/btpclient.c       2018-03-10 17:37:07.000000000 +0200
++++ bluez-5.50-fixed/tools/btpclient.c 2018-11-18 09:54:38.916794492 +0200
+@@ -29,6 +29,7 @@
+ #include <stdlib.h>
+ #include <assert.h>
+ #include <getopt.h>
++#include <signal.h>
+ #include <ell/ell.h>