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; Tue, 28 Jul 2026 17:33:14 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f57.google.com (mail-ed1-f57.google.com [209.85.208.57]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 66SFXDLK011168 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 28 Jul 2026 17:33:13 +0200 Received: by mail-ed1-f57.google.com with SMTP id 4fb4d7f45d1cf-69e984607e7sf4298079a12.2 for ; Tue, 28 Jul 2026 08:33:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1785252788; cv=pass; d=google.com; s=arc-20260327; b=f1HzCMc9M4b1L6B0vDPsXN8pp2IY/FzTGr/hsiydy7smzli7MMe7l2bi25k0wPwmw3 XNWMHTpUP7I00eipD6ZpDw2GWaonuxnttf9ppYAIzF41bFYFtuQ6Ob+vhw4k7ld7pAJy O+CqRRz10Fspl726i/L9vpAIKgttJJeqIbaWe81K/+pFDEmPro/RaNoHchvmPIqzgq2j Suo2DYgKd2Yi0V3PfmA7bCgl8u3pKSJD87pwogW4/yvbb4UIe381mbSqSu62LMEyozPf NqFNZGULdR3DglX4zdV4ajP3VQnbYuSKxtQd+q1t0X0gpXSpxpXq8CxCiSXwKrLOU/aC /zZA== 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:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:dkim-signature; bh=QY7N7RQQjq8grYTNkDPMAa5VxtvHyVSUo4QTybBztaE=; fh=fpfWVavqlAkLbwYuLFs0MmdNJwo7P4aZcLXL9alpCM4=; b=GG67xpR6F4cT51sw+5O4UVt3TXTy2BkUIu9NpoXIoZJHchxtwEpXsLcav33Nm9vUlt 3qpxdJufbKMpRJbaKkrBJE17v4TT0Bh0cPumzsMWJRUtHunBjPCKYZRmy+ordkNwHFkw AlwkmSSw+5UZwBvso2qisKxZwpKHJM0p2OqYxIdYfKH/1qHgP+dbSapLz9NAakLd4JOb 8RbcSL34MCOaFIp8E9MTW8qKVn4pDYhujn9DvWiQG+NdcT6GJl8UxSg8K+C/mONWhLiB d16ZfjgG6LmDcNyODFKN52YvA/eqV4S7VTjZyA0bY+i+Ij55+z9yiexntB7PYz7sy8nT aTPw==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1785252788; x=1785857588; 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-type: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:content-type; bh=QY7N7RQQjq8grYTNkDPMAa5VxtvHyVSUo4QTybBztaE=; b=V1jZDI1D+EJDw18zqAHjD+clMU3cf9CfEP9jRyXcZDOeUvPeBB4wLSSLDKHrABy5mW y1Pi9RpXTfPS/6sAx/xIckkIMI+mHiQZnRppdxTZjutdVN98cIUtPW6beZAEFRMV7tWC 4xSntg/0X2ZI0gN2s/JcH5kOg/Taa4IQ2gWQJ1MVMqfVZZsP7hUf1qIp5GJYi0s3gEG/ W9TlvVGka2haxeeWPV3KmkjAiBKCmpS7EgxZK/Du8mKuSnwYQJCFtjZRBhQ4WEq+zCLj Ktk0LtgW9bvukxuFm7Xxu2qMbl9swm6AooB2gLdMJJxHUnTcFi8h7fxUz1mzrWjrx2Vj Ghqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785252788; x=1785857588; 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-type :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:content-type; bh=QY7N7RQQjq8grYTNkDPMAa5VxtvHyVSUo4QTybBztaE=; b=Jj843NonGTUNNh0fg4kpCCnA7wHptelBsIbeVj4OXNGlZKI+ReyIbUO0WYdGWyV13l gwj4EINliqJXYOKaXTFBu5npFvniS4Jwpul/C/rYATeeaYPnKdXkrb29fFxBhuf/95KR dIk0yZ3KGSKKf7oQDqf7pTo6HGIhzPTW/GvD3Yi7090jEgzdW0nLgkh+FKvejSz2nQh/ YKvnDK478ZMItFsAd8MCpx4vxNe5SZXLCxWA5YCoqfqVDw8hr03SqqBk2o7KtS/RMQBV W4V021mf6TFDaX1NlTxPKNlIu4NoHQFm9H2N4h5k8ARSYroYuLZOAFC0w2qw/ab5S2uS HKvA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AHgh+RpvvWexXW2OzIQzotJtD/QJVjKJtnZbWAI6HdNGfBI9A5SvAooZLYN2+eWqToMTir8PIce5@ilbers.de X-Gm-Message-State: AOJu0YzJ5zX0nBfdA3EgPlIjxebtwtRP5jzvO7KwNfmmXoIj27FGr0xa fFoMEz0lQrud9JNmy5n1qdqk2A/C5lozAF53PO6HB9+1GcIClNxshbEs X-Received: by 2002:a05:6402:388e:b0:69e:35ae:8afa with SMTP id 4fb4d7f45d1cf-6a034a544bdmr1577005a12.27.1785252787875; Tue, 28 Jul 2026 08:33:07 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="Aa7YSPQuY5g/FjOhrCbRnlDuE8KaqxH8q8ZHpE5zV4dH2SAVXA==" Received: by 2002:aa7:c942:0:b0:69e:1686:2039 with SMTP id 4fb4d7f45d1cf-69f60d9016fls6562298a12.2.-pod-prod-09-eu; Tue, 28 Jul 2026 08:33:05 -0700 (PDT) X-Forwarded-Encrypted: i=2; AHgh+RojHSjW/5sVYxrEToQnqZn5kwmGOqZ+jXtU8l++mJ0zwt+6rxiJorSIxLzYHiKu4C1uGT/XHnKbRViX@googlegroups.com X-Received: by 2002:a17:907:8b87:b0:c19:6117:b2bf with SMTP id a640c23a62f3a-c1f7247f45emr171166666b.54.1785252785500; Tue, 28 Jul 2026 08:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1785252785; cv=none; d=google.com; s=arc-20260327; b=YGuabpASfWySI5U2LIkjZb19iuuQEWVK2PQ2CKBRjQnAa5W+Msi7Tuhk8Iz5y9/O0s 7aHQdQdodBKqDUTvv7W1rskrqy0WOGJY/0hYReZ5GXbDr8nqDDzT35cCPWtu3DZntV7u m0cyIdamv6RqTyHxISFKZKyVIfvJ8fWsfWpQPxtGVRwp3XA4Dw2QGqdWHOUd2VjbiYDV JWfzF7k4G3ztFX5uc/SuGrYkCHcfo2WiOQtyLticHtv5DTKsLNegbIeKlv6CoqQwDiP+ /rf2s1SQIYGQBs0Jzvt2Thld/Tw1enRN7hHrrxkSRwsxUEQVb18BzuHEAILfbh5Izr2g XvNg== 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=TrNaSPC/ExzpCaBjpD4/8xx6zQbRPlbayIYyw/QG8fw=; fh=oj2Lw3hN0xAF1UllTKVHI9r/7a2eBqx72zyDCjayfJ0=; b=nW9JUuO1NPXJrUBPhg7Co/yNLRA7JBovYdbh5X6JDmDWRu5Y3CmYAm0gwXAkwTD6E+ 0WcwyQg9PzfBbUejWtm4UVnZyZUDJx+fAwu5R4nRwAKzEJcbM/84uGlSjSnOcH4fsTQH 1/Q8jFow46piQwIZUhzaLcW5h9LHbvWTP842E8GA4q+SB2E1si5NfzSrEIaKVAi9H2KZ dm3Xm/Ujqqqyct3dLNSLNXJKub5+vNDedBnyVeDhZNQZDo/je/xcfatLyAGbkcpZS40+ RtfFnJQB8TsdukdSz9D/Y4stgZNvVFn/Y46ivdWiNhj9IdFKez0m3w0RloJ5h+uKJvHK H6xA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id a640c23a62f3a-c1f83effbf0si24366b.4.2026.07.28.08.33.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Jul 2026 08:33:05 -0700 (PDT) Received-SPF: pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [192.168.178.139] ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 66SFX47u011155 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Jul 2026 17:33:04 +0200 Message-ID: <6ef4133a-9562-4609-8d09-00a0ae4835bd@ilbers.de> Date: Tue, 28 Jul 2026 17:33:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/1] sbuild-chroot: fix incompatible dependency optimization To: Felix Moessbauer , isar-users@googlegroups.com Cc: jan.kiszka@siemens.com References: <20260724134749.1150268-1-felix.moessbauer@siemens.com> Content-Language: en-US From: Zhihang Wei In-Reply-To: <20260724134749.1150268-1-felix.moessbauer@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed 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: wzh@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@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: iH6J+z5ESUpB Applied to next, thanks. Zhihang On 7/24/26 15:47, Felix Moessbauer wrote: > The dependency tree around build-essential is complex. On > architectures which cannot be cross-compiled incompatible with our > build-time optimization of pre-installing packages usually needed for > building. As the PACKAGE_ARCH = packages are always compiled in > the sbuild-chroot-host, this chroot needs to be installable. > > For archs that cannot be cross-compiled due to internal dependency > issues (like mipsel), we must not install any cross tooling into the > host chroot (as this cannot be installed). To not specialize for > specific architectures, we optimize this by only installing the cross > tooling into the sbuild-chroot-host if ISAR_CROSS_COMPILE is enabled. > By that, the install time of the chroot is also reduced, as less > not-needed dependencies are installed. > > This fixes the following error: > The following packages have unmet dependencies: > libc6-dev : Depends: linux-libc-dev but it is not installable > E: Unable to correct problems, you have held broken packages. > > Signed-off-by: Felix Moessbauer > --- > .../sbuild-chroot/sbuild-chroot-host.bb | 2 +- > .../sbuild-chroot/sbuild-chroot-target.bb | 1 + > .../sbuild-chroot/sbuild-chroot.inc | 18 +++++++++++------- > 3 files changed, 13 insertions(+), 8 deletions(-) > > diff --git a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb > index 3e66a7f4..52a461fe 100644 > --- a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb > +++ b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb > @@ -15,6 +15,6 @@ ROOTFS_BASE_DISTRO = "${HOST_BASE_DISTRO}" > > SBUILD_CHROOT_PREINSTALL ?= " \ > ${SBUILD_CHROOT_PREINSTALL_COMMON} \ > - crossbuild-essential-${DISTRO_ARCH} \ > + ${@ 'libc6-dev:${DISTRO_ARCH} crossbuild-essential-${DISTRO_ARCH}' if bb.utils.to_boolean(d.getVar('ISAR_CROSS_COMPILE')) else ''} \ > apt-utils \ > " > diff --git a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb > index 763453e6..05d24b97 100644 > --- a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb > +++ b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb > @@ -11,5 +11,6 @@ require sbuild-chroot.inc > > SBUILD_CHROOT_PREINSTALL ?= " \ > ${SBUILD_CHROOT_PREINSTALL_COMMON} \ > + libc6-dev:${DISTRO_ARCH} \ > ${@' apt-utils' if bb.utils.to_boolean(d.getVar('ISAR_ENABLE_COMPAT_ARCH')) else ''} \ > " > diff --git a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc > index 054d7fc2..80c43d20 100644 > --- a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc > +++ b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc > @@ -20,8 +20,11 @@ SBUILD_CHROOT_PREINSTALL_EXTRA ??= "" > python() { > distro_gcc = d.getVar('DISTRO_GCC') > distro_arch = d.getVar('DISTRO_ARCH') > + rootfs_arch = d.getVar('ROOTFS_ARCH') > + cross = bb.utils.to_boolean(d.getVar('ISAR_CROSS_COMPILE')) > + install_distro_arch_tooling = cross or rootfs_arch == distro_arch > > - if d.getVar('DISTRO_GCC'): > + if distro_gcc and install_distro_arch_tooling: > d.appendVar('SBUILD_CHROOT_PREINSTALL_COMMON', > f" libgcc-{distro_gcc}-dev:{distro_arch}") > d.appendVar('SBUILD_CHROOT_PREINSTALL_COMMON', > @@ -29,11 +32,13 @@ python() { > > if bb.utils.to_boolean(d.getVar('ISAR_ENABLE_COMPAT_ARCH')): > compat_arch = d.getVar('COMPAT_DISTRO_ARCH') > - d.appendVar('SBUILD_CHROOT_COMPAT_PREINSTALL', > - f" libc6-dev:{compat_arch}") > - d.appendVar('SBUILD_CHROOT_COMPAT_PREINSTALL', > - f" crossbuild-essential-{compat_arch}") > - if d.getVar('DISTRO_GCC'): > + if install_distro_arch_tooling: > + d.appendVar('SBUILD_CHROOT_COMPAT_PREINSTALL', > + f" libc6-dev:{compat_arch}") > + d.appendVar('SBUILD_CHROOT_COMPAT_PREINSTALL', > + f" crossbuild-essential-{compat_arch}") > + > + if distro_gcc and install_distro_arch_tooling: > d.appendVar('SBUILD_CHROOT_COMPAT_PREINSTALL', > f" libgcc-{distro_gcc}-dev:{compat_arch}") > d.appendVar('SBUILD_CHROOT_COMPAT_PREINSTALL', > @@ -43,7 +48,6 @@ python() { > SBUILD_CHROOT_PREINSTALL_COMMON = " \ > ${SBUILD_CHROOT_COMPAT_PREINSTALL} \ > ${SBUILD_CHROOT_PREINSTALL_EXTRA} \ > - libc6-dev:${DISTRO_ARCH} \ > fakeroot \ > build-essential \ > debhelper \ -- 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 email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/6ef4133a-9562-4609-8d09-00a0ae4835bd%40ilbers.de.