From patchwork Fri May 26 07:00:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 2844 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 26 May 2023 09:00:45 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ot1-f55.google.com (mail-ot1-f55.google.com [209.85.210.55]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 34Q70hd6013391 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 May 2023 09:00:44 +0200 Received: by mail-ot1-f55.google.com with SMTP id 46e09a7af769-6b0c537a99csf462913a34.0; Fri, 26 May 2023 00:00:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685084438; cv=pass; d=google.com; s=arc-20160816; b=WdMaamgE7jz6vrTE6jV/zaOS+iiNFlsnDaJ+g/ninvYmN//LAeILTtRpKHQKWw875s Kv7mOMjiTDTXgP2w3Wmb106LXBGKXg4W9FE5zipyHoJ0wzjzxRQy68HfgGIBpg/Qf5hF QmSDwiBOoLGIRjYh+jbvIuY9GMYGlE+x0+8itd0sgdrx0aGz5/HrPhjOl4W1qfvOLu0Y lfoSV9KV0mCivRk4IuL1XIUuo8IvzY64Zi+WQ+RSbXptFKLShaf31w7E6yJu5H7ZPsb/ l19I4NxFCHVsOKztSSmBmm7JBbiE4LZUhEfImzNg44zRH8S5Mjb/rJ/jDE2Uu/6E9fjH YCcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=YMV/lswDNs10GvRZmCC74jVzepyoSlrAge6xNLez/Xg=; b=UTTAbfu5K/M43tDp8UR2gcvtyGqjjb43/mSMZulAOgoOn5sXe7HhED421Ra8dk/Mel X4UU9DsVvlxNhJzi7tk9gFUCyMSUkCQtN7PBOsfjRoHcE3GQ944X3Kysm/yP9Gs0XtVu 1V/jqLs4COPXOr3OC6NScrbRe0xy+/5CkgzBvSnc4seDZkMP35FTBP9kk8bdTWW7NgUB RWYms6ins+wjWwPTgFdqf1XeOpPkCSrRHkZRDiBjFQKwg8yCiwl9KwbXwVVo+paiub08 WdCLjgTys5qCc+kDSDlKK0kcdxTe1A8nu8Lu+KwT9QobMpqEATts+miGWxOQMYDCUwV8 Gd1g== ARC-Authentication-Results: i=2; 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1685084438; x=1687676438; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=YMV/lswDNs10GvRZmCC74jVzepyoSlrAge6xNLez/Xg=; b=sR66Pb5CxUlKPEvWZQfjwqmxgj5Qlu4v3KM8k+peTlZ67r+GgIPjvKieJlz9xjoOVw Nm7bfBv+oo1F6ssF0L9+AlU12r29ihBMMyah/q8OzD1qrTQTYioYl4Jc8Tvr0NOUFmfh Tr4C4tbNCg9ToqALUH/wgba0OQV1hloxjH5LDT7wu3HAPF0vB7dglTo6SH9N9a3Spgn1 zqSQFyS+cXpPQioejIxG9ZCA0EmTRoQhp4r/bJaD+tCuLWGRNLCBbnnpnTKaCUxfkY/6 bgVwah+DYbQYzw6onCUie2JKWHhfKtfKyt4uaGFVL5hP4+qNqmdnvW9hQBOJe45Y/zEI Nicg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685084438; x=1687676438; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=YMV/lswDNs10GvRZmCC74jVzepyoSlrAge6xNLez/Xg=; b=KWVtF9ILJTWHDN5741BJvGTMxPQ749wYhtGnRE/f5egtb3SCdryMNHQHjwqIkjmn4F 5iyCnJaG2RwTh45VyyMiPBBsq+YbFpPNGZYcWZeBKazkIF6W5K4Qn/hRCOerb7aB4YCw FNztbm21nrnUraGEAsQO2bedQwavj1mzWVJBW1KRDsxPEpXbCMYNVBmkN3Uc/rgqe/dA XhCpd6aEop2sr2Ku4tp2yTJs1yeM4n1ccryiXpP5Pp3NaqbS6q4qH96u57in5HnVLFOj SBESAjWWQuOSJ8eV2EYuaTbV86/MxIDaBNFW2aHRd51U/T+MXw2rKykMqlPkU5FUz4bO i03w== Sender: isar-users@googlegroups.com X-Gm-Message-State: AC+VfDw/0uy9TzjMV/38ilLnfkzk5YSfA4hTreWrPsM+Lwg8dsq7C5uG T9M/Ub4sfVHmlTGnaFb+zOY= X-Google-Smtp-Source: ACHHUZ5Hd61kYIebyLSfrDZQRn5hBl6fxr/Zgl4Icg09rM+v3l6Ifs/V5W1zjaxZCpeQ27AkJgixbw== X-Received: by 2002:a9d:66ce:0:b0:6af:9c8d:8b14 with SMTP id t14-20020a9d66ce000000b006af9c8d8b14mr157524otm.2.1685084437880; 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-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 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; 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 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS 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-Original-Sender: ubely@ilbers.de X-Original-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 Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= 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