Remove SSH_AGENT_PID forwarding

This variable plays no role in using the agent for authentication, only
in managing its life-cycle.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka 2018-09-14 19:27:47 +02:00 committed by Daniel Wagner
parent 82b0034bac
commit ecbda0494b
3 changed files with 4 additions and 5 deletions

View File

@ -83,9 +83,8 @@ Environment variables
| | build servers. On desktop machines, an ssh-agent |
| | running outside the kas environment is more useful. |
+-----------------------+-----------------------------------------------------+
| ``SSH_AGENT_PID`` | SSH agent process id and authentication socket. |
| ``SSH_AUTH_SOCK`` | Used for cloning over SSH (alternative to |
| | ``SSH_PRIVATE_KEY``). |
| ``SSH_AUTH_SOCK`` | SSH authentication socket. Used for cloning over |
| | SSH (alternative to ``SSH_PRIVATE_KEY``). |
+-----------------------+-----------------------------------------------------+
| ``DL_DIR`` | Environment variables that are transferred to the |
| ``SSTATE_DIR`` | bitbake environment. |

View File

@ -103,7 +103,7 @@ class Context:
'No default locales set.', distro_bases)
for key in ['http_proxy', 'https_proxy', 'ftp_proxy', 'no_proxy',
'SSH_AGENT_PID', 'SSH_AUTH_SOCK']:
'SSH_AUTH_SOCK']:
val = os.environ.get(key, None)
if val:
self.environ[key] = val

View File

@ -261,7 +261,7 @@ def get_build_environ():
extra_white = env['BB_ENV_EXTRAWHITE'] + ' ' + ' '.join(env_vars)
env.update({'BB_ENV_EXTRAWHITE': extra_white})
env_vars.extend(['SSH_AGENT_PID', 'SSH_AUTH_SOCK',
env_vars.extend(['SSH_AUTH_SOCK',
'SHELL', 'TERM',
'GIT_PROXY_COMMAND', 'NO_PROXY'])