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 14:30:06 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f59.google.com (mail-ed1-f59.google.com [209.85.208.59]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 661CU5tJ005464 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 1 Jul 2026 14:30:05 +0200 Received: by mail-ed1-f59.google.com with SMTP id 4fb4d7f45d1cf-69605010d3bsf769573a12.2 for ; Wed, 01 Jul 2026 05:30:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1782909000; cv=pass; d=google.com; s=arc-20260327; b=ZM42PYRzDnJeKw4UHFs3VkiBY5hiLbObFlBdhGvvlHTRBst69OgBjVdxpMqMpS6xTS C86UTQq9r1mzv8+YzBadoDV3ylF8nhJEoJ7GiywYLe0yEl1RRkVBbLE3ePW5sAjA3pdO 3vLK7OZ5Dg69NwwiLTlAd8NPHrF5b9O1kUOtMK3JYQSjBNRK7iPxdSQQOI3rrZUAvsVx rqZ3ZZf7+fxsFA26Jfkr076LwVA2YglorQYe3skkqmZXlxbbz8o2GFyBkn1VQic4xUhP 1FOxggQqDJUhzV5yW/b0BrOog65JK79aGNXN7wBGbk2JCuvOvv5BIiScB9rvs9LFIjDn MM0A== 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=DoapqkDi+VjM1g8/Bi6Usj7HfMZ0PhY7F00WCSDEAyU=; fh=AoQwOmYbUp3DkFrF5Z7daLJudSWN91h3EYo7PQIqBKo=; b=H5/H7xgEkTmko0MtpxhluBzJ70st33QFeTKPTwV9wckcGRvLAfSKxL0715z17YNCDt j+bw+iv2um5QiJbL/WC81uJlXzIAhzAttz7lAmz0xrCv4SGqSnvStOuT9edGKnqWv/bp hU8vKIvh/baqkBJAysFIXV1r0zAetNJp3EJ7kdWMWlwKGNtH1/sGXzOGEzFhjxG4lLkE 7vA2uqLZI7ULrMlWnt2TTebjVVAMYmYbWQVYZZn9VYrJGeOU9Mawbcn5NyDIqQsJRV2C gj8IOQzuxDBhgP+D4qgG8EGDe4NCqrWSukV2acOdOKnx8oDtXtyscV1alySolHR/Ygsq TVrg==; 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=1782909000; x=1783513800; 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=DoapqkDi+VjM1g8/Bi6Usj7HfMZ0PhY7F00WCSDEAyU=; b=upFKbSZOfgED0uavgr9vNui03EWMkNUa+Vp7tAmYnBTtmKcSHGVdrnb3GS0XnL6LoZ 2scxoV8JFipwc27m2bIM2lHBCDyITDNs/HoYvzFCS8XT3e2pFfAuEFTt4jWNyXeYt1wh XM3hIpOEMDAF0+7j+Qw9+I9O0vWriuTVgusPD1JEdV0zBMSVJBZzENxknOUISTOwmXuG Tp74FDoNVS9gUo8KiH0ER6GOMGNV1mCHCPSXDBLMcjh6qmnRIfPBKBDVwJjXRZT+mjsF j+haj8MBQvdx7CnuHfwCBqiguzmD62Ho6K4V+rtNcGnTuszZWmYwB9kMg4nPuNE7EUds akGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782909000; x=1783513800; 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=DoapqkDi+VjM1g8/Bi6Usj7HfMZ0PhY7F00WCSDEAyU=; b=QC/aRvBLUchiu1PDdwkhcU8GWosKQv75XoFBPshUXtBa9xR0KDtDmJGYOP/zmcW6Cj PpuSaLTRW872HFv5y5aw9mWYVlrSNYa/6MdwCT2geN9KmUypCMWvuTfHV5d1mqTe0QdJ T/AQGqpcU34JAk/1CIzjpXc1lChx+Rt9tOyR4EWPRgGYST1qT132Ee55fM3Cbw4o/Vj7 3bbPjAdPAskxrpEKoW+IOX3+YN09sGQQi+5z5UOrBtzxhb/mhCqmmDtNKaW13lYrGvLw CDapjr9Stw5Ksty+UWVtLQY6JtEbld2OkM1T8ss1Uqgx3iiZSKsqxRJuHY1QTDN6wF/8 alLQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AHgh+RqrizeQ86ym6Ro9mDVa0lmFF0cpTLNV1BMEhAfis5BVFv1vp4z8PYTcJ18dBYvZdCCV9Qer@ilbers.de X-Gm-Message-State: AOJu0Yx5madBjuk32eKSaTLevvT3V7kcBkEs0krQrPP3v4VlvoCcKHMx I0str55n4kUZac9z/dTnAD9xZ5MIk2tdJWN7tkV5q2nlbBqIbAZjfkCq X-Received: by 2002:a05:6402:27cf:b0:697:fc6b:10c2 with SMTP id 4fb4d7f45d1cf-6989f33c0eemr652746a12.16.1782908999841; Wed, 01 Jul 2026 05:29:59 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="AX0PUUemZp8m+Usf+pOjt1L0fgHWzp2rrnb3MLLClfDxhSGUTA==" Received: by 2002:a05:6402:a5ca:20b0:698:a1dc:f5b4 with SMTP id 4fb4d7f45d1cf-698a1dcf655ls249813a12.2.-pod-prod-01-eu; Wed, 01 Jul 2026 05:29:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AHgh+RocqoFCe5A0N//i5d/6sOglAvb39ZyobFtgkLthxXlBMpjAK8+2laq/x54Avi8lVoXs48utuLDsHpsi@googlegroups.com X-Received: by 2002:a05:6402:13d4:b0:698:ecf:d18a with SMTP id 4fb4d7f45d1cf-6989f32dec1mr668456a12.9.1782908996827; Wed, 01 Jul 2026 05:29:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1782908996; cv=none; d=google.com; s=arc-20260327; b=Cfw6udy2R06ZGOqcHFQ9GIHKeISCWV0ZoB4Blr/ymn/Qv2urZo/eZI11ZlOUTRkohT Vhi2f7FoILds2vlnugrSVEJk95VzbEMsR26jElow6c9zqjQND5eKPHfE1+mfWIU5ifJ1 Ym2LBjcjr8S154IRXcKbAypo92yG/nrMBE9D2AdQpgyiuif+YmXB2Cxbw9OJXUm4NyQM tdH7ob2qAGjNk/9ROJyeeHUVOsiFKqCTRFHEuRYm0cg7vX2+JvbipPvR8zzi03jpCRWZ xHvUHPNsoP6c4U0vZ4Uwm3clOSn8mHKh8sRVspP512yaFJCoXBix9u0qPf6JcX+MlzOP BoMA== 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=jPIjd3pwu2XEHfZr/0jf2i0WtqSGh9+ZZVlX3vB82rc=; fh=RQ7k9Zd6vzOvZW7PlsXqjlzEQaCiAfktK9c5U6wA/bM=; b=Ho8Ygegl9UErTkhifRs7ElkCupzCIjrhb8gOCJS65M/o7EJvtiqGusooOwqch9LNyb UsFTE4zRsTkujMaXM+fuOfTQqCJNIa+OVy7lK2q9SVIrR9oArEwdva/fBLkYGzRsA16w dMI6OrfrvgpZqyKbC2ktBrchwrzvifaJusY71B5P9U5oi2GoWT4nviDp+Pv6VrWgd4Sz rH4MeOJBHpRm97JajlHtbP2Qmfwv0O2oB53c/o/Wcq7OybZyDmBUXz5vQnOph9khFvNW LSm8v5NwrI7IDkJhlTeMMoqD4QJCpC1JDY+ZA1b3z/WiQmnKw+wvb+D8X0iQXMXIPgWb OgeA==; 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 4fb4d7f45d1cf-6987c96286esi75436a12.7.2026.07.01.05.29.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Jul 2026 05:29:56 -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 661CTsmq005457 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 1 Jul 2026 14:29:55 +0200 Message-ID: <6319798c-ee48-4d18-9f3b-c32e0569ab9c@ilbers.de> Date: Wed, 1 Jul 2026 15:29:54 +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> <6de97274-3f2c-4b62-a7e9-82f6e1f2c338@ilbers.de> <4327adfa99d5540fe1df8a38faedfcca678387c2.camel@siemens.com> Content-Language: en-US, ru-RU From: Anton Mikanovich In-Reply-To: <4327adfa99d5540fe1df8a38faedfcca678387c2.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: A5pauPG1bTHv 01.07.2026 11:56, MOESSBAUER, Felix wrote: > On Wed, 2026-07-01 at 10:36 +0300, Anton Mikanovich wrote: >> 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 broke= n >>>>> and single-architecture offline builds differ from the online >>>>> variant.=C2=A0One failure pattern is the following, whereby the offli= ne >>>>> isar-mmdebstrap-host fails with an error message like this: >>>>> >>>>> The following packages have unmet dependencies: >>>>> =C2=A0 =C2=A0=C2=A0 libtext-wrapi18n-perl : Depends: libtext-charwid= th-perl but 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=C2=A0 Unable to satisfy dependencies. Reac= hed two conflicting decisions: >>>>> =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 1. libtext-wrapi18n-perl:amd64=3D0.0= 6-10 is selected for install >>>>> =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 2. libtext-wrapi18n-perl:amd64 Depen= ds libtext-charwidth-perl >>>>> =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 but none of the ch= oices are installable: >>>>> =C2=A0 =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 priorit= y >>>>> 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 offlin= e >>>>> 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= on >>>>> its architecture specific variant which never has been fetched (becau= se >>>>> the online bootstrap had access to the prio overrides). For non-cross >>>>> builds the result is also different, which can be checked by comparin= g >>>>> the SBOMs. >>>>> >>>>> There are HACKY ways to re-create the upstream priorities, but IMHO o= ur >>>>> 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/81bab5294be29de4b64adedce962d36184b= fc66f/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? > Hi, you must start with an empty downloads folder. The libtext- > charwidth-perl_0.04-11+b4_amd64.deb indicates that the isar-image-base > was built for amd64. No, it was fetched during cross-building of any of hello/hello-isar/cowsay packages, which actually mask this issue. So disabling default packages is needed not just to speedup the build, but to unmask the issue. Now I can reproduce it. > > For debugging, I recommend to just build the bootstrap target for amd64 > and check that the libtext-charwidth-perl_0.04-11+b4_arm64.deb is NOT > in the downloads dir. Once that is confirmed, please retry the steps > from below. > > Felix > >> Here are debs in downloads after the build (on next b90b722f, default >> 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=C2=A0 version: 14 >>>>> local_conf_header: >>>>> =C2=A0 =C2=A0=C2=A0=C2=A0 offline: | >>>>> =C2=A0 =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=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 >> -- >> You received this message because you are subscribed to the Google Group= s "isar-users" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n email to isar-users+unsubscribe@googlegroups.com. >> To view this discussion visit https://groups.google.com/d/msgid/isar-use= rs/6de97274-3f2c-4b62-a7e9-82f6e1f2c338%40ilbers.de. --=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/= 6319798c-ee48-4d18-9f3b-c32e0569ab9c%40ilbers.de.