Skip to contentSkip to conversation

recipes-devtools/python/python3-libusb1_1.7.1.bb: recipe added

PATCH Superseded Ewa Kujawska 2 participants 2 messages Aug 16, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 recipes-devtools/python/python3-libusb1_1.7.1.bb: recipe added

---
 .../python/python3-libusb1_1.7.1.bb               | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb
meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb new file +15 -0
new file mode 100644
index 000000000000..476966c2178b
@@ -0,0 +1,15 @@
+SUMMARY = "Pure-python wrapper for libusb-1.0"
+HOMEPAGE = "http://github.com/vpelletier/python-libusb1"
+AUTHOR = "Vincent Pelletier <[email protected]>"
+LICENSE = "LGPL-2.1"
+LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+
+SRC_URI = "https://files.pythonhosted.org/packages/80/bb/4ee9d760dd29499d877ee384f1d2bc6bb9923defd4c69843aef5e729972d/libusb1-1.7.1.tar.gz"
+SRC_URI[md5sum] = "cb4073182fef4cee6ab9c6666b48d1a1"
+SRC_URI[sha256sum] = "adf64a4f3f5c94643a1286f8153bcf4bc787c348b38934aacd7fe17fbeebc571"
+
+S = "${WORKDIR}/libusb1-1.7.1"
+
+RDEPENDS_${PN} = "libusb1"
+
+inherit setuptools3
Signature · 1 line
2.41.0
#1 lore raw

Hi Ewa

Thanks for your patches

I see subject field is not as recommended please read through this guide which is handy to find out submitting guidelines

https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded

rest of comments are inline.

Quoted 11 lines · Ewa Kujawska
---
  .../python/python3-libusb1_1.7.1.bb               | 15 +++++++++++++++
  1 file changed, 15 insertions(+)

create mode 100644 meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb

meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb new file +0 -0
new file mode 100644
index 000000000000..476966c2178b

meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb line 3

Quoted 3 lines
meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb new file +3 -0
@@ -0,0 +1,15 @@
+SUMMARY = "Pure-python wrapper for libusb-1.0"
+HOMEPAGE = "http://github.com/vpelletier/python-libusb1"
+AUTHOR = "Vincent Pelletier <[email protected]>"

Drop setting AUTHOR, its unused

meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb line 4

Quoted 1 line
meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb new file +1 -0
+LICENSE = "LGPL-2.1"

Please use SPDX strings for LICENSE

meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb line 7

Quoted 3 lines
meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb new file +3 -0
+LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+
+SRC_URI = "https://files.pythonhosted.org/packages/80/bb/4ee9d760dd29499d877ee384f1d2bc6bb9923defd4c69843aef5e729972d/libusb1-1.7.1.tar.gz"

Try to use bitbake variables as much as possible. E.g. PV instead of 1.7.1 here

meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb line 8

Quoted 1 line
meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb new file +1 -0
+SRC_URI[md5sum] = "cb4073182fef4cee6ab9c6666b48d1a1"

Drop setting md5sum, its not needed anymore.

meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb line 12

Quoted 4 lines
meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb new file +4 -0
+SRC_URI[sha256sum] = "adf64a4f3f5c94643a1286f8153bcf4bc787c348b38934aacd7fe17fbeebc571"
+
+S = "${WORKDIR}/libusb1-1.7.1"
+

Use PV instead of harding 1.7.1

meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb line 13

Quoted 1 line
meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb new file +1 -0
+RDEPENDS_${PN} = "libusb1"

Override separator is ':' and not '_' anymore, this makes me wonder if this patch was tested against master or not.

Quoted 13 lines
meta-python/recipes-devtools/python/python3-libusb1_1.7.1.bb new file +2 -1
+
+inherit setuptools3
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

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