From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7278939938131804160 X-Received: by 2002:a2e:7814:0:b0:2bc:be3c:9080 with SMTP id t20-20020a2e7814000000b002bcbe3c9080mr5207435ljc.27.1695652698013; Mon, 25 Sep 2023 07:38:18 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:a37a:0:b0:2bf:fb2c:fd70 with SMTP id i26-20020a2ea37a000000b002bffb2cfd70ls171969ljn.2.-pod-prod-00-eu; Mon, 25 Sep 2023 07:38:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGgYa7l++iTL7Y+WgXlcH4UnwBzlVB6JM0m1Zz9kTv91AfpDscS0qiEgF4cDXO/H2Ffw7+L X-Received: by 2002:a05:651c:86:b0:2c1:5607:d5ac with SMTP id 6-20020a05651c008600b002c15607d5acmr1686995ljq.20.1695652695873; Mon, 25 Sep 2023 07:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695652695; cv=none; d=google.com; s=arc-20160816; b=VXOocPWTpNh3WHnzqv4kWNjFN85/h5T1zBGtjJR+yGcuJ9AVxBFupTMBVRPqcJZBfm FejA4cqrXrG5MbSA+1JB3eAFF0wZsEImqR60LQlJyh8M2A+7mGmZPjfpl41vnw9LASF+ q1BQ1nr7jTBVaiyJMABYHYG+Evord1uzyU0w1JhplBbpJV6CAZw/hVV0ZkX0x3jwvznJ s8nxGTSh32yCm4WbsNDtkTfcdfeV++hyf71IYI3UnkjAckjjSshz5eFLARo4nsK/Vb8x /SW+GBA1p5terVsDZYZtXop0P48+CMvo6H0GBIFR/d7PToaaMYyVH4tm88JLCNPQoX8A mjgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id; bh=q+7jxF5beg08Zl4dmf3UZ50Dw6U+ZvW+o7q1DS9JK6M=; fh=O+ZMFUiiuyZKsfz7Fw8hsdknZlxcSFSsLsCydBEGD0o=; b=Rp6GAMdydHXtd1B02Ucx04fDQ0mYOUJ+sSsabASA+DVdnbpPZjmNTAG5lqCzSuXrWX N9SN1/uFa5CXODYKYgRDMbXNqpaqS9yTe2Tm2a28hfQ4Ca7rwHppT7ToMjEgYksm97xl lTA6TyVB56i3/I39oKsDwQWcYrW82aDd8rAQ2TQzKiRBpVfyvIkpiqAK3C0t1ay1iEe2 /0HYH6dWqJDk0vsD0hL2uJsv+7Dl8RqK165RD7yNcRGpB69ILpRVtqozmBAu9vKVHLKm wUq7llq1PWr4DGDpQ1hVON6oYnPNAVqVcSQ50TVG/AuiRZf0T+5Fo4+zvU1dVNlRQvgj UtNg== 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 u16-20020a2e8450000000b002b9e701adbfsi650433ljh.1.2023.09.25.07.38.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Sep 2023 07:38:15 -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 [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 38PEcDK2013973 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Sep 2023 16:38:14 +0200 Message-ID: Subject: Re: [PATCH v4 03/13] kas: Add mirror selection From: Uladzimir Bely To: Jan Kiszka , isar-users@googlegroups.com Date: Mon, 25 Sep 2023 17:38:16 +0300 In-Reply-To: <37f46918-9d42-42f8-82ed-2158c2459fb9@siemens.com> References: <20230922091003.20763-1-ubely@ilbers.de> <20230922091003.20763-4-ubely@ilbers.de> <37f46918-9d42-42f8-82ed-2158c2459fb9@siemens.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (by Flathub.org) MIME-Version: 1.0 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: jS0M3XaYqaDT On Mon, 2023-09-25 at 13:34 +0200, Jan Kiszka wrote: > On 22.09.23 11:09, Uladzimir Bely wrote: > > This allows to select better (faster) mirror for Debian and Ubuntu > > distributions. > >=20 > > Isar DISTRO_APT_PREMIRRORS is used under the hood. > >=20 > > Signed-off-by: Uladzimir Bely > > --- > > =C2=A0Kconfig=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 1 + > > =C2=A0kas/opt/Kconfig=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 | 42 > > ++++++++++++++++++++++++++++++++++++++ > > =C2=A0kas/opt/mirror-debian.yaml | 10 +++++++++ > > =C2=A0kas/opt/mirror-ubuntu.yaml | 10 +++++++++ > > =C2=A04 files changed, 63 insertions(+) > > =C2=A0create mode 100644 kas/opt/Kconfig > > =C2=A0create mode 100644 kas/opt/mirror-debian.yaml > > =C2=A0create mode 100644 kas/opt/mirror-ubuntu.yaml > >=20 > > diff --git a/Kconfig b/Kconfig > > index 591fe765..a62fbf6c 100644 > > --- a/Kconfig > > +++ b/Kconfig > > @@ -16,3 +16,4 @@ config KAS_BUILD_SYSTEM > > =C2=A0 > > =C2=A0source "kas/distro/Kconfig" > > =C2=A0source "kas/machine/Kconfig" > > +source "kas/opt/Kconfig" > > diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig > > new file mode 100644 > > index 00000000..06a9e3e5 > > --- /dev/null > > +++ b/kas/opt/Kconfig > > @@ -0,0 +1,42 @@ > > +# This software is a part of ISAR. > > +# Copyright (C) 2023 ilbers GmbH > > +# > > +# Authors: > > +#=C2=A0 Uladzimir Bely > > + > > +menu "Mirror selection" > > + > > +config MIRROR_DEBIAN > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0bool "Use specific Debian mi= rror" > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0depends on DEBIAN_BUSTER || = DEBIAN_BULLSEYE || > > DEBIAN_BOOKWORM > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0help > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Select better local D= ebian mirror instead of > > deb.debian.org > > + > > +config MIRROR_DEBIAN_URL > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0string "URL of Debian mirror= " > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0default "http://deb.debian.o= rg" > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0depends on MIRROR_DEBIAN > > + > > +config KAS_INCLUDE_MIRROR_DEBIAN > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0string > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0default "kas/opt/mirror-debi= an.yaml" > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0depends on MIRROR_DEBIAN > > + > > + > > +config MIRROR_UBUNTU > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0bool "Use specific Ubuntu mi= rror" > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0depends on UBUNTU_FOCAL || U= BUNTU_JAMMY > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0help > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Select better local U= buntu mirror instead of > > archive.ubuntu.com > > + > > +config MIRROR_UBUNTU_URL > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0string "URL of Ubuntu mirror= " > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0default "http://archive.ubun= tu.com" > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0depends on MIRROR_UBUNTU > > + > > +config KAS_INCLUDE_MIRROR_UBUNTU > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0string > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0default "kas/opt/mirror-ubun= tu.yaml" > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0depends on MIRROR_UBUNTU > > + > > +endmenu >=20 > This menu looks strangely empty when selecting sid[-ports]. Maybe > make > it !depend on that or depend on supported distros? >=20 Do you mean, hide complete menu if sid-ports/raspbian selected? I also got an idea - not about mirrors, but in general... Maybe, instead of always thinking on dependencies between distro and machine - we could simply replace it with multiconfig selection? E.g., in one menu we could simply list all possible multiconfigs. And, even select several of them for the build simulaneously. > Jan >=20 > > diff --git a/kas/opt/mirror-debian.yaml b/kas/opt/mirror- > > debian.yaml > > new file mode 100644 > > index 00000000..4dd4fc17 > > --- /dev/null > > +++ b/kas/opt/mirror-debian.yaml > > @@ -0,0 +1,10 @@ > > +# This software is a part of ISAR. > > +# Copyright (C) 2023 ilbers GmbH > > + > > +header: > > +=C2=A0 version: 14 > > + > > +local_conf_header: > > +=C2=A0 mirror-debian: | > > +=C2=A0=C2=A0=C2=A0 DISTRO_APT_PREMIRRORS +=3D "\ > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 http://deb\.debian\.org=C2=A0${MIRROR_D= EBIAN_URL}\n" > > diff --git a/kas/opt/mirror-ubuntu.yaml b/kas/opt/mirror- > > ubuntu.yaml > > new file mode 100644 > > index 00000000..3774b079 > > --- /dev/null > > +++ b/kas/opt/mirror-ubuntu.yaml > > @@ -0,0 +1,10 @@ > > +# This software is a part of ISAR. > > +# Copyright (C) 2023 ilbers GmbH > > + > > +header: > > +=C2=A0 version: 14 > > + > > +local_conf_header: > > +=C2=A0 mirror-ubuntu: | > > +=C2=A0=C2=A0=C2=A0 DISTRO_APT_PREMIRRORS +=3D "\ > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 http://archive\.ubuntu\.com=C2=A0${MIRR= OR_UBUNTU_URL}\n" >=20