All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [meta-opie][PATCH] opie-bluetoothd: fix compilation issues
Date: Wed, 14 Dec 2011 01:25:50 +0400	[thread overview]
Message-ID: <1323811550-876-1-git-send-email-dbaryshkov@gmail.com> (raw)

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@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@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




             reply	other threads:[~2011-12-13 21:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-13 21:25 Dmitry Eremin-Solenikov [this message]
2011-12-13 22:58 ` [meta-opie][PATCH] opie-bluetoothd: fix compilation issues Paul Eggleton
2011-12-13 23:32   ` Dmitry Eremin-Solenikov
2011-12-13 23:41     ` Paul Eggleton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1323811550-876-1-git-send-email-dbaryshkov@gmail.com \
    --to=dbaryshkov@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.