Skip to contentSkip to conversation

devshell.bbclass: Allow devshell & pydevshell to use the network

PATCH New Peter Kjellerstedt 1 participant 1 message Apr 25, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 devshell.bbclass: Allow devshell & pydevshell to use the network

Otherwise it will fail if using OE_TERMINAL = "xterm" with the not so helpful error:

xterm: Xt error: Can't open display: localhost:0.0

---

PATCHv2: Correct a typo in "do_pydevshell[network]".

 meta/classes/devshell.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/devshell.bbclass +2 -0
index 75604d0c07..247d04478c 100644
@@ -23,6 +23,7 @@ addtask devshell after do_patch do_prepare_recipe_sysroot
 DEVSHELL_STARTDIR ?= "${S}"
 do_devshell[dirs] = "${DEVSHELL_STARTDIR}"
 do_devshell[nostamp] = "1"
+do_devshell[network] = "1"
 
 # devshell and fakeroot/pseudo need careful handling since only the final
 # command should run under fakeroot emulation, any X connection should
@@ -156,3 +157,4 @@ python do_pydevshell() {
 addtask pydevshell after do_patch
 
 do_pydevshell[nostamp] = "1"
+do_pydevshell[network] = "1"