Skip to contentSkip to conversation

websocketd: enable network access for compile task

PATCH Superseded Denys Dmytriyenko 2 participants 2 messages Sep 20, 2022 – Sep 23, 2022

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 websocketd: enable network access for compile task

From: Denys Dmytriyenko <[email protected]>

Since go modules do own fetching during compile time.

---
 .../recipes-devtools/websocketd/websocketd_0.4.1.bb             | 2 ++
 1 file changed, 2 insertions(+)
meta-arago-extras/recipes-devtools/websocketd/websocketd_0.4.1.bb +2 -0
index 2ec6a19a..2d90f8fe 100644
@@ -12,7 +12,9 @@ SRCREV = "035c18cc3e6962dabd5ea2ad8845260726a4a99e"
 
 # bitbake only exports proxy variables during fetching, but go handles
 # module fetching on its own during compile and needs proxy settings
+# along with network access for the task
 export http_proxy
+do_compile[network] = "1"
 
 # Development package contains all the examples in different languages
 INSANE_SKIP:${PN}-dev = "file-rdeps"
Signature · 1 line
2.25.1
#1 lore raw
Quoted 14 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Since go modules do own fetching during compile time.

---
  .../recipes-devtools/websocketd/websocketd_0.4.1.bb             | 2 ++
  1 file changed, 2 insertions(+)
meta-arago-extras/recipes-devtools/websocketd/websocketd_0.4.1.bb +0 -0
index 2ec6a19a..2d90f8fe 100644

meta-arago-extras/recipes-devtools/websocketd/websocketd_0.4.1.bb SRCREV = "035c18cc3e6962dabd5ea2ad8845260726a4a99e" · line 16

Quoted 5 lines
meta-arago-extras/recipes-devtools/websocketd/websocketd_0.4.1.bb +1 -0
@@ -12,7 +12,9 @@ SRCREV = "035c18cc3e6962dabd5ea2ad8845260726a4a99e"
 
  # bitbake only exports proxy variables during fetching, but go handles
  # module fetching on its own during compile and needs proxy settings
+# along with network access for the task
  export http_proxy

We also need "export https_proxy" in the recipe. Do you want to submit a v2 so that we have both required changes in one commit?

Quoted 4 lines
meta-arago-extras/recipes-devtools/websocketd/websocketd_0.4.1.bb +1 -0
+do_compile[network] = "1"
 
  # Development package contains all the examples in different languages
  INSANE_SKIP:${PN}-dev = "file-rdeps"
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS