From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6600683098303627264 X-Received: by 2002:adf:d08b:: with SMTP id y11-v6mr677597wrh.7.1536845865785; Thu, 13 Sep 2018 06:37:45 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:d0ce:: with SMTP id z14-v6ls1859544wrh.8.gmail; Thu, 13 Sep 2018 06:37:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaoOnvLyRNMc75CqSao4QR4PkUjcuJ/YJ2xOh1VuLx9aox2g61XV+RkOYFVdoDHAFSIFE76 X-Received: by 2002:adf:edd0:: with SMTP id v16-v6mr716190wro.32.1536845865393; Thu, 13 Sep 2018 06:37:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536845865; cv=none; d=google.com; s=arc-20160816; b=Fay7ZwVJi5DECrYMYiOPbZbc5JbT5JFTR3emY+LYniMFDI6vF/uIe39OLcOEsCY4RC j6tcHEAfSB8OANqe5JF0ZZQBXHZ2rs2128BHvgXGyR2eKYFwpjvTNuZ5Sc4uUPDZ3IcF QXjiRPX0uCwdy7dfWTE1+2DR5CgUMTYxHBs+SMzay3oX+dJCaEhsuVmrc1VhNr7CVk5u hatBTRxlr3/+L2MN0TcVzrtKWJ6VbvVfb+FCyUeD86U6J6kRxrNToAMqZ5mz3y12Fjwh Vmq1AXFP2BPh+8pBPw3Z6su9lzmJnMnvszYlJTuSAAU/A/pCA5KlG0gXe9psHddrEpbW arvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date; bh=adHM7Eyq6HKufXAlQoB8YEoHCocEIHkCz6vrSxjRlM8=; b=KJAzf+GaF/bNuDJmIX8lUEOQ/nr9ftv+i9ErjBh/m8QEkTCNA+6AOWeD77a8swwaMX 8IN6zEECCJqJUGnFZa7BgH8w1sd3SqvLZRenTd2PKgiLwyYCwJuurorv0UDpYNLbnzoH uLhw185UcteIR/FQYzJw5TCyqr2vPMzYMHTFC93QjSQ2FhNmtVM0Kg+GsuUiKSo/gSFJ D2SpxRJrLAEGE6tTWsWqNNrcGRvIr9lbspbA2w7BXJDIDOzgaGMM13YG8H0Sh6QLzOF6 wBxku6pIiMvG15jWHb9Q+rP7TqnfbByEo6lskJ8dDTFPra18OKPxva40cpXMXy2EuAyA psbw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id l11-v6si144457wmc.0.2018.09.13.06.37.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Sep 2018 06:37:45 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w8DDbimY031910 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 13 Sep 2018 15:37:44 +0200 Received: from md1pvb1c.ad001.siemens.net (md1pvb1c.ad001.siemens.net [139.25.68.40]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id w8DDbiYi002639; Thu, 13 Sep 2018 15:37:44 +0200 Date: Thu, 13 Sep 2018 15:37:43 +0200 From: Henning Schild To: "Hombourger, Cedric" Cc: Jan Kiszka , "isar-users@googlegroups.com" Subject: Re: [PATCH v2] isar-bootstrap: preserve environment in sudo'ed debootstrap call Message-ID: <20180913153743.6f6d72e7@md1pvb1c.ad001.siemens.net> In-Reply-To: References: <1536842780-221-1-git-send-email-Cedric_Hombourger@mentor.com> <838acea7-e98d-6f48-8497-d3c13871a8c8@siemens.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: 0f1HGM5+DEcg Am Thu, 13 Sep 2018 13:15:03 +0000 schrieb "Hombourger, Cedric" : > Hi Jan, > > Are you sure your company mirror of debian repositories wasn't used > in your builds? I will repeat the tests that I did both with and > without the changes. Yes, i have never seen proxy issues in that step and never use our internal mirror. Henning > I was traveling to Nurnberg earlier this week and unfortunately had a > very slow and unreliable internet connection at our hotel When > checking squid access logs in realtime, I noticed that no requests > were received while running do_bootstrap > > I however agree that we should make sure we are fixing a real problem > I will therefore collect additional data > > Cedric > > -----Original Message----- > From: Jan Kiszka [mailto:jan.kiszka@siemens.com] > Sent: Thursday, September 13, 2018 3:09 PM > To: Hombourger, Cedric ; > isar-users@googlegroups.com Subject: Re: [PATCH v2] isar-bootstrap: > preserve environment in sudo'ed debootstrap call > > Hi Cedric, > > On 13.09.18 14:46, Cedric Hombourger wrote: > > Make bitbake add proxy environment variables and preserve them when > > calling debootstrap under sudo. This is required to get > > user-defined proxies used while bootstraping Isar. > > Can you specify the error scenario a bit more precisely? We are > building with user-defined proxies frequently, and we do not need > that change. While I have no problem with saving one line of code, I > would be good to understand the setup, specifically as I requested to > set up a proxies test scenario in the upstream Q&A to avoid relying > on the Siemens-internal Q&A here. > > Thanks, > Jan > > > > > Signed-off-by: Cedric Hombourger > > --- > > meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 5 ++--- > > 1 file changed, 2 insertions(+), 3 deletions(-) > > > > diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc > > b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc > > index 4010307..cfad136 100644 > > --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc > > +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc > > @@ -171,7 +171,8 @@ isar_bootstrap() { > > esac > > shift > > done > > - sudo flock "${ISAR_BOOTSTRAP_LOCK}" -c "\ > > + E="${@bb.utils.export_proxies(d)}" > > + sudo -E flock "${ISAR_BOOTSTRAP_LOCK}" -c "\ > > set -e > > if [ ! -e "${DEPLOY_ISAR_BOOTSTRAP}" ]; then > > if [ -e "${ROOTFSDIR}" ]; then @@ -179,7 +180,6 @@ > > isar_bootstrap() { > > umount -l "${ROOTFSDIR}/proc" || true > > rm -rf "${ROOTFSDIR}" > > fi > > - E="${@bb.utils.export_proxies(d)}" > > if [ ${IS_HOST} ]; then > > ${DEBOOTSTRAP} --verbose \ > > --variant=minbase \ @@ -233,7 > > +233,6 @@ isar_bootstrap() { > > mount -t devtmpfs -o mode=0755,nosuid devtmpfs > > ${ROOTFSDIR}/dev mount -t proc none ${ROOTFSDIR}/proc > > > > - E="${@bb.utils.export_proxies(d)}" > > export DEBIAN_FRONTEND=noninteractive > > chroot "${ROOTFSDIR}" /usr/bin/apt-get update -y > > chroot "${ROOTFSDIR}" /usr/bin/apt-get dist-upgrade -y > > \ > > -- > Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate > Competence Center Embedded Linux >