Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] Nothing uses USERNAME, remove it - can cause sstate-cache conflicts
@ 2011-11-17 22:36 Matthew McClintock
  2011-11-24  0:50 ` Saul Wold
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew McClintock @ 2011-11-17 22:36 UTC (permalink / raw)
  To: openembedded-core

USER is the correct variable to use, also this can affect sstate
cache as well.

Signed-off-by: Matthew McClintock <msm@freescale.com>
---
I'm not 100% sure about this one but it seems like nothing is using this
variable?

Also one of my build machines (Jenkins specifically) was exporting
USERNAME=root for some reason to the build environment. This was preventing
sstate-cache from being used on other machines where it was not even
defined/used AFAICT

 bitbake/lib/bb/utils.py |    1 -
 meta/conf/bitbake.conf  |    2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 1f55407..bb3409d 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -505,7 +505,6 @@ def preserved_envvars_exported():
         'SHELL',
         'TERM',
         'USER',
-        'USERNAME',
     ]
 
 def preserved_envvars_exported_interactive():
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index b7bcc23..b4335c9 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -751,7 +751,7 @@ TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}"
 # Setup our default hash policy
 BB_SIGNATURE_HANDLER ?= "basic"
 BB_HASHTASK_WHITELIST ?= "(.*-cross$|.*-native$|.*-cross-initial$|.*-cross-intermediate$|^virtual:native:.*|^virtual:nativesdk:.*)"
-BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH DL_DIR SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM USER FILESPATH USERNAME STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE"
+BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH DL_DIR SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM USER FILESPATH STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE"
 
 MLPREFIX ??= ""
 MULTILIB_VARIANTS ??= ""
-- 
1.7.6.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Nothing uses USERNAME, remove it - can cause sstate-cache conflicts
  2011-11-17 22:36 [PATCH] Nothing uses USERNAME, remove it - can cause sstate-cache conflicts Matthew McClintock
@ 2011-11-24  0:50 ` Saul Wold
  2011-11-24  1:12   ` Matthew McClintock
  0 siblings, 1 reply; 4+ messages in thread
From: Saul Wold @ 2011-11-24  0:50 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Matthew McClintock

On 11/17/2011 02:36 PM, Matthew McClintock wrote:
> USER is the correct variable to use, also this can affect sstate
> cache as well.
>
> Signed-off-by: Matthew McClintock<msm@freescale.com>
> ---
> I'm not 100% sure about this one but it seems like nothing is using this
> variable?
>
> Also one of my build machines (Jenkins specifically) was exporting
> USERNAME=root for some reason to the build environment. This was preventing
> sstate-cache from being used on other machines where it was not even
> defined/used AFAICT
>
>   bitbake/lib/bb/utils.py |    1 -
>   meta/conf/bitbake.conf  |    2 +-
>   2 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
> index 1f55407..bb3409d 100644
> --- a/bitbake/lib/bb/utils.py
> +++ b/bitbake/lib/bb/utils.py
> @@ -505,7 +505,6 @@ def preserved_envvars_exported():
>           'SHELL',
>           'TERM',
>           'USER',
> -        'USERNAME',
>       ]
>
>   def preserved_envvars_exported_interactive():
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index b7bcc23..b4335c9 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -751,7 +751,7 @@ TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}"
>   # Setup our default hash policy
>   BB_SIGNATURE_HANDLER ?= "basic"
>   BB_HASHTASK_WHITELIST ?= "(.*-cross$|.*-native$|.*-cross-initial$|.*-cross-intermediate$|^virtual:native:.*|^virtual:nativesdk:.*)"
> -BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH DL_DIR SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM USER FILESPATH USERNAME STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE"
> +BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH DL_DIR SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM USER FILESPATH STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE"
>
>   MLPREFIX ??= ""
>   MULTILIB_VARIANTS ??= ""

This should really be 2 patches, I know they are small, but they should 
be broken down.

Thanks
	Sau!



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] Nothing uses USERNAME, remove it - can cause sstate-cache conflicts
  2011-11-24  0:50 ` Saul Wold
@ 2011-11-24  1:12   ` Matthew McClintock
  2011-11-25  0:30     ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew McClintock @ 2011-11-24  1:12 UTC (permalink / raw)
  To: openembedded-core, sgw

USER is the correct variable to use, also this can affect sstate
cache as well.

Signed-off-by: Matthew McClintock <msm@freescale.com>
---
 meta/conf/bitbake.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 01f064c..cb70a49 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -735,7 +735,7 @@ TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}"
 # Setup our default hash policy
 BB_SIGNATURE_HANDLER ?= "basic"
 BB_HASHTASK_WHITELIST ?= "(.*-cross$|.*-native$|.*-cross-initial$|.*-cross-intermediate$|^virtual:native:.*|^virtual:nativesdk:.*)"
-BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH DL_DIR SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM USER FILESPATH USERNAME STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE"
+BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH DL_DIR SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM USER FILESPATH STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE"
 
 MLPREFIX ??= ""
 MULTILIB_VARIANTS ??= ""
-- 
1.7.6.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Nothing uses USERNAME, remove it - can cause sstate-cache conflicts
  2011-11-24  1:12   ` Matthew McClintock
@ 2011-11-25  0:30     ` Richard Purdie
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2011-11-25  0:30 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, 2011-11-23 at 19:12 -0600, Matthew McClintock wrote:
> USER is the correct variable to use, also this can affect sstate
> cache as well.
> 
> Signed-off-by: Matthew McClintock <msm@freescale.com>

Merged to master, thanks.

Richard




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-25  0:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-17 22:36 [PATCH] Nothing uses USERNAME, remove it - can cause sstate-cache conflicts Matthew McClintock
2011-11-24  0:50 ` Saul Wold
2011-11-24  1:12   ` Matthew McClintock
2011-11-25  0:30     ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox