From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6868613252732944384 X-Received: by 2002:a2e:88d8:: with SMTP id a24mr13134047ljk.309.1599555240713; Tue, 08 Sep 2020 01:54:00 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:651c:93:: with SMTP id 19ls21883ljq.4.gmail; Tue, 08 Sep 2020 01:53:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzC8LG5fpafxW3g0eixvP1TqT5ggoJ4LSeZWdcC3YaYajKDHmX9FawlgOdZUVK1bNVMVJal X-Received: by 2002:a05:651c:1395:: with SMTP id k21mr3619966ljb.240.1599555239807; Tue, 08 Sep 2020 01:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599555239; cv=none; d=google.com; s=arc-20160816; b=gtxwsrxbpJfi6PVvTNbsBefR7sTQoyNXpjgXj+hItmr5gcUrNaA8UGuxSy9oqsO7IB PgTdwEbDLnDYN1sqSJCM3incWY30J8pCsZDsl3WW8SwVNSlx6jclSbOSKagY2zVe+uON KOE2ecD71miPCcp6n2VVYXRYlY7nT/NDdwbdUeX1RMPxquiWWwIyDQBHynHLoeO7vb9g 11zUMFdOIj60qbGdvtPRSn2hOC6V1DwoSXuABpu9IRgOtq4pnlF/QQ4hW4ZeP31Fi2/y 608aguByfyUUMw8+6vRCcUAjHbfnyaasP7V8hi3Z640foIYAUKUKHYw0J1Nld9SEgkxE j+XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:references:to:from:subject; bh=gv1kw+0nU15mc7NXp5oCfzMLUgguNAflu7phx/XnQgs=; b=uBiMubEOR/KctZEO4Xk5fTXWXnGDvrel52td5Zt5KuM0ZAcBuvOySLXqRIwXfOpVNn XhyerQdySd/10Yue7UJOFZzjV7A2osoJ5OynXIBFRobiKnDukTgRcS5LzzKuHRtrxw3i wyZDqm5KJN4U7WEAHFGlLseVe1lmCMvDuZ4mSpwZiK+/VD5KvmL2izS/nryJBdVinGFS kffaipYOTN1r6/E1/K1BMDKQuULkKf0kvTAOOEolGKJtoWttsBIgSIg0pgs6qQ5XIEYP lvNRMsVaLYRLnvhP6d0mlOU0hHOzkDYBBVKOZG8/zHYwY9dmX0J/lZ1P/WrR7tC3pTaQ L4AA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id f12si665183lfs.1.2020.09.08.01.53.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Sep 2020 01:53:59 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id 0888rwqr005371 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 8 Sep 2020 10:53:58 +0200 Received: from [167.87.35.249] ([167.87.35.249]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 0888rwTK012357 for ; Tue, 8 Sep 2020 10:53:58 +0200 Subject: Re: [PATCH 2/2] ci: Add compat arch support From: Jan Kiszka To: isar-users References: <64fa79e829f2b29553b2baedabc766f7ec3ef230.1599223641.git.jan.kiszka@siemens.com> Message-ID: Date: Tue, 8 Sep 2020 10:53:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <64fa79e829f2b29553b2baedabc766f7ec3ef230.1599223641.git.jan.kiszka@siemens.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: CVIcRdvA0lif On 04.09.20 14:47, [ext] Jan Kiszka wrote: > From: Jan Kiszka > > Build hello-isar and libisar for the compat arch if that is enabled. > Set ISAR_ENABLE_COMPAT_ARCH for all supported combinations in CI. > > Signed-off-by: Jan Kiszka > --- > meta-isar/recipes-app/hello-isar/hello-isar.bb | 3 +++ > meta-isar/recipes-app/libhello/libhello.bb | 3 +++ > scripts/ci_build.sh | 6 ++++++ > 3 files changed, 12 insertions(+) > > diff --git a/meta-isar/recipes-app/hello-isar/hello-isar.bb b/meta-isar/recipes-app/hello-isar/hello-isar.bb > index 144a433e..8c3ba8b2 100644 > --- a/meta-isar/recipes-app/hello-isar/hello-isar.bb > +++ b/meta-isar/recipes-app/hello-isar/hello-isar.bb > @@ -20,4 +20,7 @@ SRC_URI = " \ > file://yet-another-change.txt;apply=yes;striplevel=0" > SRCREV = "a18c14cc11ce6b003f3469e89223cffb4016861d" > > +# NOTE: This is just to test 32-bit building on 64-bit archs. > +PACKAGE_ARCH_compat-arch = "${COMPAT_DISTRO_ARCH}" > + > inherit dpkg > diff --git a/meta-isar/recipes-app/libhello/libhello.bb b/meta-isar/recipes-app/libhello/libhello.bb > index ab271b58..5c44de50 100644 > --- a/meta-isar/recipes-app/libhello/libhello.bb > +++ b/meta-isar/recipes-app/libhello/libhello.bb > @@ -13,4 +13,7 @@ PV = "0.1-98f2e41" > SRC_URI = "git://github.com/ilbers/libhello.git;protocol=https;destsuffix=${P}" > SRCREV = "98f2e41e7d05ab8d19b0c5d160b104b725c8fd93" > > +# NOTE: This is just to test 32-bit building on 64-bit archs. > +PACKAGE_ARCH_compat-arch = "${COMPAT_DISTRO_ARCH}" > + > inherit dpkg > diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh > index d2c707b8..461fd5cc 100755 > --- a/scripts/ci_build.sh > +++ b/scripts/ci_build.sh > @@ -139,6 +139,12 @@ if [ ! -d "$BUILD_DIR" ]; then > fi > source isar-init-build-env "$BUILD_DIR" > > +cat >>conf/local.conf < +ISAR_ENABLE_COMPAT_ARCH_amd64 = "1" > +ISAR_ENABLE_COMPAT_ARCH_arm64 = "1" > +ISAR_ENABLE_COMPAT_ARCH_debian-stretch_amd64 = "0" > +EOF > + > if [ -n "$CROSS_BUILD" ]; then > sed -i -e 's/ISAR_CROSS_COMPILE ?= "0"/ISAR_CROSS_COMPILE ?= "1"/g' conf/local.conf > fi > This triggers a problem: In a multiconfig setup like our CI, building the 32-bit package from both the native 32-bit arch as well as the 64-bit arch now races. If the 64-bit arch tries to install its self-built compat package, that may just be under re-deployment by the 32-bit arch, and the build fails. Options: - somehow express that both archs provide the same package (though that may defeat the purpose of testing the compat build) - split isar-apt per arch, not just per distro Suggestions? Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux