From: Peter Kjellerstedt Date: Mon, 25 Apr 2022 21:35:37 +0000 (+0200) Subject: devshell.bbclass: Allow devshell & pydevshell to use the network X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~4320 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba53fc3bcecfe32401471dc1008c7ead96504150;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Peter Kjellerstedt Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- diff --git a/meta/classes/devshell.bbclass b/meta/classes/devshell.bbclass index 75604d0c076..247d04478c4 100644 --- a/meta/classes/devshell.bbclass +++ b/meta/classes/devshell.bbclass @@ -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"