Patchwork [4/6] scripts/oe-buildenv-internal: Add SOCKS5_{USER, PASSWD} to BB_ENV_EXTRAWHITE

login
register
mail settings
Submitter Matthew McClintock
Date Oct. 4, 2011, 10:03 p.m.
Message ID <1317765787-19127-4-git-send-email-msm@freescale.com>
Download mbox | patch
Permalink /patch/12751/
State New, archived
Headers show

Comments

Matthew McClintock - Oct. 4, 2011, 10:03 p.m.
From: Kumar Gala <galak@kernel.crashing.org>

If a SOCKS5 gateway is needed for a proxy access like git it might also
require authentication to the proxy via a password and username.  Adding
SOCKS5_USER & SOCKS5_PASSWD to BB_ENV_EXTRAWHITE allow for automation
of the authentication request to occur when something like a git fetch
is going through the proxy.

This patch requires the bitbake patch to add extra exportvars so
these variables get passed from Env -> bitbake -> fetcher

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Matthew McClintock <msm@freescale.com>
---
This requires a bitbake patch that was just sent:

http://lists.linuxtogo.org/pipermail/bitbake-devel/2011-October/001453.html

 scripts/oe-buildenv-internal |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
Richard Purdie - Oct. 5, 2011, 1:25 p.m.
On Tue, 2011-10-04 at 17:03 -0500, Matthew McClintock wrote:
> From: Kumar Gala <galak@kernel.crashing.org>
> 
> If a SOCKS5 gateway is needed for a proxy access like git it might also
> require authentication to the proxy via a password and username.  Adding
> SOCKS5_USER & SOCKS5_PASSWD to BB_ENV_EXTRAWHITE allow for automation
> of the authentication request to occur when something like a git fetch
> is going through the proxy.
> 
> This patch requires the bitbake patch to add extra exportvars so
> these variables get passed from Env -> bitbake -> fetcher
> 
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> Signed-off-by: Matthew McClintock <msm@freescale.com>
> ---
> This requires a bitbake patch that was just sent:
> 
> http://lists.linuxtogo.org/pipermail/bitbake-devel/2011-October/001453.html

Merged to master, thanks.

Richard

Patch

diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
index 61ac18c..21b92b0 100755
--- a/scripts/oe-buildenv-internal
+++ b/scripts/oe-buildenv-internal
@@ -70,5 +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"
+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"