From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7286543990069919744 X-Received: by 2002:adf:e8ca:0:b0:317:630d:1e8e with SMTP id k10-20020adfe8ca000000b00317630d1e8emr18170867wrn.2.1697021400786; Wed, 11 Oct 2023 03:50:00 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:fe4a:0:b0:323:3654:7d7d with SMTP id m10-20020adffe4a000000b0032336547d7dls888830wrs.2.-pod-prod-03-eu; Wed, 11 Oct 2023 03:49:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYCVweDVqwYKVpz9BT9e+hBPH5ONA5jbt3dnGp8ebZywhwwPuckDCFYyPBZBn1l870jlKm X-Received: by 2002:a5d:5a06:0:b0:32d:23b7:49af with SMTP id bq6-20020a5d5a06000000b0032d23b749afmr4575615wrb.36.1697021398730; Wed, 11 Oct 2023 03:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697021398; cv=none; d=google.com; s=arc-20160816; b=Ol3VlYwq0KVAcYfbwyNe6Md04JdGLMkf15fqqmLG6sbqxel7DRd09uJVdHODREOzSL acsdINxWHXD5rg2U5ufkknpzdNj35zxeXkWRtLP5yuTjMKY7qmSDYu+Nc4JkFLLF67A0 AyJF5xQt8nlJ9e4OGtNAkIbXkbtuOUBAIYhfHdrmJ9tW8xchx0lzePgzQkGXiu4zoOtg eKVJKJixXo3ngHw8VZb7rw8Tm2yI5+cK/Y+D30EnR1OhKrJ2sXrG6AYIKv9vatPXGll2 XCvYY1EbZ30E7Qf+HHyC6GWZ9oX7zakpy5i+E3jJ1uZxA3nCz3kTHSNFBCWeQPUbgNDz k6dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id; bh=HB4gsrLrnF7zwAlaE9DRFZ3QpN6PRbBZk/K/rfCLJek=; fh=IxbeHM4vWxalf1XNf2rnGcQL+r1v0Lr0C6ICsGNNkYw=; b=lpzNppHmABjVuUHsBN4lxL/1B38S0SF9PqpK82N2Yb+Vfl5Aws6cqQsJsH2PfvgsB1 PZFi8KmIf0ND3pH3Qf4buBNoddo06sh98BP8U2NUCJDlXMMxYryM62Baqt1fFGtva31o YQ8wtup0uuq7uflEPh9UrNBfld/69X6EM9/RFWORH9+refLjMVvzhvZa83rDyypU5z7O NXTlYZxdvOflHZ8qrUgn4uVMZ80TjXxLfYkBNX4u+ycvCsgfVjy4+Zd1Xr3Dae2j8jsA Gh9nsFECBPQA4Zpa9Vflwky+Ce5Nq4h+Tc3ZQ+qEmZxKH3M3sdg67zFXaaV6o5aLGer1 WBeQ== 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 j32-20020a05600c1c2000b003fc39e1582fsi50554wms.1.2023.10.11.03.49.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Oct 2023 03:49:58 -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 [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 39BAntKK025065 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Oct 2023 12:49:57 +0200 Message-ID: <6dcf04ecd53ffe295930e2ce6320648ab94f109f.camel@ilbers.de> Subject: Re: [PATCH v2 0/9] HOST_ARCH, -native, riscv64, and all the rest From: Uladzimir Bely To: Jan Kiszka , isar-users Date: Wed, 11 Oct 2023 13:49:56 +0300 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (by Flathub.org) MIME-Version: 1.0 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: 571D5foCtEe1 On Fri, 2023-10-06 at 17:34 +0200, Jan Kiszka wrote: > Changes in v2: > =C2=A0- drop merged revert > =C2=A0- rename BUILD_HOST_ARCH to BUILD_ARCH > =C2=A0- add fix for explicit -native build in non-cross setups > =C2=A0- add missing debian-sid.conf >=20 > This tries to resolve the native build issues of the visionfive2, > fixing > some remaining corner case of -native usage: >=20 > If package A has B-native as build dependency but is then compiled > without cross-building, using qemu-user instead, it will incorrectly > request the build of B:, rather than B:. This > is resolved automatically now, and the solution is used for the > visionfive2. >=20 > For that board to build again, we also need to switch from sid-ports > to > sid, for riscv64 in general. >=20 > Furthermore, this reworks the crossvars logic to also account for the > corner case that a package is still requested as native although > ISAR_CROSS_COMPILE is off. While this is likely irrelvant in > practice, > the result is a more consistent logic of the crossvars class. >=20 > Jan >=20 > Jan Kiszka (9): > =C2=A0 Rename BUILD_HOST_ARCH to BUILD_ARCH > =C2=A0 dpkg: Drop redundant PACKAGE_ARCH initialization > =C2=A0 crossvars: Adjust logic to account for -native package builds in > =C2=A0=C2=A0=C2=A0 non-cross setups > =C2=A0 multiarch: Downgrade native dependencies when building in emulated > =C2=A0=C2=A0=C2=A0 environment > =C2=A0 meta-isar: jh7110-u-boot-spl-tool: Rely on native annotation > =C2=A0 meta-isar: jh7110-u-boot-spl-image: Fix native build > =C2=A0 meta-isar: u-boot-starfive-visionfive2: Simplify build dependencie= s > =C2=A0 linux-custom: Drop unused template variable > =C2=A0 Move riscv64 from sid-ports to regular sid >=20 > =C2=A0doc/user_manual.md=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 4 ++-- > =C2=A0kas/distro/Kconfig=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 6 +++--- > =C2=A0...{debian-sid-ports.yaml =3D> debian-sid.yaml} |=C2=A0 2 +- > =C2=A0kas/machine/Kconfig=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 6 +++--- > =C2=A0meta-isar/conf/mc.conf=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 |=C2=A0 6 +++--- > =C2=A0...64-sid-ports.conf =3D> qemuriscv64-sid.conf} |=C2=A0 2 +- > =C2=A0...0-sid-ports.conf =3D> sifive-fu540-sid.conf} |=C2=A0 2 +- > =C2=A0...rts.conf =3D> starfive-visionfive2-sid.conf} |=C2=A0 2 +- > =C2=A0.../jh7110-u-boot-spl-image_0.1.bb=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 6 +++--- > =C2=A0.../jh7110-u-boot-spl-tool_0.1.bb=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 3 --- > =C2=A0...-starfive-visionfive2_2021.10+VF2-3.0.4.bb |=C2=A0 4 +--- > =C2=A0meta/classes/crossvars.bbclass=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 19 ++++++++++-----= -- > =C2=A0meta/classes/dpkg-base.bbclass=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 2 +- > =C2=A0meta/classes/dpkg.bbclass=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 |=C2=A0 4 +--- > =C2=A0meta/classes/multiarch.bbclass=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 12 +++++++++++ > =C2=A0meta/conf/bitbake.conf=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 |=C2=A0 2 +- > =C2=A0meta/conf/distro/debian-sid.conf=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 21 > +++++++++++++++++++ > =C2=A0meta/recipes-kernel/linux/linux-custom.inc=C2=A0=C2=A0=C2=A0 |=C2= =A0 1 - > =C2=A0testsuite/citest.py=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 6 +++--- > =C2=A019 files changed, 70 insertions(+), 40 deletions(-) > =C2=A0rename kas/distro/{debian-sid-ports.yaml =3D> debian-sid.yaml} (78%= ) > =C2=A0rename meta-isar/conf/multiconfig/{qemuriscv64-sid-ports.conf =3D> > qemuriscv64-sid.conf} (85%) > =C2=A0rename meta-isar/conf/multiconfig/{sifive-fu540-sid-ports.conf =3D> > sifive-fu540-sid.conf} (76%) > =C2=A0rename meta-isar/conf/multiconfig/{starfive-visionfive2-sid- > ports.conf =3D> starfive-visionfive2-sid.conf} (78%) > =C2=A0create mode 100644 meta/conf/distro/debian-sid.conf >=20 While testing the patchset, I noticed that packages with "-compat" suffix now pull and use "sbuild-chroot-target" instead of "sbuild- chroot-host". Conditions: ISAR_CROSS_COMPILE =3D "1" ISAR_ENABLE_COMPAT_ARCH =3D "1" Build command: `bitbake -v mc:qemuarm64-bookworm:hello-compat` On 'next': ``` build$ ls -1 tmp/work/debian-bookworm-arm64/ base-apt hello-compat isar-apt isar-bootstrap-host sbuild-chroot-host ``` With patchset: ``` build$ ls -1 tmp/work/debian-bookworm-arm64/ base-apt hello-compat isar-apt isar-bootstrap-target sbuild-chroot-target ``` If talking about CI, it passes except repro tests. Due to this issue, some 'deb' files from raspios repositories go to "debian" download subdirectory, and during the second (base-apt cached) build they go to Debian's `base-apt` and it leads to the conflict when resolving dependencies. I'm stil debugging this, but this part of information may be useful.