Skip to contentSkip to conversation

python(3)-requests: add DEPENDS_class-native

PATCH In review Peter Kolbus 3 participants 5 messages Dec 18, 2019 – Dec 20, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python(3)-requests: add DEPENDS_class-native

Change-Id: Ie8bd80d56da599b29430da65b303d69bba43fdda

---
 .../recipes-devtools/python/python-requests.inc        | 10 ++++++++++
 1 file changed, 10 insertions(+)
meta-python/recipes-devtools/python/python-requests.inc +10 -0
index 5fe5dc21f..ea2983821 100644
@@ -23,6 +23,16 @@ RDEPENDS_${PN} += " \
     ${PYTHON_PN}-idna \
 "
 
+DEPENDS_class-native += " \
+    ${PYTHON_PN}-ndg-httpsclient-native \
+    ${PYTHON_PN}-pyasn1-native \
+    ${PYTHON_PN}-pyopenssl-native \
+    ${PYTHON_PN}-pysocks-native \
+    ${PYTHON_PN}-urllib3-native \
+    ${PYTHON_PN}-chardet-native \
+    ${PYTHON_PN}-idna-native \
+"
+
 CVE_PRODUCT = "requests"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 6 lines
2.24.1

I have a small handful of recipes that need similar treatment to ensure
the sysroot contains indirect dependencies. If there's a better
approach, please let me know -- my experience with OE and bitbake are
limited.
#1 lore raw

Hi Peter

Quoted 1 line · Peter Kolbus

Change-Id: Ie8bd80d56da599b29430da65b303d69bba43fdda

Is this gerrit tag useful for you once upstreamed ? I ask because in general this will be redundant information that I would prefer to not have in logs.

Quoted 26 lines
---
  .../recipes-devtools/python/python-requests.inc        | 10 ++++++++++
  1 file changed, 10 insertions(+)
meta-python/recipes-devtools/python/python-requests.inc +10 -0
index 5fe5dc21f..ea2983821 100644
@@ -23,6 +23,16 @@ RDEPENDS_${PN} += " \
      ${PYTHON_PN}-idna \
  "
 
+DEPENDS_class-native += " \
+    ${PYTHON_PN}-ndg-httpsclient-native \
+    ${PYTHON_PN}-pyasn1-native \
+    ${PYTHON_PN}-pyopenssl-native \
+    ${PYTHON_PN}-pysocks-native \
+    ${PYTHON_PN}-urllib3-native \
+    ${PYTHON_PN}-chardet-native \
+    ${PYTHON_PN}-idna-native \
+"
+
  CVE_PRODUCT = "requests"
 
  BBCLASSEXTEND = "native nativesdk"
#2 lore raw
Quoted 14 lines

-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Wednesday, December 18, 2019 2:56 PM
To: Kolbus, Peter <[email protected]>; openembedded- [email protected]
Subject: Re: [oe] [meta-python][PATCH] python(3)-requests: add DEPENDS_class-native

CAUTION - EXTERNAL EMAIL: Do not click any links or open any attachments unless you trust the sender and know the content is safe.

Quoted 8 lines

Hi Peter

Quoted 1 line · Peter Kolbus

Change-Id: Ie8bd80d56da599b29430da65b303d69bba43fdda

Is this gerrit tag useful for you once upstreamed ? I ask because in general this will be redundant information that I would prefer to not have in logs.

This tag isn't needed; you're welcome to remove from this and the other patches I sent (or, let me know if I need to submit v2 patches). I'll take care that it's not present in future patches.

Quoted 27 lines
Quoted 27 lines
---
  .../recipes-devtools/python/python-requests.inc        | 10 ++++++++++
  1 file changed, 10 insertions(+)
meta-python/recipes-devtools/python/python-requests.inc +10 -0
index 5fe5dc21f..ea2983821 100644
@@ -23,6 +23,16 @@ RDEPENDS_${PN} += " \
      ${PYTHON_PN}-idna \
  "
 
+DEPENDS_class-native += " \
+    ${PYTHON_PN}-ndg-httpsclient-native \
+    ${PYTHON_PN}-pyasn1-native \
+    ${PYTHON_PN}-pyopenssl-native \
+    ${PYTHON_PN}-pysocks-native \
+    ${PYTHON_PN}-urllib3-native \
+    ${PYTHON_PN}-chardet-native \
+    ${PYTHON_PN}-idna-native \
+"
+
  CVE_PRODUCT = "requests"
 
  BBCLASSEXTEND = "native nativesdk"
#3 lore raw
In reply to Peter Kolbus
Quoted 11 lines · Peter Kolbus

Change-Id: Ie8bd80d56da599b29430da65b303d69bba43fdda

---
  .../recipes-devtools/python/python-requests.inc        | 10 ++++++++++
  1 file changed, 10 insertions(+)
meta-python/recipes-devtools/python/python-requests.inc +0 -0
index 5fe5dc21f..ea2983821 100644
@@ -23,6 +23,16 @@ RDEPENDS_${PN} += " \
      ${PYTHON_PN}-idna \

meta-python/recipes-devtools/python/python-requests.inc RDEPENDS_${PN} += " \ · line 33

Quoted 10 lines
meta-python/recipes-devtools/python/python-requests.inc +8 -0
  "
 
+DEPENDS_class-native += " \
+    ${PYTHON_PN}-ndg-httpsclient-native \
+    ${PYTHON_PN}-pyasn1-native \
+    ${PYTHON_PN}-pyopenssl-native \
+    ${PYTHON_PN}-pysocks-native \
+    ${PYTHON_PN}-urllib3-native \
+    ${PYTHON_PN}-chardet-native \
+    ${PYTHON_PN}-idna-native \

Why would you ned to do this?

Ross

#4 lore raw
Quoted 30 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Ross Burton
Sent: Thursday, December 19, 2019 5:26 AM
To: [email protected]
Subject: Re: [oe] [meta-python][PATCH] python(3)-requests: add DEPENDS_class-native

CAUTION - EXTERNAL EMAIL: Do not click any links or open any attachments unless you trust the sender and know the content is safe.

meta-

Quoted 6 lines · Peter Kolbus

Change-Id: Ie8bd80d56da599b29430da65b303d69bba43fdda

---
  .../recipes-devtools/python/python-requests.inc        | 10 ++++++++++
  1 file changed, 10 insertions(+)
meta- renamed from meta-python/recipes-devtools/python/python-requests.inc +0 -0

python/recipes-devtools/python/python-requests.inc

Quoted 7 lines

index 5fe5dc21f..ea2983821 100644

meta-python/recipes-devtools/python/python-requests.inc +0 -0
@@ -23,6 +23,16 @@ RDEPENDS_${PN} += " \
      ${PYTHON_PN}-idna \
  "
 
Quoted 10 lines

meta-python/recipes-devtools/python/python-requests.inc RDEPENDS_${PN} += " \ · line 33

Quoted 8 lines
meta-python/recipes-devtools/python/python-requests.inc +8 -0
+DEPENDS_class-native += " \
+    ${PYTHON_PN}-ndg-httpsclient-native \
+    ${PYTHON_PN}-pyasn1-native \
+    ${PYTHON_PN}-pyopenssl-native \
+    ${PYTHON_PN}-pysocks-native \
+    ${PYTHON_PN}-urllib3-native \
+    ${PYTHON_PN}-chardet-native \
+    ${PYTHON_PN}-idna-native \

Why would you ned to do this?

Thanks for the check. My objective here was to ensure all dependencies are in the sysroot, but after more careful retesting, I'm not seeing a need for this particular patch. From what I can tell, it looks like Richard Purdie actually addressed the root cause back in February, in native.bbclass.

(When first tested my patches on master, I dropped a similar patch for python(3)-beautifulsoup4, but that recipe actually has class-native issues of a slightly different root cause. And in doing so, confused myself about what is truly needed.)

Consider this patch withdrawn. I'll clean up the rest of my patches and send -- including a better change for beautifulsoup4.

Quoted 7 lines

Ross
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel