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; Wed, 01 Jul 2026 09:36:17 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f60.google.com (mail-wm1-f60.google.com [209.85.128.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 6617aGsi003680 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 1 Jul 2026 09:36:16 +0200 Received: by mail-wm1-f60.google.com with SMTP id 5b1f17b1804b1-493bb6a4336sf3049825e9.3 for ; Wed, 01 Jul 2026 00:36:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1782891371; cv=pass; d=google.com; s=arc-20260327; b=PQAEXs+bhrIvrECWCaHKI/5qTMd6fdo6aGrowZu6s2xeMgCSzoTnoTvurXPNNqXi9t 3uGbgV367CIAK+ABtOrgvAfGMeQPOP0yDjdCGwWt+MkMYzciLOCJE1+RVpYg0QpaM6RV 9lyeagc63yDkIgXUuEUBLwW2Vv9kbQf8IIksMoF5DwQc77+DHWoT489lWCfRWHYgcOZy VRBuuT6u0uv3sZkvctREMzN6lbNgASD2xPqLSEukWyYjlCipQm+t9PROq94eQC+i1qy7 XKI153+eKLKMzb8gZmZddGV64tWdxkdJQ4y0OvrwaR2KWhz2poaqtuW+8rajhBBPjVoI 7YeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:sender:dkim-signature; bh=zawT4TJK067t05mjQUqe5wgGaPyHOoQEd6Mxliah0jI=; fh=50WYQdZttDw8GWdB8ZdwKL0gocd8RrZoqnXNK4JX+xI=; b=OwomR2nDSw0AloFqq2lOvw/16DigP8F8/K+J0Em+GiNxbes5yQnjXIaed/0oUbe/ry nF7P5XgwPYsfhyV/nrpwAiJbp2R9TVK2uKcbdzDpNhPRZJzRQWks3oMSblPU8sTLrVO7 t8coajzRf5qkCDzfY2sE9i0DLEIm9OdOsZWzzUwgu76Yf2sAe802uLBn1Ed2CNWHbhw8 1RAseXJAczmgBHd8U3bnldHW5EnRjZpHlonNw2M1brPcrKai27aYsUt0xfzYrBpBhsnx RaENh6pP/ilDwFO0kH6agIfE/snie25RNxZjCfoMp4K1TcWP7zDbjgt6dGlT33djp435 nTow==; 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=20251104; t=1782891371; x=1783496171; 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=zawT4TJK067t05mjQUqe5wgGaPyHOoQEd6Mxliah0jI=; b=DJ5kTJuAB075yf+2RqChYkMOBdqyj6zoNM/+MdtnoMWkOcgeaVrUa0jJmK9TXsYXMt bnunFJ4m6UvuRyWEU6uWvxxU0RMIddGwZwWKcnGyp4QwzP5hVSHHuaDKR/AIcCK4X0VK ZW78OPXeqdPSXiE+d2PiLlbw6ZCii5Ai0tPDR2i/6/kgs/CHYf0oi+lKLVrBnojPLKzy GtWbgjKzDMqOInegXOKHipDRXcuu23vXPELhrQUFwnCVTBG+QAAch1mOGkS0cpFSLz6p l0cndvPoQBrFtYnGP9fX7Lcl3bC81D/ByUt0nnZbRArYOYvuSwv4TmcLnFxvRLaQ2dmZ Dq5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782891371; x=1783496171; 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:content-language :references:cc: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=zawT4TJK067t05mjQUqe5wgGaPyHOoQEd6Mxliah0jI=; b=ZUBzgMS+2vWN+jcxsxBQ8w65lKH444ZBoM2e7RsgSBoghRscJuWuzIEpuhuVjEGnOo T7iM0iLqQDb2BfkcQcTfA8ibl3YU6y6hwABYxhWyxphtnxm5LXPhCzSQqNoiYUlnmQHa pI2d3hXs6WQOreuB1w+FPT8wIEmpH+BLvNKnCbBzbyvaG+5mgDUfkUAx5R87dSgdtccA zqnOSrdDwu5Ra616qsGkuclmX6Ks4tT9JnyWKSgTabv53wiv4gAm64xuAIxLByHH+DTp IYhkG9rp71xdWfWPU1ZUPsMIU2lHSSzj8dtmeBCDHvVP2UD9iTw6jrq4pd5/2jlQhEmj P9nQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AFNElJ+SssgYZ0OvIckksAPYMa+Fw0maHqK7b2aQIfRO8Z7V4pqzrPQVQs1cesDoCXcxzSAs/9Ri@ilbers.de X-Gm-Message-State: AOJu0YwBV6dBWF9ouZJ+/QEkwqwi+eqfEq2mzV230TrgvQp2RrIRs4Ix ixq3vHnSz2y8/eIwOTODI/4o46eu5HoEDpNlETOFZOPMDodOKDtzlr/1 X-Received: by 2002:a05:600c:810b:b0:493:b61c:72c3 with SMTP id 5b1f17b1804b1-493c2b99c43mr5727985e9.32.1782891370833; Wed, 01 Jul 2026 00:36:10 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="AX0PUUfYRAYBy5NBuLMHgJHQirV9b3if37U3V5OIW4SPD51QrA==" Received: by 2002:a05:600c:3584:b0:493:b5a3:9c49 with SMTP id 5b1f17b1804b1-493bfc529b1ls5703045e9.2.-pod-prod-01-eu; Wed, 01 Jul 2026 00:36:08 -0700 (PDT) X-Forwarded-Encrypted: i=2; AFNElJ+ySiOglN3MoRBEyxVxLUgFhmbfoq1dSUXvq1rbfGUv+1PeL3R35XvEJr8SRH16mgyvL/cfZ2FSKqm8@googlegroups.com X-Received: by 2002:a05:600c:3b09:b0:493:b7ca:4b32 with SMTP id 5b1f17b1804b1-493c2b38e07mr7527635e9.1.1782891367970; Wed, 01 Jul 2026 00:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1782891367; cv=none; d=google.com; s=arc-20260327; b=qmrlvspMlB9Wo56vHVi+KcTct/6BsLKIIWS828oq72x2MofgAEvYY+Fx6coXx2HaZ9 C2b4ajuKO1bQXKKFYP1/YjauLvTf3eGNJD/C5F768pNE0cUeflf+5S2CPMuXBQs35q7I gWtnZQd3475q7TOX7zj8ZOcXhBvB1Vl/aWhKYLOmi6OIyQo0BLWOE2rDRVj/0gs+CPXX gk8S7XEreiaP4b0kKuWZoXusPYj2JkNiqXMn+5VZ4wNcS5SGxRmjg38gMO8z1uhAG7kt 0TpWcYtF3f7wsdJa1TJ48MPAmREVr4B82stNcgwNtjwzbf1FofPodg2aqSxSJbrpo7By GJZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=ZJPg0qdbpxhfhwepz1CUG/7AiXH61+oV1/+CXbBACds=; fh=RQ7k9Zd6vzOvZW7PlsXqjlzEQaCiAfktK9c5U6wA/bM=; b=BtxLJ6G6k++/m0FgxbFrbcaXP9GxiHGBa21DW6/XspzY7pMb5XaUonA90gf8Ol2YMz 9sP/u1XU9Y3tRsFfSTuRaoJK6pknqpgzywVmhU7ha2txlsEl6AZbu0L+97xrx9zbxh/Y KLHtTsf+S9rJNVpGNpM/GWT5/2YYRjp7xmEMghQ+eiga81+dbH+nEiGLEIHdxI5zl2M+ t2hy5gIU18OeLN1AjRpID9jNbcZEBLxnOymO24muWRmcftcZ1u8jXRlfJDfVyBkPUx1c m5DmOnaWVfxq+KwpAUAwOylRZkJPjhFPO7JmeSOugeRUfF95q0vKJhzNLaquThnht6mS sqig==; 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-493bef7b602si204345e9.2.2026.07.01.00.36.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Jul 2026 00:36:07 -0700 (PDT) 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] ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 6617a5PQ003671 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 1 Jul 2026 09:36:06 +0200 Message-ID: <6de97274-3f2c-4b62-a7e9-82f6e1f2c338@ilbers.de> Date: Wed, 1 Jul 2026 10:36:05 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: base-apt: Inconsistent priorities between apt-cache and .deb data break offline builds To: "MOESSBAUER, Felix" , "isar-users@googlegroups.com" Cc: "Bernecker, Herbert" , "Steiger, Christoph" , "jan.kiszka@siemen.com" References: <068441b599000a64dfee36800f1949ecda868662.camel@siemens.com> Content-Language: en-US, ru-RU From: Anton Mikanovich In-Reply-To: <068441b599000a64dfee36800f1949ecda868662.camel@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: fPAig8VMluma 30.06.2026 20:26, MOESSBAUER, Felix wrote: > On Tue, 2026-06-30 at 18:36 +0300, Anton Mikanovich wrote: >> On 30/06/2026 16:24, 'MOESSBAUER, Felix' via isar-users wrote: >>> Dear isar-devs, >>> >>> we noticed that cross-architecture offline builds are currently broken >>> and single-architecture offline builds differ from the online >>> variant.=C2=A0One failure pattern is the following, whereby the offline >>> isar-mmdebstrap-host fails with an error message like this: >>> >>> The following packages have unmet dependencies: >>> =C2=A0=C2=A0 libtext-wrapi18n-perl : Depends: libtext-charwidth-perl b= ut it is not >>> installable >>> E: Unable to correct problems, you have held broken packages. >>> E: The following information from --solver 3.0 may provide additional >>> context: >>> =C2=A0=C2=A0=C2=A0=C2=A0 Unable to satisfy dependencies. Reached two c= onflicting decisions: >>> =C2=A0=C2=A0=C2=A0=C2=A0 1. libtext-wrapi18n-perl:amd64=3D0.06-10 is s= elected for install >>> =C2=A0=C2=A0=C2=A0=C2=A0 2. libtext-wrapi18n-perl:amd64 Depends libtex= t-charwidth-perl >>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 but none of the choices are= installable: >>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [no choices] >>> >>> The root cause for this is that we ignore the upstream's repo priority >>> overrides when creating the base-apt: reprepro includedeb records the >>> priority from the .deb's own control field, and that becomes the >>> priority published in base-apt's Packages index. >>> >>> When these priorities differ, the set of packages installed in offline >>> mode are different from the ones in online mode. This per-se is plain >>> wrong, but only surfaces if a now-required arch=3Dall package depends o= n >>> its architecture specific variant which never has been fetched (because >>> the online bootstrap had access to the prio overrides). For non-cross >>> builds the result is also different, which can be checked by comparing >>> the SBOMs. >>> >>> There are HACKY ways to re-create the upstream priorities, but IMHO our >>> approach for offline builds is problematic and should be changed: >>> Instead of explicitly recreating the base-apt repo, we better just >>> preserve the upstream apt lists and inject our downloads/deb dir into >>> the apt cache that is used by the build. This would allow us to >>> completely drop the base-apt. >> Issues like that supposed to be fixed by "Improving base-apt usage" >> patchset. > This rings a bell. Looks like the series could need a revival. > >> It should address storing only needed packages, while DL_DIR is just a >> storage >> for everything without storing any real packages state in it. >> The idea is to have base-apt as an input, while isar-apt is used as an >> output. > I just checked the series, but this issue is not solved by it, as the > apt lists are not cached but only the packages. This is exactly what > breaks here: The packages have a different priority field than the apt > list. > > I'm wondering if a simpler solution is a pull-through cache, like many > people use for cached building of containers (like here [1]). That > let's apt take care of the caching instead of the surrounding build > environment. > > [1] > https://github.com/siemens/kas/blob/81bab5294be29de4b64adedce962d36184bfc= 66f/Dockerfile#L37 > >> We will look into the issue, starting from reproducing it. > It's easy to reproduce with these steps. You can even further reduce > the set of packages to the bare minimum to reproduce faster. Turns out not so easy: tried twice on clean setup with no luck so far. Are there any other options or changes? Here are debs in downloads after the build (on next b90b722f, default=20 debian-trixie): libtext-wrapi18n-perl_0.06-10_all.deb libtext-charwidth-perl_0.04-11+b4_amd64.deb libtext-charwidth-perl_0.04-11+b4_arm64.deb > >>> Reproducer: >>> >>> 1. kas-container menu, select qemuarm64 machine, build >>> 2. mv build build-online && mkdir build && cp -rf build- >>> online/downloads build/ >>> 3. kas-container build .config.yaml:offline.yml >>> >>> offline.yml: >>> header: >>> =C2=A0=C2=A0=C2=A0 version: 14 >>> local_conf_header: >>> =C2=A0=C2=A0=C2=A0 offline: | >>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ISAR_USE_CACHED_BASE_REPO =3D "1" >>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 BB_NO_NETWORK =3D "1" >> Do we need such an option in kas menu? > Probably? :) At least I did not see this option, but the variables are > documented. > > Felix --=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/= 6de97274-3f2c-4b62-a7e9-82f6e1f2c338%40ilbers.de.