From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7237382541983875072 X-Received: by 2002:aca:e106:0:b0:397:fb38:ec85 with SMTP id y6-20020acae106000000b00397fb38ec85mr233788oig.11.1685084437951; Fri, 26 May 2023 00:00:37 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a4a:d697:0:b0:555:458b:d30d with SMTP id i23-20020a4ad697000000b00555458bd30dls1100767oot.0.-pod-prod-05-us; Fri, 26 May 2023 00:00:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4hQgFjEtxhQ/DIioFno0XW20u8s06A3Swci8mkpQiucXOJebQzPLHtxKk79eIXxDXqVOte X-Received: by 2002:a05:6808:e88:b0:393:fb3e:6151 with SMTP id k8-20020a0568080e8800b00393fb3e6151mr586687oil.50.1685084437118; Fri, 26 May 2023 00:00:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685084437; cv=none; d=google.com; s=arc-20160816; b=ppIJGBwPWCLW2C1J5Lc2oJ0QepmvVQmvpv3Qm+VcwyCqpYi8aZZbKngL+RrEhxHZGD kEixr0w5+V8mIK/OEiuqssqQDUoY+5i6TsZhNmPbBcTkFXdM5BUED9SnEOoKnQPNmd05 ChshXPUom29KhLiHRG/JjPfGDBgmOOs9Ahr29Q7MzPgy//vuzvQMoExRUlrVvjOzbowA WghjPkSmHwUmhkTpws7b6nRNP3cmBIKokwS/g2o65t3CaNBOIfktAbqQaqlh1ncWU2/i 7x3GOR5ogBggfsrxzRw9eT9i2ZAKVCujcwQizBboh93gCDe0ZEF9wO+akrJSUWuHQ9AB yEDA== 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:to:from; bh=aUC1aRv+EOfdJj6Qihm4gGX1t/Xwnzwob8TA0DCrpMo=; b=KYZJr+4eBwvf+JXxPFHfhc63dGsbV7+mH0wBWnuDHyWNWQceYvS/MxY0ER5S1xJAlL mPHv9ZpZk1WngUzR9ZjdU3IfGoOeIPIMPw57xvNmZ7SMvvq7oswao/YhhAk29jBnvCj+ SpwECLWGcl8KuDs0UraKnUrzXqpo0fzKzycQVrXCRcP9MbiKpQLgWGarMo1P4e7GpjLZ idVptPNBUXLmzfHb0sLpvdff+n8ODjbPO22hqKKSJlmYXSyYhSMY49w5Y3pjTMoydTGA k4+Pi0fYEJWxeLGmB4xhvaeYSSKIyYXInnMcBvHqhQnWWBWo9Px41Z0V0G3O4R/NPMzk B9EQ== 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 bo10-20020a056808228a00b00397fc21f0a2si275179oib.4.2023.05.26.00.00.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 May 2023 00:00:37 -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 baighyz.m.ilbers.de (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 34Q70R3e013306 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 26 May 2023 09:00:31 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v5 10/12] Set ISAR_PREFETCH_BASE_APT by default Date: Fri, 26 May 2023 09:00:25 +0200 Message-Id: <20230526070027.16890-11-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230526070027.16890-1-ubely@ilbers.de> References: <20230526070027.16890-1-ubely@ilbers.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: BnRPl+zkcs1R This makes Isar use `base-apt` repo in different way. Any package installation is done from `base-apt` repo, which is prepopulated from the external mirrors. This behaviour is disabled by default for downstreams. To enable it, set the variable to "1", like isar does in local.conf.sample. Signed-off-by: Uladzimir Bely --- RECIPE-API-CHANGELOG.md | 9 +++++++++ meta-isar/conf/local.conf.sample | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md index 7a16b5c2..ae845674 100644 --- a/RECIPE-API-CHANGELOG.md +++ b/RECIPE-API-CHANGELOG.md @@ -492,3 +492,12 @@ Recipes inheriting dpkg-base now automatically have a bitbake target exists for the current `DISTRO_ARCH`. In that case the compat package can be built by adding `-compat` to `DEPENDS` or `IMAGE_INSTALL`. + +### "Prefetch" mode for base-apt + +Originally, `base-apt` repo is created only during second build when variable +ISAR_USE_CACHED_BASE_REPO is set. The repo is populated with every package that +took part in the first build and was cached in DL_DIR. + +New ISAR_PREFETCH_BASE_APT variable changes the way `base-apt` is populated. +Packages added to the repo before any step they are requested. diff --git a/meta-isar/conf/local.conf.sample b/meta-isar/conf/local.conf.sample index 7e0184e4..2d3c9c1e 100644 --- a/meta-isar/conf/local.conf.sample +++ b/meta-isar/conf/local.conf.sample @@ -215,6 +215,10 @@ ISAR_CROSS_COMPILE ?= "0" # does not access the network #BB_NO_NETWORK ?= "1" +# Comment out for switching to old base-apt behaviour when it's populated +# at the beginnig of the second build +ISAR_PREFETCH_BASE_APT ?= "1" + # Set root password to 'root' # Password was encrypted using following command: # mkpasswd -m sha512crypt -R 10000 -- 2.20.1