[oe] [meta-opie][PATCH] opie-bluetoothd: fix compilation issues
Dmitry Eremin-Solenikov
dbaryshkov at gmail.com
Tue Dec 13 21:25:50 UTC 2011
rfkill.cpp uses symbols from libsysfs. However opie-bluetoothd recipe
lacks dependency on sysfsutils (package containing libsysfs) and project
file also lacks -lsysfs in the LIBS rule. Fix those issues.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
---
recipes-opie/opie-bluetoothd/opie-bluetoothd.inc | 1 +
.../opie-bluetoothd/opie-bluetoothd/libsysfs.patch | 20 ++++++++++++++++++++
.../opie-bluetoothd/opie-bluetoothd_git.bb | 5 ++++-
3 files changed, 25 insertions(+), 1 deletions(-)
create mode 100644 recipes-opie/opie-bluetoothd/opie-bluetoothd/libsysfs.patch
diff --git a/recipes-opie/opie-bluetoothd/opie-bluetoothd.inc b/recipes-opie/opie-bluetoothd/opie-bluetoothd.inc
index 5cae5be..6c8f6a5 100644
--- a/recipes-opie/opie-bluetoothd/opie-bluetoothd.inc
+++ b/recipes-opie/opie-bluetoothd/opie-bluetoothd.inc
@@ -4,6 +4,7 @@ LICENSE = "GPLv2"
# FIXME stopgap until split archives have license files included
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
APPNAME = "opiebluetoothd"
+DEPENDS = "sysfsutils"
S = "${WORKDIR}/opiebluetoothd"
diff --git a/recipes-opie/opie-bluetoothd/opie-bluetoothd/libsysfs.patch b/recipes-opie/opie-bluetoothd/opie-bluetoothd/libsysfs.patch
new file mode 100644
index 0000000..0701e22
--- /dev/null
+++ b/recipes-opie/opie-bluetoothd/opie-bluetoothd/libsysfs.patch
@@ -0,0 +1,20 @@
+Upstream-Status: Pending
+Subject: Fix opiebluetoothd linking to libsysfs
+
+rfkill.cpp uses symbols from libsys. Add -lsysfs to the LIBS list
+
+Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
+
+Index: opiebluetoothd/opiebluetoothd.pro
+===================================================================
+--- opiebluetoothd.orig/opiebluetoothd.pro 2011-12-13 23:52:42.563082969 +0400
++++ opiebluetoothd/opiebluetoothd.pro 2011-12-14 01:10:28.375070146 +0400
+@@ -5,7 +5,7 @@
+ INTERFACES = bluetoothpindlgbase.ui
+ INCLUDEPATH += $(OPIEDIR)/include
+ DEPENDPATH += $(OPIEDIR)/include
+-LIBS += -lqpe -lopiecore2 -lopiebluez2 -lopieui2 -ldbus-qt2 $$system(pkg-config --libs dbus-1)
++LIBS += -lqpe -lopiecore2 -lopiebluez2 -lopieui2 -ldbus-qt2 $$system(pkg-config --libs dbus-1) -lsysfs
+
+ TARGET = opiebluetoothd
+
diff --git a/recipes-opie/opie-bluetoothd/opie-bluetoothd_git.bb b/recipes-opie/opie-bluetoothd/opie-bluetoothd_git.bb
index dac89e4..a9d29f3 100644
--- a/recipes-opie/opie-bluetoothd/opie-bluetoothd_git.bb
+++ b/recipes-opie/opie-bluetoothd/opie-bluetoothd_git.bb
@@ -1,4 +1,7 @@
require ${PN}.inc
PV = "${OPIE_GIT_PV}"
-SRC_URI = "${OPIE_GIT};protocol=git;subpath=noncore/net/opietooth/opiebluetoothd"
+SRC_URI = "\
+ ${OPIE_GIT};protocol=git;subpath=noncore/net/opietooth/opiebluetoothd \
+ file://libsysfs.patch \
+"
--
1.7.7.3
More information about the Openembedded-devel
mailing list