From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6470427481174179840 X-Received: by 10.28.1.194 with SMTP id 185mr98255wmb.12.1512998142015; Mon, 11 Dec 2017 05:15:42 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.216.78 with SMTP id p75ls1569495wmg.10.canary-gmail; Mon, 11 Dec 2017 05:15:41 -0800 (PST) X-Google-Smtp-Source: ACJfBosn8eYE3lQlegdhgNlOzXBL/wlbvnb9Xebwh1zxfhHMuk0ZYLtYjmNSJA7ANrxaeINw1LqS X-Received: by 10.28.210.149 with SMTP id j143mr109392wmg.2.1512998141650; Mon, 11 Dec 2017 05:15:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512998141; cv=none; d=google.com; s=arc-20160816; b=n23qNk3utTj3igHSJJqIxdZLRRBde+CaOfN96YrT2YA5R3YZM+/9NTRNWiG+61V3Us TjN7RRG+zuxIYPPArJWwVQc4VujVwoPljvWkrICZIbwSoLWf5pgrxHkT/DgztnlFIse9 X0/5rLGBAYfwzFVFAgqyrtAEnYSk9F7sqBEdATBbGG1Yra8tFqQ0YjG6pwXBqX2euy3t SGX7QsP6F1bKVba06otDD2omHmYRovA2lWZ5DYp2nwIL97DV1XfP1fpQyC9CiGfhGjZh hvpGO0T8C3gqPHE0G/zgDhDTNdpiENg90bqrCUH116daxw5zZFU1d2+SD9B0ECViupbW NdwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=DWUhBfuMMvefBTRG6cFilmPGBd305h4+b/6ZsKjxftc=; b=sGxkMMyHEvm5P3QTcgZrVLJ6znTuZTnHIINrXiJc1+XsgEK6q4vL5dPW8ZSnb9N+gq HJAdHvwM08GiQiArl78gajONVuUi9qywRHNYHB7/gZROujtrgHui4VoV0bQbT0UwdUTi vk3fJrsZrZSbbehCavcPd+5aiQkgTddEFaMM72HHqcnHNaVLZH0OEyNIPR+t0goonF5b 1gRr01XBZuZIn7AxkeXfpeNVlHyIZ5i2HwLmbqi5RF6sxU+laCvfXfUvqVUABWceC+dU hU9HaATlEM48uCelN8efq1JCk7i78rq1uZ0fBLYFfLgY4AMMklXMVCChnz1itAecSNTj YaUA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id k6si722849wme.4.2017.12.11.05.15.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 05:15:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] (client.yota.ru [188.162.64.66] (may be forged)) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id vBBDFcHn024034 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 11 Dec 2017 14:15:40 +0100 Subject: Re: [PATCH v2 1/1] Add proxy support to isar-image-*.bb and buildchroot.bb To: "Andreas J. Reichel" , isar-users@googlegroups.com References: <20170927120234.1541-1-andreas.reichel.ext@siemens.com> <20170927120234.1541-2-andreas.reichel.ext@siemens.com> From: Alexander Smirnov Message-ID: Date: Mon, 11 Dec 2017 16:15:33 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20170927120234.1541-2-andreas.reichel.ext@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: F1BU6rWQoSuT On 09/27/2017 03:02 PM, Andreas J. Reichel wrote: > From: Andreas Reichel > > * BB_ENV_EXTRAWHITE provides a list for variables that are kept in the > environment by bitbake. However, isar init script clears any additional > settings. Thus, add proxy variables to BB_ENV_EXTRAWHITE in > isar-buildenv-internal. > > * Bitbake clears environment variables for each task within a recipe. > However, bb.utils.export_proxies function can be used with an > inline-python call to reexport the proxy settings. > > * Sudo loses environment variables again, thus call multistrap with sudo > with the -E option to preserve (the already cleaned) environment for the > task's multistrap command. > > Note: > Downloads are normally done by the fetcher task, which calls a python > function that in turn uses bb.util.export_proxies. However we have a > non-fetcher task, which needs download capabilities as well. > Applied to next, thanks! Alex