From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +A24Mhm0bGBVQAAAgWs5BA (envelope-from ) for ; Tue, 06 Apr 2021 21:18:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id MKR8LBm0bGDkLAAAbx9fmQ (envelope-from ) for ; Tue, 06 Apr 2021 19:18:49 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 46FA12DF05 for ; Tue, 6 Apr 2021 21:18:48 +0200 (CEST) Received: from localhost ([::1]:32900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTrDr-0006B6-ST for larch@yhetil.org; Tue, 06 Apr 2021 15:18:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTrDJ-00068z-SJ for guix-devel@gnu.org; Tue, 06 Apr 2021 15:18:14 -0400 Received: from flashner.co.il ([178.62.234.194]:43598) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTrDI-0001cj-6x for guix-devel@gnu.org; Tue, 06 Apr 2021 15:18:13 -0400 Received: from localhost (unknown [31.210.177.71]) by flashner.co.il (Postfix) with ESMTPSA id 8DA5940279; Tue, 6 Apr 2021 19:18:10 +0000 (UTC) Date: Tue, 6 Apr 2021 22:17:28 +0300 From: Efraim Flashner To: Vincent Legoll Subject: Re: [PATCH 7/9] build: qemu-command: Add support for powerpc. Message-ID: References: <9f9bc5d3686731bf30c72c821f0b5a54c66843aa.1617711307.git.efraim@flashner.co.il> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1vAVykUMq/nXt3p/" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel , 47615@debbugs.gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617736729; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=Z/DzbarOyuiUlzsnopRpCqLeNYYW0/7xThhT4LSIAa0=; b=iraxetbmYixh++KrTVeWrB2P9OgBxpFo2ipQDH1VIUmtmlJ5BQI1VmXqXzhhgFkQpSHBdF fA62qDvtDdRnVJ+Pejx7jp2u1KUPlzRIhfaY/7ymmIj4Svj6GJLhWSbiYNLf5soqERsKZi ZabmnlwN3RGRtTByoUZb2GM0h2NyIG7V2S7XaFcCVBDRO4r6lantSM7QSB6vZx7p4nu7Vn sfGjAojkHlLbPUQt6RMxhzMdZ7lDPxZ2WWN1RilBqp62IIHEGyFcspqwJ2gCWd8pzj8I1H NywiSINqdG6HwmNzcuQZfmAEGEHTarRqM43kVaEgJoUuBHtQoIBfCbL5Ne8sQg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617736729; a=rsa-sha256; cv=none; b=fU+GIoPwa6JAPyOJLbFCMY+oQw+2KSWmoOmTBYjyxVcc2cRNf4WBzti4qts3Pbp4YX7wRZ g2gyTMomuZI9qGM5NLSaWCPU4j33U5Yf01jGN7qSbv1AI0HV7XPaSHV8kK3JrMfOe3lW3G 4lTs9qKUkI65dtSXfVmgAtKMC7WN1hIyy13XmOqNmFmxkiwkMRpRCcfJ5ycXlfdvpUwKod AfNGh0/n3ZkoWOS1sbtx25CwZ4mWg4s80H3ZVMEG/BEgp2RRtkb2iDbqwTS62Q6bB0j4sJ eGxwwT+p47Rzf+kgUEBaufWm1fTr34JGbYDRXYxoOtTRIo+e2fer5Bd/bSmq1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.54 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 46FA12DF05 X-Spam-Score: -2.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: hROIm1vbED/J --1vAVykUMq/nXt3p/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 06, 2021 at 07:02:47PM +0200, Vincent Legoll wrote: > Hello, >=20 > On Tue, Apr 6, 2021 at 2:44 PM Efraim Flashner wr= ote: > > + ((string-match "powerpc" cpu) "ppc") >=20 > Won't there be some "powerpc64le" conflict here ? >=20 I thought not, but it appears it would match all of powerpc* (ins)scheme@(guile-user)> (use-modules (ice-9 regex)) (ins)scheme@(guile-user)> (string-match "powerpc" "powerpc") $1 =3D #("powerpc" (0 . 7)) (ins)scheme@(guile-user)> (string-match "powerpc" "powerpc64le") $2 =3D #("powerpc64le" (0 . 7)) (ins)scheme@(guile-user)> (string-match "powerpc" "armhf") $3 =3D #f If it were string=3D? then it would be fine, but that would break the ^i[3456]86$ regex. It looks like I would need to add a powerpc64 case above the powerpc case. Looking at the output of qemu adding ((string-match "powerpc64" cpu) "ppc64") would be the right answer. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --1vAVykUMq/nXt3p/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmBss8UACgkQQarn3Mo9 g1F6OA/+PHxDSLSUaxQUonH3nlZBhXaRJ97HT9ho/BSCL23wPj50EzKsTLzg1SV3 NYLa0vFoXCEQqxMnGz3fdT2yyJMG976zhJRPLni3wCy1RzWxmX+KJLZLKeBQDyin qwSu/Ld9huqckLm8dHR/bHEPwRF0pUQj2BBu0JvxDnrI/XXszBIRR8L0JskhLfpT YuJw+Yh1ANltzXLPFsNmo5ZXXKJM4ruQVtussRWpVxN4Bj9Z8W5GgoijeZMbHVOk brTHAiaTtLhjL/SxVl9uOhHGinDMvg5onAi2doQUD3E35jAl442hTeqGXDiQa0N6 PpVMG1wNEPvzmaBKEWohS/F4thdOuXIaADYsqP4E6xSlm6qMjvjun0wHI/RtSxMg xsvQy3nR1tpHxlygWV0VNr7IYNNqPSQGEnTsbu28H7/HKO4OpjgHgnpD9AumYnzh SRPBBoGEc/L+QaY03uKLCJMKJKGzga/HSndgHRkPWKlkTNQ7NjVZdDlPwK6DnWmq Vwy43aRNxr0oAMAPQN0pDXr5SgJJBluIiAU9tAnGIyZIfZdV35pTWXiEag12XteO lLH20ZMzsLOLyHP2EFmTACJ2Go20DhJQshqs8nUN91SARSXu2yoYvZ7T+uUJ1AOe yzMYsB1dRmNJ85HvAySAVg2RGE5V2zS/Rw7IogqHIfegc2x267Y= =wAhS -----END PGP SIGNATURE----- --1vAVykUMq/nXt3p/--