Skip to contentSkip to conversation

bluepy: Set PV and correct syntax for RDEPENDS

PATCH In review Khem Raj 2 participants 4 messages Oct 20, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 bluepy: Set PV and correct syntax for RDEPENDS

Also organize the recipe to to match OE style Remove PYTHON_PN from DEPENDS, setuptools should be enough Correct setting LIC_FILES_CHKSUM
Move setting git SHA to SRCREV

Cc Marco Cavallini <[email protected]>
Cc Martin Jansa <[email protected]>
---
 .../recipes-connectivity/bluepy/bluepy_git.bb    | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
meta-networking/recipes-connectivity/bluepy/bluepy_git.bb +9 -7
index 03b1562b60..c1bcbc25b1 100644
@@ -1,17 +1,19 @@
 DESCRIPTION = "Python interface to Bluetooth LE on Linux"
 HOMEPAGE = "https://github.com/IanHarvey/bluepy"
 SECTION = "devel/python"
+LICENSE = "GPLv2 & PD"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6 \
+                    file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851"
+DEPENDS = "glib-2.0"
+SRCREV = "7ad565231a97c304c0eff45f2649cd005e69db09"
+PV = "1.3.0+git${SRCPV}"
 
-DEPENDS = "${PYTHON_PN} glib-2.0"
-RDEPENDS_${PN} = "bluez5"
+SRC_URI = "git://github.com/IanHarvey/bluepy.git;protocol=https"
 
-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"
+S = "${WORKDIR}/git"
 
 inherit setuptools3 pkgconfig
 
-SRC_URI = "git://github.com/IanHarvey/bluepy.git;protocol=https;rev=7ad565231a97c304c0eff45f2649cd005e69db09"
-S = "${WORKDIR}/git"
+RDEPENDS:${PN} = "bluez5"
 
 TARGET_CC_ARCH += "${LDFLAGS}"
Signature · 1 line
2.33.1
author
#1 lore raw

PATCH 2/2 python3-kivy: Use new override syntax in RDEPENDS

Cc Martin Jansa <[email protected]>
Cc William Huang <[email protected]>
---
 meta-python/recipes-devtools/python/python3-kivy_2.0.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-kivy_2.0.0.bb +1 -1
index d046489021..a4ec62626b 100644
@@ -56,7 +56,7 @@ DEPENDS += " \
     python3-cython-native \
 "
 
-RDEPENDS_${PN} = " \
+RDEPENDS:${PN} = " \
     gstreamer1.0 \
     gstreamer1.0-python \
     libsdl2 \
Signature · 1 line
2.33.1
#2 lore raw

Re: [meta-python][PATCH 2/2] python3-kivy: Use new override syntax in RDEPENDS

Thanks! <3

Quoted 25 lines · Khem Raj
Cc Martin Jansa <[email protected]>
Cc William Huang <[email protected]>
---
 meta-python/recipes-devtools/python/python3-kivy_2.0.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-kivy_2.0.0.bb +1 -2
index d046489021..a4ec62626b 100644
@@ -56,7 +56,7 @@ DEPENDS += " \
     python3-cython-native \
 "
 
-RDEPENDS_${PN} = " \
+RDEPENDS:${PN} = " \
     gstreamer1.0 \
     gstreamer1.0-python \
     libsdl2 \
--

2.33.1

#3 lore raw
In reply to Khem Raj

Thanks! <3

Quoted 55 lines · Khem Raj

Also organize the recipe to to match OE style Remove PYTHON_PN from DEPENDS, setuptools should be enough Correct setting LIC_FILES_CHKSUM
Move setting git SHA to SRCREV

Cc Marco Cavallini <[email protected]>
Cc Martin Jansa <[email protected]>
---
 .../recipes-connectivity/bluepy/bluepy_git.bb    | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
meta-networking/recipes-connectivity/bluepy/bluepy_git.bb +2 -0
index 03b1562b60..c1bcbc25b1 100644
@@ -1,17 +1,19 @@
 DESCRIPTION = "Python interface to Bluetooth LE on Linux"
 HOMEPAGE = "https://github.com/IanHarvey/bluepy"
 SECTION = "devel/python"
+LICENSE = "GPLv2 & PD"
+LIC_FILES_CHKSUM =

"file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6 \
+ file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851"

meta-networking/recipes-connectivity/bluepy/bluepy_git.bb +4 -4
+DEPENDS = "glib-2.0"
+SRCREV = "7ad565231a97c304c0eff45f2649cd005e69db09"
+PV = "1.3.0+git${SRCPV}"
 
-DEPENDS = "${PYTHON_PN} glib-2.0"
-RDEPENDS_${PN} = "bluez5"
+SRC_URI = "git://github.com/IanHarvey/bluepy.git;protocol=https"
 
-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"

meta-networking/recipes-connectivity/bluepy/bluepy_git.bb +1 -1
+S = "${WORKDIR}/git"
 
 inherit setuptools3 pkgconfig
 
-SRC_URI = "git://

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

meta-networking/recipes-connectivity/bluepy/bluepy_git.bb +1 -2
-S = "${WORKDIR}/git"
+RDEPENDS:${PN} = "bluez5"
 
 TARGET_CC_ARCH += "${LDFLAGS}"
--

2.33.1