Skip to contentSkip to conversation

bluez5: Fix for --enable-btpclient

PATCH New Robert Yang 1 participant 2 messages Oct 15, 2019

lore
Share & tools
lore
#0 lore raw

v2 cover bluez5: Fix for --enable-btpclient

* V2:
- Fix upstream status to 'Backport' as Ross suggested

* V1:
- Initial version

The following changes since commit 59938780e7e776d87146002ea939b185f8704408:

build-appliance-image: Update to master head revision (2019-10-09 22:28:44 +0100)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib rbt/bluez
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/bluez

Robert Yang (1):
bluez5: Fix for --enable-btpclient

 meta/recipes-connectivity/bluez5/bluez5.inc        |  1 +
 .../0001-tools-btpclient.c-include-signal.h.patch  | 30 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 meta/recipes-connectivity/bluez5/bluez5/0001-tools-btpclient.c-include-signal.h.patch
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/1 bluez5: Fix for --enable-btpclient

Fixed:
PACKAGECONFIG_append_pn-bluez5 = ' btpclient'

$ bitbake bluez5
btpclient.c:2834:7: error: 'SIGINT' undeclared (first use in this function)
---
 meta/recipes-connectivity/bluez5/bluez5.inc        |  1 +
 .../0001-tools-btpclient.c-include-signal.h.patch  | 30 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 meta/recipes-connectivity/bluez5/bluez5/0001-tools-btpclient.c-include-signal.h.patch
meta/recipes-connectivity/bluez5/bluez5.inc +1 -0
index f582a07..1702323 100644
@@ -58,6 +58,7 @@ SRC_URI = "\
     file://CVE-2018-10910.patch \
     file://gcc9-fixes.patch \
     file://0001-tools-Fix-build-after-y2038-changes-in-glibc.patch \
+    file://0001-tools-btpclient.c-include-signal.h.patch \
 "
 S = "${WORKDIR}/bluez-${PV}"
 
meta/recipes-connectivity/bluez5/bluez5/0001-tools-btpclient.c-include-signal.h.patch new file +30 -0
new file mode 100644
index 0000000..620aaab
@@ -0,0 +1,30 @@
+From 0b1766514f6847c7367fce07f19a750ec74c11a6 Mon Sep 17 00:00:00 2001
+From: Robert Yang <[email protected]>
+Date: Thu, 26 Sep 2019 16:19:34 +0800
+Subject: [PATCH] tools/btpclient.c: include signal.h
+
+Fix compile failure when configure --enable-btpclient:
+btpclient.c:2834:7: error: 'SIGINT' undeclared (first use in this function)
+
+Upstream-Status: Backport [A subset of the full fix that went upstream]
+
+Signed-off-by: Robert Yang <[email protected]>
+---
+ tools/btpclient.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tools/btpclient.c b/tools/btpclient.c
+index b217df5..aece7fe 100644
+--- a/tools/btpclient.c
++++ b/tools/btpclient.c
+@@ -29,6 +29,7 @@
+ #include <stdlib.h>
+ #include <assert.h>
+ #include <getopt.h>
++#include <signal.h>
+ 
+ #include <ell/ell.h>
+ 
+-- 
+2.7.4
+
Signature · 1 line
2.7.4