From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 07 Feb 2025 16:58:10 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f57.google.com (mail-wm1-f57.google.com [209.85.128.57]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 517Fw9FT025733 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 7 Feb 2025 16:58:10 +0100 Received: by mail-wm1-f57.google.com with SMTP id 5b1f17b1804b1-4361ac8b25fsf12673245e9.2 for ; Fri, 07 Feb 2025 07:58:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1738943884; cv=pass; d=google.com; s=arc-20240605; b=lDMttcZ8sF1UqKEZkxsSSM0NUdS0JbddImJbK7qXAWTIxko7p4zySn4gwH0kBvu65T IPZG6tWj6CJeH4ll4hu1N6VKEVSl1Z2fd9nH6wj/IfHQ+qpbwhkIYNv9OilRegmewOmX hu0dAnf4iaACTw7KMMdcWdz2G7GTsyatwQXCUiiXTTA/M8hXPFHBSO5OKfZvwjv4U8Jg W0CXX01A0cBXnDqwL4sdW49l9Y0kwrfY/Y+nBpmfq6WFTBuIl9YSza9N5oYQcU7uIXCH ml8TXooRA8otBtAqLAefy1mNPbVgX7KOc1QyNmr0l6HThc/RG9KYTj1qI/vI4f/iRhAD dq9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-transfer-encoding :in-reply-to:from:cc:content-language:references:to:subject :user-agent:mime-version:date:message-id:sender:dkim-signature; bh=8z/ZWDIIF1OSII4ElRsPTM/vvtf4HVoufAtCbGH9ovI=; fh=vHcehTOVREyogIc8R8CSk3IP55NeB8H6+ZLj6HJM0FQ=; b=e73vEXEcYKgDEcvlhnDSczLZ9PDIW/+wMJsLBzu17rThcXB9HepLmnSZPVFNlzlKXR WsJHya0tfNA5s82vaTavmsDW30nKtCQHd3F33WbVqTkL2jUSsjK6RnjL4LDM6ow78+LZ Hl+0Hyy6JYgoi2ra42sKri9xz4PRz6NNbglTfRyFTLw4M3qnnPqBgadJ9VUQs0e0H/Ku d3mpvhvAHnJswvC7KfVFb8rgyIJv+eauyukDDFFoTbEvq2uGvqGyhoYZd5xvdLDoRHFK 6FQ79P5cQlgcHjqd+taPpEijWQwVFMI3kGKZsDeDPHz2q4AO8/OZGgwYMN5Mlx5dN+BF qJXg==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1738943884; x=1739548684; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:content-transfer-encoding:in-reply-to:from:cc :content-language:references:to:subject:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=8z/ZWDIIF1OSII4ElRsPTM/vvtf4HVoufAtCbGH9ovI=; b=uYZvjP5iHVBrMgs6gLGw/9lm7o1QelWapMuAGdOYYje7c0GJ6awm7z/h1fUGPSZeIp Zj0AEm8cSNjzy6SjYrizvi+8/qHBNqjMO3h4rK2Y6JzTtN33oD0sNihPgz9dsaeHHtD5 1nZgeOuZfwlu9bw3XF8gBzfZF/pSKm0nRUBpUvcc55KyXA4tU5r7TmxK0zbZT0ym0J+B zdPpdwF3a7RpqXzPvGm6ocm0UQQ8HNvHkRQSPWuBXO88h4Cf60wDh1yp0ocGLrb8tZya cYf3JD7smllZGErUrTwoaY6DbQAzH5vTpmxVbiFvcrTVPuCfeRiKUfs5KfMxkWoduDlG qDRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738943884; x=1739548684; 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 :content-transfer-encoding:in-reply-to:from:cc:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=8z/ZWDIIF1OSII4ElRsPTM/vvtf4HVoufAtCbGH9ovI=; b=fui17z8ogI9qPovKFLMxRu+/YHQ4GE1CUFKHhw5OtV7JTEokfPsMf216E3n+Oh/g/Z H0IZ5RCMPDNLWhf9WM/n73S0Ye3io5Abf93F923cfym3PPy+Jf44EPD0xndqobaqCJpW +HuQLjGO7j6t//gOtN083WpV0XrCrwlwXHCTp/6Ra5COYPPNB5HhlYyleG+L6wFGjVZI UVURqTOBCfLWNBa4G1EVPxdQKXBK4k/l+hUug8mOC87m9cC3cBW9Qbk4IVxIu02qQ/Qs IYE8zvkX+ohz08uyGJw9oyxuFa9auXqyDPXKAjRNnMntU7VLP2Rwk4wq75CZZtBnAY/e fbSQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWYe5jTJ3MnerJnK410rL0PXMXlJVWxtj/m7agV0nIoNf+QFdLpgXEyYIyXCD+g3tplXJoN@ilbers.de X-Gm-Message-State: AOJu0Yy9Ah0eF4RKbM0XGjcQJOb1SEFYnEN7spM/t9pFX/mJK+9Gqve8 a/g2OKtcD1NOTP81GlHBXyPyneRnqlAYCPdU+NQATiYR2se0H5Wa X-Google-Smtp-Source: AGHT+IEJX65hzUgjF/OW1KQmseM3Ufv2HYrT6lgDw4pFHbKtkXmahm3MS47wmxJzLOx2Di5xQE54Hw== X-Received: by 2002:a05:6000:1865:b0:38c:2745:2dfd with SMTP id ffacd0b85a97d-38dc9348314mr2715262f8f.42.1738943883141; Fri, 07 Feb 2025 07:58:03 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:a384:0:b0:38d:c2ec:c74a with SMTP id ffacd0b85a97d-38dc70d0d2fls455183f8f.1.-pod-prod-08-eu; Fri, 07 Feb 2025 07:58:01 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCV8HbCU0cXt+RKYGCQuKTCo2GGYQBsJ7JmBYlTi5WOAmSE1+Wf0iqR6toAe1uaQcxpdqnyI6KnFQZBj@googlegroups.com X-Received: by 2002:a05:6000:1f83:b0:385:f092:e16 with SMTP id ffacd0b85a97d-38dc93734d5mr2121291f8f.55.1738943880818; Fri, 07 Feb 2025 07:58:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1738943880; cv=none; d=google.com; s=arc-20240605; b=P9zOYgMKHYuWhyg/Nl/a8+qG4oUGEPTmosNPZr4NSvvecXNNPDkPGE05bh7OYrAR7f mL4UE9LXxDlqPRti4zw1WcJWym9lp2WRI72mkv92A4DbQatClRWuTSrOGw9IXvMFlCwO oQyTSe+Otmssl9a24M4WrU0gLrhoYbHKHdpByZEf76eVYKnyslDvKJid5lr5DSgOD7jT WwH2tuBR+e1F+HXET9eCZdzLF5PyAoKA9pQGy08wGaGxbmoMGWEau1Hk8kZtDqSAV0Tn iZLvw1Oatn98Z/kp4EFXO75g7qaRNC87GSmccGCHJpnXCoFPVmuYfQuelNxO/aX4bLud 6Btg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:in-reply-to:from:cc:content-language :references:to:subject:user-agent:mime-version:date:message-id; bh=ZTz6GsxCwqLrl6lLK6D1/+BjLRAW1ZQtAmTtjyAYpUk=; fh=0u/s2Z+/L826+4YAaSHi/681vP1yH9VXcvRbNRXhieY=; b=LFUNXgo5Ek5d07ldazTemVq4L4VdKh4WBnzfT0aJ3mpHwghjCTZMYiww+4H1yH5R1T /PT1FdXyQ9R2zb0ORubvMoD9NgWZ82kQzAer7H4pAh1nZxJBny3qH9MNk4wFyLPKKO1Y xCbmIrI79W4+4eL8hca/4WeU9EvDWULpIdB6PRxIeahRMXHAY/tIzs2pKxW4x5WANahi ct1K8NIDKFTpOy1NuRpzT3MUZRdaSliQEGSd5W4D1mqGubPTBWD2bgtLSzTqVBUvzuR4 62Wh6wS+dJrmyhLKGwwWZbrOS6TTTEEQwotKgVblwUClhALGZ1zrOLFo/Spss6IA+LsD bKXQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-43907f1b57bsi4210095e9.1.2025.02.07.07.58.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Feb 2025 07:58:00 -0800 (PST) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; 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 517FvwfL025721 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 7 Feb 2025 16:57:59 +0100 Message-ID: Date: Fri, 7 Feb 2025 17:57:57 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7] dpkg: Restore support for replacing pre-installed packages in sbuild-chroot To: Jan Kiszka , isar-users@googlegroups.com References: <20240127074253.24570-1-ubely@ilbers.de> <0dc61862-8da9-4fa0-a5cd-32b3a2f53262@siemens.com> Content-Language: en-US, ru-RU Cc: Uladzimir Bely , Baurzhan Ismagulov From: Anton Mikanovich In-Reply-To: <0dc61862-8da9-4fa0-a5cd-32b3a2f53262@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,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: amikan@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@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-TUID: NQmwj8x9oxvk 29/01/2024 09:59, 'Jan Kiszka' via isar-users wrote: > On 27.01.24 08:42, Uladzimir Bely wrote: >> From: Jan Kiszka >> >> During the migration to sbuild, support for using self-built packages in >> the build environment was lost if those were already part of the >> sbuild-chroot. This restores it by adding --apt-distupgrade to the >> sbuild call. But that is not enough because sbuild will only upgrade >> packages from already configured sources, not those specified via >> --extra-repository. We therefore have to switch back to configuring >> isar-apt during sbuild-chroot creation. >> >> As rootfs_configure_isar_apt configures the isar repo under >> /isar-apt, we bind-mount the one in /home/builder/${PN} to that folder. >> Another difference is that we now need to run apt-get update explicitly, >> but only for isar-apt. >> >> For apt fetching, we neither need nor want isar-apt to be available. >> Rebuilding self-generated apt packages is generally pointless as the >> needs are better addressed in the generating recipe itself. Exposing >> isar-apt to the fetch may furthermore lead to fetching a previously >> built source package of the same recipe, rather than pulling the >> external version. >> >> And because the sbuild-chroots are now left behind with isar-apt >> configured, the configuration in imager_run can be removed (credits to >> Srinuvasan Arjunan). >> >> Signed-off-by: Jan Kiszka >> Reviewed-by: Uladzimir Bely > Thanks for sending - thought I did, but I only prepared locally, never > triggered the submission. > > Jan > Hello Jan, It looks like this change creates one more issue. Here are simple steps to reproduce: Prepare test recipe: $ cat meta-isar/recipes-app/hello/pcre2.bb inherit dpkg SRC_URI =3D "apt://pcre2" CHANGELOG_V =3D "+isar" do_prepare_build() { =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 deb_add_changelog } Go to kas shell (qemuamd64 bookworm): $ kas-container shell Perform those steps: builder@b5422048da4a:/build$ bitbake -c local_isarapt cowsay builder@b5422048da4a:/build$ bitbake -c build pcre2 builder@b5422048da4a:/build$ bitbake -c cleansstate sbuild-chroot-target builder@b5422048da4a:/build$ bitbake -c build cowsay Result: | Reading package lists... | Building dependency tree... | Reading state information... | Calculating upgrade... | The following packages will be upgraded: |=C2=A0=C2=A0 libpcre2-8-0 | 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. | Need to get 0 B/261 kB of archives. | After this operation, 0 B of additional disk space will be used. | Get:1 file:/isar-apt isar/main amd64 libpcre2-8-0 amd64 10.42-1+isar=20 [261 kB] | Err:1 file:/isar-apt isar/main amd64 libpcre2-8-0 amd64 10.42-1+isar |=C2=A0=C2=A0 File not found -=20 /isar-apt/pool/main/p/pcre2/libpcre2-8-0_10.42-1+isar_amd64.deb (2: No=20 such file or directory) | E: Failed to fetch=20 file:/isar-apt/pool/main/p/pcre2/libpcre2-8-0_10.42-1%2bisar_amd64.deb=20 File not found -=20 /isar-apt/pool/main/p/pcre2/libpcre2-8-0_10.42-1+isar_amd64.deb (2: No=20 such file or directory) | E: Unable to fetch some archives, maybe run apt-get update or try with=20 --fix-missing? | E: apt-get dist-upgrade failed Cowsay do not depend on libpcre2-8-0, but dist-upgrade makes apt to install updated packages. The reason is /var/lib/apt/lists in sbuild chroot rootfs has the informatio= n about newer libpcre2-8-0_10.42-1+isar_amd64.deb while it is not exists=20 in local isar-apt copy of cowsay package. And even calling apt-get update of isar-apt do not help. And now I have the question about which use case does your commit fix? I've tried 2 scenarios: 1) Upgraded package needed. meta-isar/recipes-app/hello/pcre2.bb: CHANGELOG_V =3D "+isar" meta-isar/recipes-app/example-raw/example-raw_0.3.bb: DEBIAN_BUILD_DEPENDS =3D "libpcre2-8-0 (=3D 10.42-1+isar)" DEPENDS +=3D "pcre2" 2) Downgraded package needed. meta-isar/recipes-app/hello/pcre2.bb: CHANGELOG_V =3D "10.40-1" meta-isar/recipes-app/example-raw/example-raw_0.3.bb: DEBIAN_BUILD_DEPENDS =3D "libpcre2-8-0 (=3D 10.40-1)" DEPENDS +=3D "pcre2" And with your commit reverted both scenarios work ok (example-raw is=20 built ok). Am I missing something? --=20 You received this message because you are subscribed to the Google Groups "= isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= b9abff4e-8125-4d6a-86ac-b0a03ecf3b8f%40ilbers.de.