From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7057122428766388224 X-Received: by 2002:a05:600c:350f:b0:389:e77f:3c17 with SMTP id h15-20020a05600c350f00b00389e77f3c17mr15367955wmq.81.1647260913904; Mon, 14 Mar 2022 05:28:33 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:d0c5:0:b0:1f0:7735:e337 with SMTP id z5-20020adfd0c5000000b001f07735e337ls208096wrh.1.gmail; Mon, 14 Mar 2022 05:28:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydbagRFzvKHMttl2reAj3/0iwybOD1AI1COT4Q9MkDW0IQUzmhi2+gyE53dGm1PtcgTjbX X-Received: by 2002:a5d:5847:0:b0:203:8c46:9e1e with SMTP id i7-20020a5d5847000000b002038c469e1emr15539723wrf.350.1647260912913; Mon, 14 Mar 2022 05:28:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647260912; cv=none; d=google.com; s=arc-20160816; b=rzyZiz5e1ic4odyaIJgvfWuzdc8vFAPH9zK88tlj0nCKks74RW5e80IpkDGCxO7sii GyASXr8nN8zPq8pbFLfb+u9OqNg0NPHJCM2GYC3JJwkg9jWHFCksJk+dqhe45QxOZ9xF kbHYVbj+dkRt4hjc4m7k6lm5Zr7Gi4/EFNUy48//UWorlW06+2sUpBKG9z4fdEYqPEOB DEJEGfmpfqOPoIPXb99pMm23ZTYj+oDr7oVWOkfZ4T1QKhxb3im/7rM9nppObZgM5qLS TqG+aBk5vvksl9RGq4t3kAkbESJV3rB3wytBhAZ7Fj9L4wS88WMv7dC8xFMmnth7+TwB 83bA== 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:date:subject:cc:to:from; bh=/btI2skGVYXmN/t27DfDjticHd6mSQgIt4RE0pxk38s=; b=YbEUTfr+sB8fGeCTPASXY2z0Jz2A54t12uZ5KcYQyetPL3Vn13e0HRQOx/VTn5E7hC bczWSYrEtyF5benABRZOvr17XU0xJcWFw3dPauyBba0QtzAxcT8R/QnMu9tFC4VFdTF5 4v3/XtcEYv1gG+S5JflMDn7TOlqhHrnIAz1x8MMSvHPjdAOaN88PeoeNLnb1gfJtlrTf AbUPfJLz8hWqeq6xZVopibh3NCKDL8HwM3VPStWta85chAw5dp4hB6mPAspJ5+778c6S bJofTVGAZ5dSVLWlwiA9v3dr+1Kb1VwKtrQ4GzrTK9qy4csSZAleO6EcMrTJeRkEwrKf a2og== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id bg3-20020a05600c3c8300b0037e391f947bsi827132wmb.4.2022.03.14.05.28.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Mar 2022 05:28:32 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from home.localnet (44-208-124-178-static.mgts.by [178.124.208.44] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 22ECSVhw012946 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Mar 2022 13:28:32 +0100 From: Uladzimir Bely To: isar-users@googlegroups.com Cc: "isar-users@googlegroups.com" , "jan.kiszka@siemens.com" , "Moessbauer, Felix" Subject: Re: [PATCH v6 07/12] sbuild: support of shell exports from dpkg_runbuild_prepend Date: Mon, 14 Mar 2022 15:28:30 +0300 Message-ID: <2589575.vuYhMxLoTh@home> In-Reply-To: References: <20220210064620.4392-1-ubely@ilbers.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: Qj9YZ3nXoT8x In the email from Wednesday, 9 March 2022 20:57:32 +03 user Moessbauer, Fel= ix=20 wrote: > Hi, >=20 > The attached patch adds support to run the sbuild behind a proxy. > I briefly tested this with "bitbake mc:qemuamd64-bullseye:isar-image-base" > in an environment where proxies are mandatory. >=20 Hi. I've fixed proxy in a bit different way. I found that sbuild supports so=20 called 'environment filters' that allow to pass particualr variables to the= =20 build environment. You can look at the patch https://github.com/ilbers/isar/commit/380e17d9=20 which, besides fixing proxy, also modifies a bit `sbuild_export()` function= ,=20 so that no additional same lines would added to sbuild.conf on the sequenti= al=20 runs of build. I'm not completely sure, but it seems that if some variable is added to=20 $environment_filter array, it even doesn't need to be passed via=20 sbuild_export(). But this should be tested > Best regards, > Felix >=20 > > -----Original Message----- > > From: isar-users@googlegroups.com On > > Behalf Of Moessbauer, Felix > > Sent: Thursday, March 3, 2022 2:37 PM > > To: Uladzimir Bely > > Cc: isar-users@googlegroups.com > > Subject: RE: [PATCH v6 07/12] sbuild: support of shell exports from > > dpkg_runbuild_prepend > >=20 > > Hi, > >=20 > > > + > > > + # Don't warn some variables > > > + [ "${var}" =3D "PARALLEL_MAKE" ] && continue > > > + [ "${var}" =3D "CCACHE_DIR" ] && continue > > > + [ "${var}" =3D "PATH_PREPEND" ] && continue > > > + [ "${var}" =3D "DEB_BUILD_OPTIONS" ] && continue > > > + [ "${var}" =3D "DEB_BUILD_PROFILES" ] && continue > > > + > > > + bbwarn "Export of '${line}' detected, please migrate to > > > templates" > >=20 > > There are more variables that have to be excluded, e.g. all proxy relat= ed > > settings: > > (http_proxy, HTTP_PROXY, https_proxy, HTTPS_PROXY, no_proxy, NO_PROXY). > >=20 > > But the proxy settings have to be passed into the sbuild environment. > > Currently, building behind a proxy fails (in do_dpkg_build): > >=20 > > +----------------------------------------------------------------------= =2D-- > > -----+>=20 > > | Update chroot = =20 > > | |>=20 > > +----------------------------------------------------------------------= =2D-- > > -----+ [...] > > Err:8 > > https://eur01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fdeb.= debia > > n.org%2Fdebian&data=3D04%7C01%7Cfelix.moessbauer%40siemens.com%7 > > C2c6b2941e0eb40ffccb408d9fd1ad566%7C38ae3bcd95794fd4addab42e1495d5 > > 5a%7C1%7C0%7C637819114851078826%7CUnknown%7CTWFpbGZsb3d8eyJWI > > joiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C300 > > 0&sdata=3DaLGsi%2BBgf28Cm5g7GGhBY5h3eRu7cL5do5Ern45lsVA%3D&am > > p;reserved=3D0 bullseye Release > >=20 > > Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:62::64= 4). > > - > >=20 > > connect (101: Network is unreachable) > >=20 > > Best regards, > > Felix > >=20 > > -- > > Siemens AG, Technology, T CED SES-DE > > Otto-Hahn-Ring 6, 81739 M=FCnchen, Germany > >=20 > >=20 > > -- > > You received this message because you are subscribed to the Google Grou= ps > > "isar-users" group. > > To unsubscribe from this group and stop receiving emails from it, send = an > > email to isar-users+unsubscribe@googlegroups.com. > > To view this discussion on the web visit > > https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgro= ups.g > > oogle.com%2Fd%2Fmsgid%2Fisar- > > users%2FAM9PR10MB48698F892FBA3A33D2C0405289049%2540AM9PR10MB4 > > 869.EURPRD10.PROD.OUTLOOK.COM&data=3D04%7C01%7Cfelix.moessbau > > er%40siemens.com%7C2c6b2941e0eb40ffccb408d9fd1ad566%7C38ae3bcd957 > > 94fd4addab42e1495d55a%7C1%7C0%7C637819114851078826%7CUnknown%7 > > CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJ > > XVCI6Mn0%3D%7C3000&sdata=3DPGDjMxGm4JkrqZoktZXAJakrj3Xmxt1w8Gq > > vVVYmL5w%3D&reserved=3D0. =2D-=20 Uladzimir Bely