lib/bb/utils.py: Do not preserve TERM in the environment
PATCH 1/1 lib/bb/utils.py: Do not preserve TERM in the environment
The value of TERM is leaking into OE-Core postinst-useradd-${PN} scripts, which in turn can optionally be monitored by buildhistory. Prune the value in order to make the OE-Core buildhistory output more deterministic.
--- lib/bb/utils.py | 1 - 1 file changed, 1 deletion(-)
lib/bb/utils.py +0 -1
@@ -580,7 +580,6 @@ def preserved_envvars_exported(): 'PATH', 'PWD', 'SHELL', - 'TERM', 'USER', 'LC_ALL', 'BBSERVER',
Quoted 16 lines · Jacob Kroon
The value of TERM is leaking into OE-Core postinst-useradd-${PN} scripts,
which in turn can optionally be monitored by buildhistory. Prune the value in
order to make the OE-Core buildhistory output more deterministic.Signed-off-by Jacob Kroon <[email protected]>--- lib/bb/utils.py | 1 - 1 file changed, 1 deletion(-)lib/bb/utils.py +0
-0
lib/bb/utils.py def preserved_envvars_exported(): · line 585
Quoted 7 lines
lib/bb/utils.py +0
-1@@ -580,7 +580,6 @@ def preserved_envvars_exported(): 'PATH', 'PWD', 'SHELL', - 'TERM', 'USER', 'LC_ALL', 'BBSERVER',
When you send a patch like this, please be clear that its for testing. I know from a discussion on IRC that this patch needs close vetting to see if its "safe" and its likely going to break things around the menuconfig tasks for example. The patch needs to state that so people's expectations are right.
Cheers,
Richard
Quoted 22 lines · Richard Purdie
Quoted 21 lines · Jacob Kroon
The value of TERM is leaking into OE-Core postinst-useradd-${PN} scripts,
which in turn can optionally be monitored by buildhistory. Prune the value in
order to make the OE-Core buildhistory output more deterministic.Signed-off-by Jacob Kroon <[email protected]>--- lib/bb/utils.py | 1 - 1 file changed, 1 deletion(-)lib/bb/utils.py +0
-1@@ -580,7 +580,6 @@ def preserved_envvars_exported(): 'PATH', 'PWD', 'SHELL', - 'TERM', 'USER',
Quoted 9 lines
lib/bb/utils.py def preserved_envvars_exported(): · line 585
Quoted 2 lines
lib/bb/utils.py +0
-0'LC_ALL', 'BBSERVER',When you send a patch like this, please be clear that its for testing. I know from a discussion on IRC that this patch needs close vetting to see if its "safe" and its likely going to break things around the menuconfig tasks for example. The patch needs to state that so people's expectations are right.
Right, I should have been more upfront with that in the patch. Should that go in the commit message itself, after the '---', or just a prefix in the email header ?
I understand TERM must be used for *something*, I've just never understood in what ways exactly. Is it for allowing screen/tmux/xterm/your-favourite-terminal to do extra fancy things ?
At a first glance I can't see anything breaking the kernels menuconfig, and in a devshell TERM is back, regardless if I use tmux or plain gnome-shell.
Jacob
Quoted 37 lines · Jacob Kroon
Quoted 26 lines · Richard Purdie
Quoted 17 lines · Jacob Kroon
The value of TERM is leaking into OE-Core postinst-useradd-${PN} scripts,
which in turn can optionally be monitored by buildhistory. Prune the
value in
order to make the OE-Core buildhistory output more deterministic.Signed-off-by Jacob Kroon <[email protected]>--- lib/bb/utils.py | 1 - 1 file changed, 1 deletion(-)lib/bb/utils.py +0
-0lib/bb/utils.py def preserved_envvars_exported(): · line 585
Quoted 7 lines
lib/bb/utils.py +0
-1@@ -580,7 +580,6 @@ def preserved_envvars_exported(): 'PATH', 'PWD', 'SHELL', - 'TERM', 'USER', 'LC_ALL', 'BBSERVER',Quoted 9 lines
When you send a patch like this, please be clear that its for testing.
I know from a discussion on IRC that this patch needs close vetting to
see if its "safe" and its likely going to break things around the menuconfig tasks for example. The patch needs to state that so people's
expectations are right.
Quoted 3 lines
Right, I should have been more upfront with that in the patch. Should that go in the commit message itself, after the '---', or just a prefix in the email header ?
After the --- would be fine. Its just so everyone has the right expectations about the patch.
Quoted 8 lines
I understand TERM must be used for *something*, I've just never understood in what ways exactly. Is it for allowing screen/tmux/xterm/your-favourite-terminal to do extra fancy things ?
At a first glance I can't see anything breaking the kernels menuconfig,
and in a devshell TERM is back, regardless if I use tmux or plain gnome-shell.
We're not seeing any issues testing this on the autobuilder which is good. Its part of some very old code, created when we first started to try and clean up the build environment so its possible other improvements have obsoleted this need now. Its obviously just had to test and be sure!
Cheers,
Richard
Quoted 54 lines · Richard Purdie
Quoted 37 lines · Jacob Kroon
Quoted 26 lines · Richard Purdie
Quoted 17 lines · Jacob Kroon
The value of TERM is leaking into OE-Core postinst-useradd-${PN} scripts,
which in turn can optionally be monitored by buildhistory. Prune the
value in
order to make the OE-Core buildhistory output more deterministic.Signed-off-by Jacob Kroon <[email protected]>--- lib/bb/utils.py | 1 - 1 file changed, 1 deletion(-)lib/bb/utils.py +0
-0lib/bb/utils.py def preserved_envvars_exported(): · line 585
Quoted 7 lines
lib/bb/utils.py +0
-1@@ -580,7 +580,6 @@ def preserved_envvars_exported(): 'PATH', 'PWD', 'SHELL', - 'TERM', 'USER', 'LC_ALL', 'BBSERVER',Quoted 9 lines
When you send a patch like this, please be clear that its for testing.
I know from a discussion on IRC that this patch needs close vetting to
see if its "safe" and its likely going to break things around the menuconfig tasks for example. The patch needs to state that so people's
expectations are right.Quoted 3 lines
Right, I should have been more upfront with that in the patch. Should that go in the commit message itself, after the '---', or just a prefix in the email header ?
After the --- would be fine. Its just so everyone has the right expectations about the patch.
Quoted 8 lines
I understand TERM must be used for *something*, I've just never understood in what ways exactly. Is it for allowing screen/tmux/xterm/your-favourite-terminal to do extra fancy things ?
At a first glance I can't see anything breaking the kernels menuconfig,
and in a devshell TERM is back, regardless if I use tmux or plain gnome-shell.
Quoted 6 lines
We're not seeing any issues testing this on the autobuilder which is good. Its part of some very old code, created when we first started to try and clean up the build environment so its possible other improvements have obsoleted this need now. Its obviously just had to test and be sure!
If we decide to drop it as the patch suggests, then I guess we could drop it from BB_HASHBASE_WHITELIST in oe-core/meta/conf/bitbake.conf as well. (There is also a reference to 'TERM' in the bitbake manual which should also be removed in that case)
Jacob
Quoted 8 lines · Jacob Kroon
Quoted 6 lines · Richard Purdie
We're not seeing any issues testing this on the autobuilder which is good. Its part of some very old code, created when we first started to try and clean up the build environment so its possible other improvements have obsoleted this need now. Its obviously just had to test and be sure!
Quoted 4 lines
If we decide to drop it as the patch suggests, then I guess we could drop it from
BB_HASHBASE_WHITELISTinoe-core/meta/conf/bitbake.confas well. (There is also a reference to 'TERM' in the bitbake manual which should also be removed in that case)
I'm about to merge this so if you could send the follow up patches that would be great, thanks!
Cheers,
Richard