From patchwork Mon Mar 6 07:12:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 2726 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 06 Mar 2023 08:12:36 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f62.google.com (mail-ed1-f62.google.com [209.85.208.62]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 3267CZWw014575 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 6 Mar 2023 08:12:36 +0100 Received: by mail-ed1-f62.google.com with SMTP id r9-20020a05640251c900b004d4257341c2sf6642105edd.19; Sun, 05 Mar 2023 23:12:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1678086750; cv=pass; d=google.com; s=arc-20160816; b=Ln7nUQoIb4DtHTd7KGQGZheHWAlZ4CUCfVik3fDtHCsn7xHzTQg83QCXK2aMa7GXKH EcTDIsAg8dUBhKsRtvYpvP+TeQ2Hht5Vzy3L/YVzYr8RCboEeB2rwxMFqDHTJYi1cAsF WKsoprSLW2KFYSmbwBqqve4WUFZDXss1VU3ekTaBRYueW1d1tpgvpvzdG/4oPxOxHehH ixBPaok+kslHm1fcK+joq3P4YsqYwNxMsIX1D+aofmzQJLAe5GROXhLHshs9pv89bKDj vbM2/an4/RrgitF3eUihHZtrWw9zp6kL5ijcY3VdNZbKEyBEc2282hCNloKPmSR3wyhD o1cw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:feedback-id:mime-version:message-id :date:subject:cc:to:from:sender:dkim-signature; bh=9B+nbVg82LDwH3aYs+dbcSZsPbjo8qLsdZPs4kdSIjg=; b=e+vvw939q4BvIk+FrNF+MmtNiXXr7UM5kWooWs2WchKDol+g9lZYdCHIPmaWjWuJln rnpKY/xJ//bl9drfIQotGsB3/4A/vgjV14tMqj2XLVibJFtiavgnFPOu4s3xnrdRWiMT oEdMwDBaioA3/hq6IrIHk3TCRzX9BS0H7aTMLDLyq6PdDHeeFvyKX9dofUXy8nf7f5JC 7iDJiww2+73KRhL7PWirRLhgRzqTM4qkFpBHfYB1bW0+SWk7DCWwPYqC5Ow/xrxjaqFj Gv+ye4ouV/Dj7gbD9/k4JwQl+w4i1oxZnxS4UokIYtU1gqqaPqW06s1tt8ErqwUcD8G6 g3Lw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=IWzltFd8; spf=pass (google.com: domain of fm-526363-202303060712280ef65f95c0bf518b46-pbiwdf@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-526363-202303060712280ef65f95c0bf518b46-pbIwdf@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1678086750; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:feedback-id:mime-version:message-id:date:subject :cc:to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=9B+nbVg82LDwH3aYs+dbcSZsPbjo8qLsdZPs4kdSIjg=; b=FL0N5wKBuOFfYvq6o97Hq2qGBtjnWfBHiqeIah6rd1yvK0zkI2d2rMYNX7Xcwhr8Tv gJeRYq6v8sZSgV3oWtsYw9vK9MSPAueIlSclSMycQmfUDsw8LGD6uyGFs/m9bdGRwmzJ 7LHb5MREFlGTNB2guFgicYB5FRWfq81qi+mIxJhy4gBq4YaFm1j3HZvTHJcxMR8caoBM y8P1qhdTxVTI7zLkclzV+MGkTHz18eX9zWBLJMsEwFvBAJQkNBy4I/PR5k9vAJ60ow5n wKEVbzJNfJ2timhdLndNJYPi7TrymET5U621OWbeWgyMWFOUAw9oPoC2xEuS0smE/8T8 yWTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678086750; 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:feedback-id :mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=9B+nbVg82LDwH3aYs+dbcSZsPbjo8qLsdZPs4kdSIjg=; b=shOLxu+T1mFCL69pveHHlrJvuyb8+nWMGf6VhhnrhYedCtis1Wsq/QaxJpenr5j90N i9YXn8Vl9n/b8ge4/vU8VvtMQiXaz3SQ642dSfXWfe4/hddUs86KpYkx6diM72C92Ygz 2ANN2/EFMArH+6BhN5JGhBJ6PRhvuJK3wI3MtBqrbZXr2ImiyxTuhuxz9w42qQLXIKn4 m50fwWZ+YNrnUmAw+VX2p8cgI17lQkX2hB8JUU9bOBdTFQy2oekw+iVN6JI8+aTgxhd4 kLZFbuCFGXg8y8COK5keCHX+L6y4cie1i8WpTwWtU3wtOjGPDQ08UDoUMvdbKF3Ui+EU 6ojg== Sender: isar-users@googlegroups.com X-Gm-Message-State: AO0yUKXKNz7hz5l1Z6yW0jHfuubKxMUHTwoHxuqN+Z4v5vGwYNJP+rXL Ai86fCGSpSdPbXLeJjnPj2A= X-Google-Smtp-Source: AK7set9et6MgxCnpIEM0slcPhdVkac98LMBvHglpT1bnNy6AOh6VI1aePYlNehYnvDsdyvBPAdyq+Q== X-Received: by 2002:a50:c355:0:b0:4ae:e606:432f with SMTP id q21-20020a50c355000000b004aee606432fmr5192326edb.0.1678086750321; Sun, 05 Mar 2023 23:12:30 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:b043:b0:8b1:2846:28e9 with SMTP id bj3-20020a170906b04300b008b1284628e9ls5489354ejb.6.-pod-prod-gmail; Sun, 05 Mar 2023 23:12:29 -0800 (PST) X-Received: by 2002:a17:906:d42:b0:900:a150:cea5 with SMTP id r2-20020a1709060d4200b00900a150cea5mr9058488ejh.54.1678086748903; Sun, 05 Mar 2023 23:12:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678086748; cv=none; d=google.com; s=arc-20160816; b=jgpFmVxhG61IIbj/tsNUN5/xyF5DHLZn0+Ye7ombW8TnfntrqODxoFqZ8iPXgHkzDS LbifhsyOjwUoR/sVLF6WI2/J22xIzoq7TBlvfywpyh0/zX6rg7yQEyMb6jk3S9VVQgPC 03c4ip0wg8yXPFR8OEXAhhdobZnSzAFZ8Q7MGXgngI7kLWWlB9f9soTgAGGjdy3HI8jB CoXMdYjSXWeXCl2NArl4sKgpwXCedbZLEhji3cOHHkoUiYPVkUfSSyJssQDseEQR5o7L MyB2q4tG6UPNlCM7Sjksjd3JTRWWvR/FI/FZQ+U/Px4bPDjn+/Nsz6yoR01apBcVcAzy y/iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:message-id:date :subject:cc:to:from:dkim-signature; bh=px3lrvlSoMYK11ByDDuTB/5by0PhUXJ6Hm3Ri2v0f8o=; b=oCzV3Yi5wCmqYt8PihTfr7YKhLkxCeXNQA7ypqqBY1d+CVUnvM+Yp3ldx2zh7Hf2zG ogPYpWEg3AFGzKxUtZ4DPUccDfdbR7RkE6H7+Qr8RXSLgirCji1uw0AZC1K0d5H0RzUW n+2LIOfC+Vm6VTWzup1FyZaO4qGCxpcdl6kLtmFKHKpTk1Al0b1nJBkW8TYTkB9YO1vU c2uIM4i90fbuNE6oQ9LTfryJn15pOtyeUhktPlrNPZmxtOqhBask41NaS5GEya2WlZD8 ++O8lkgw7qAHgud2xO7qYJHGf+JThwVGMZ5uUon85dN6C1mWjYtF1XLRtDr7kFRVTCh5 7+nA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=IWzltFd8; spf=pass (google.com: domain of fm-526363-202303060712280ef65f95c0bf518b46-pbiwdf@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-526363-202303060712280ef65f95c0bf518b46-pbIwdf@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mta-64-225.siemens.flowmailer.net (mta-64-225.siemens.flowmailer.net. [185.136.64.225]) by gmr-mx.google.com with ESMTPS id h7-20020a056402280700b004c1c06c20fdsi461885ede.3.2023.03.05.23.12.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Mar 2023 23:12:28 -0800 (PST) Received-SPF: pass (google.com: domain of fm-526363-202303060712280ef65f95c0bf518b46-pbiwdf@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) client-ip=185.136.64.225; Received: by mta-64-225.siemens.flowmailer.net with ESMTPSA id 202303060712280ef65f95c0bf518b46 for ; Mon, 06 Mar 2023 08:12:28 +0100 From: Adriaan Schmidt To: isar-users@googlegroups.com Cc: Adriaan Schmidt Subject: [PATCH] fix: improve check for availability of compat arch Date: Mon, 6 Mar 2023 08:12:26 +0100 Message-Id: <20230306071226.3165673-1-adriaan.schmidt@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-526363:519-21489:flowmailer X-Original-Sender: adriaan.schmidt@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=IWzltFd8; spf=pass (google.com: domain of fm-526363-202303060712280ef65f95c0bf518b46-pbiwdf@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-526363-202303060712280ef65f95c0bf518b46-pbIwdf@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com 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-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= follow-up to 3aa4d3832ccb2271e850a8245cb45ad40e3da366 The check, whether compat can be built needs to also ensure that we actually have a compat arch for our DISTRO_ARCH. There is a helper function in the compat class for this now. Signed-off-by: Adriaan Schmidt --- Sorry, I was slow to send an updated patch, rebasing the essential packages feature onto v4 of the multiarch series. Adriaan --- meta/classes/essential.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/classes/essential.bbclass b/meta/classes/essential.bbclass index be98a76d..2ae31b38 100644 --- a/meta/classes/essential.bbclass +++ b/meta/classes/essential.bbclass @@ -3,9 +3,11 @@ ISAR_REBUILD_ESSENTIAL_PKGS ?= "" +inherit compat + python() { isar_rebuild_essential_pkgs = (d.getVar('ISAR_REBUILD_ESSENTIAL_PKGS') or '').split() - build_compat = d.getVar('ISAR_ENABLE_COMPAT_ARCH') == "1" + build_compat = isar_can_build_compat(d) build_native = not d.getVar('DISTRO_ARCH') == d.getVar('HOST_ARCH') # construct list of essential packages that should be rebuilt: