Skip to contentSkip to conversation

bluepy_git.bb: Added recipe for BluePy - Python interface to Bluetooth LE on Linux

PATCH Superseded Marco Cavallini 2 participants 5 messages Oct 18, 2021 – Oct 19, 2021 2 messages not in the archive

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bluepy_git.bb: Added recipe for BluePy - Python interface to Bluetooth LE on Linux

From: Marco Cavallini <[email protected]>

---
 .../recipes-connectivity/bluepy/bluepy_git.bb    | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta-networking/recipes-connectivity/bluepy/bluepy_git.bb
meta-networking/recipes-connectivity/bluepy/bluepy_git.bb new file +16 -0
new file mode 100644
index 000000000..651a75254
@@ -0,0 +1,16 @@
+DESCRIPTION = "Python interface to Bluetooth LE on Linux"
+HOMEPAGE = "https://github.com/IanHarvey/bluepy"
+SECTION = "devel/python"
+
+DEPENDS = "${PYTHON_PN} glib-2.0"
+RDEPENDS_${PN} = "bluez5"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+inherit setuptools3
+
+SRC_URI = "git://github.com/IanHarvey/bluepy.git;protocol=https;rev=7ad565231a97c304c0eff45f2649cd005e69db09"
+S = "${WORKDIR}/git"
+
+TARGET_CC_ARCH += "${LDFLAGS}"
\ No newline at end of file
Signature · 1 line
2.17.1
#1 lore raw
Quoted 14 lines · Marco Cavallini

From: Marco Cavallini <[email protected]>

---
  .../recipes-connectivity/bluepy/bluepy_git.bb    | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)

create mode 100644 meta-networking/recipes-connectivity/bluepy/bluepy_git.bb

meta-networking/recipes-connectivity/bluepy/bluepy_git.bb new file +0 -0
new file mode 100644
index 000000000..651a75254

meta-networking/recipes-connectivity/bluepy/bluepy_git.bb line 8

Quoted 8 lines
meta-networking/recipes-connectivity/bluepy/bluepy_git.bb new file +8 -0
@@ -0,0 +1,16 @@
+DESCRIPTION = "Python interface to Bluetooth LE on Linux"
+HOMEPAGE = "https://github.com/IanHarvey/bluepy"
+SECTION = "devel/python"
+
+DEPENDS = "${PYTHON_PN} glib-2.0"
+RDEPENDS_${PN} = "bluez5"
+
+LICENSE = "GPLv2"

It also has pubic domain licensed code as I see in https://github.com/IanHarvey/bluepy/blob/master/LICENSE.txt so perhaps PD would also need to be added here.

meta-networking/recipes-connectivity/bluepy/bluepy_git.bb line 16

Quoted 8 lines
meta-networking/recipes-connectivity/bluepy/bluepy_git.bb new file +8 -0
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+inherit setuptools3
+
+SRC_URI = "git://github.com/IanHarvey/bluepy.git;protocol=https;rev=7ad565231a97c304c0eff45f2649cd005e69db09"
+S = "${WORKDIR}/git"
+
+TARGET_CC_ARCH += "${LDFLAGS}"

do we know why this is needed ?
is it ignoring LDFLAGS ?

Quoted 12 lines

\ No newline at end of file

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#93424): https://lists.openembedded.org/g/openembedded-devel/message/93424
Mute This Topic: https://lists.openembedded.org/mt/86415050/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

this is failing to build also see

https://errors.yoctoproject.org/Errors/Details/613234/
https://errors.yoctoproject.org/Errors/Details/613235/

Quoted 79 lines · Khem Raj
Quoted 35 lines · Marco
Quoted 24 lines · Khem Raj
Quoted 21 lines · Marco Cavallini

From: Marco Cavallini <[email protected]>

---
  .../recipes-connectivity/bluepy/bluepy_git.bb    | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)

create mode 100644
meta-networking/recipes-connectivity/bluepy/bluepy_git.bb

diff --git a/meta-networking/recipes-connectivity/bluepy/bluepy_git.bb b/meta-networking/recipes-connectivity/bluepy/bluepy_git.bb new file mode 100644
index 000000000..651a75254

meta-networking/recipes-connectivity/bluepy/bluepy_git.bb new file +4 -0
@@ -0,0 +1,16 @@
+DESCRIPTION = "Python interface to Bluetooth LE on Linux"
+HOMEPAGE = "https://github.com/IanHarvey/bluepy"
+SECTION = "devel/python"
+
Quoted 9 lines

meta-networking/recipes-connectivity/bluepy/bluepy_git.bb line 8

Quoted 4 lines
meta-networking/recipes-connectivity/bluepy/bluepy_git.bb new file +4 -0
+DEPENDS = "${PYTHON_PN} glib-2.0"
+RDEPENDS_${PN} = "bluez5"
+
+LICENSE = "GPLv2"

It also has pubic domain licensed code as I see in
https://github.com/IanHarvey/bluepy/blob/master/LICENSE.txt so perhaps PD would also need to be added here.

Quoted 10 lines

Hi Khem,
What about replacing with this?

LICENSE = "GPLv2 & PD"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851"

that would work.

Quoted 27 lines
Quoted 10 lines
Quoted 10 lines
meta-networking/recipes-connectivity/bluepy/bluepy_git.bb new file +1 -0
+LIC_FILES_CHKSUM =

"file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"

meta-networking/recipes-connectivity/bluepy/bluepy_git.bb new file +4 -0
+
+inherit setuptools3
+
+SRC_URI =

"git://github.com/IanHarvey/bluepy.git;protocol=https;rev=7ad565231a97c304c0eff45f2649cd005e69db09"

Quoted 7 lines

meta-networking/recipes-connectivity/bluepy/bluepy_git.bb line 16

Quoted 3 lines
meta-networking/recipes-connectivity/bluepy/bluepy_git.bb new file +3 -0
+S = "${WORKDIR}/git"
+
+TARGET_CC_ARCH += "${LDFLAGS}"

do we know why this is needed ?
is it ignoring LDFLAGS ?

If I remove it:
ERROR: bluepy-git-r0 do_package_qa: QA Issue: File /usr/lib/python3.8/site-packages/bluepy/bluepy-helper in package bluepy doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags]

Thanks
--
Marco

author
#5 lore raw
Quoted 4 lines · Khem Raj

this is failing to build also see

https://errors.yoctoproject.org/Errors/Details/613234/
https://errors.yoctoproject.org/Errors/Details/613235/

Hi Khem,
I solved both issues.
Do I have to resend [PATCH v2] or simply comment the recipe here ? Thanks

```
DESCRIPTION = "Python interface to Bluetooth LE on Linux"
HOMEPAGE = "https://github.com/IanHarvey/bluepy"
SECTION = "devel/python"

DEPENDS = "${PYTHON_PN} glib-2.0"
RDEPENDS_${PN} = "bluez5"

LICENSE = "GPLv2 & PD"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851"

inherit setuptools3 pkgconfig

SRC_URI = "git://github.com/IanHarvey/bluepy.git;protocol=https;rev=7ad565231a97c304c0eff45f2649cd005e69db09"
S = "${WORKDIR}/git"

TARGET_CC_ARCH += "${LDFLAGS}"
```

--
Marco

#6 lore raw

Hi Marco

Quoted 10 lines · Marco
Quoted 4 lines · Khem Raj

this is failing to build also see

https://errors.yoctoproject.org/Errors/Details/613234/
https://errors.yoctoproject.org/Errors/Details/613235/

Hi Khem,
I solved both issues.
Do I have to resend [PATCH v2] or simply comment the recipe here ?

Please send a v2, so I can take verbatim what you have tested

Quoted 28 lines

Thanks

```
DESCRIPTION = "Python interface to Bluetooth LE on Linux"
HOMEPAGE = "https://github.com/IanHarvey/bluepy"
SECTION = "devel/python"

DEPENDS = "${PYTHON_PN} glib-2.0"
RDEPENDS_${PN} = "bluez5"

LICENSE = "GPLv2 & PD"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" 

LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851" 


inherit setuptools3 pkgconfig

SRC_URI = "git://github.com/IanHarvey/bluepy.git;protocol=https;rev=7ad565231a97c304c0eff45f2649cd005e69db09" 

S = "${WORKDIR}/git"

TARGET_CC_ARCH += "${LDFLAGS}"
```
Signature · 1 line
Marco