From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] terminal.bbclass, oe-buildenv-internal: pass SCREENDIR environment variable
Date: Wed, 09 May 2012 21:15:39 -0700 [thread overview]
Message-ID: <4FAB40EB.6060409@linux.intel.com> (raw)
In-Reply-To: <1336044432-28854-1-git-send-email-jason.wessel@windriver.com>
On 05/03/2012 04:27 AM, Jason Wessel wrote:
> Some versions of the screen utility provided from the host OS vendor
> write the socket directory to $HOME/.screen. When using a shared home
> directory across many servers, one sets the SCREENDIR environment
> variable to avoid collisions in the shared home directory. This
> results in problems launching a devshell where it is not entirely
> obvious what happened because the SCREENDIR environment variable
> got stripped from the environment prior to setting up the screen
> in detached mode.
>
> Example:
> % bitbake -c devshell busybox
> # ...Please connect in another terminal with "screen -r devshell"
>
> % screen -r devshell
> There is no screen to be resumed matching devshell.
>
> The temporary work around was to do something like:
> sh -c "unset SCREENDIR; screen -r devshell"
>
> This patch adds SCREENDIR to the white list to ensure screen
> works properly on systems where a developer needs to use
> the SCREENDIR with shared home directories.
> ---
> meta/classes/terminal.bbclass | 2 +-
> scripts/oe-buildenv-internal | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass
> index ca28bd2..3cfc84b 100644
> --- a/meta/classes/terminal.bbclass
> +++ b/meta/classes/terminal.bbclass
> @@ -4,7 +4,7 @@ OE_TERMINAL[choices] = 'auto none \
> ${@" ".join(o.name \
> for o in oe.terminal.prioritized())}'
>
> -OE_TERMINAL_EXPORTS = 'XAUTHORITY SHELL DBUS_SESSION_BUS_ADDRESS DISPLAY EXTRA_OEMAKE'
> +OE_TERMINAL_EXPORTS = 'XAUTHORITY SHELL DBUS_SESSION_BUS_ADDRESS DISPLAY EXTRA_OEMAKE SCREENDIR'
> OE_TERMINAL_EXPORTS[type] = 'list'
>
> XAUTHORITY ?= "${HOME}/.Xauthority"
> diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
> index 14e728d..9de7b05 100755
> --- a/scripts/oe-buildenv-internal
> +++ b/scripts/oe-buildenv-internal
> @@ -70,4 +70,4 @@ unset BITBAKEDIR
> # Used by the runqemu script
> export BUILDDIR
> export PATH
> -export BB_ENV_EXTRAWHITE="MACHINE DISTRO TCMODE TCLIBC http_proxy ftp_proxy https_proxy all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS PARALLEL_MAKE GIT_PROXY_COMMAND GIT_PROXY_IGNORE SOCKS5_PASSWD SOCKS5_USER"
> +export BB_ENV_EXTRAWHITE="MACHINE DISTRO TCMODE TCLIBC http_proxy ftp_proxy https_proxy all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS PARALLEL_MAKE GIT_PROXY_COMMAND GIT_PROXY_IGNORE SOCKS5_PASSWD SOCKS5_USER SCREENDIR"
Merged into OE-Core
Thanks
Sau!
(a little late I know).
prev parent reply other threads:[~2012-05-10 4:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-03 11:27 [PATCH] terminal.bbclass, oe-buildenv-internal: pass SCREENDIR environment variable Jason Wessel
2012-05-10 4:15 ` Saul Wold [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FAB40EB.6060409@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox