From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KMAiMVTgbGDcpwAAgWs5BA (envelope-from ) for ; Wed, 07 Apr 2021 00:27:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id c0/OKlTgbGDnAQAA1q6Kng (envelope-from ) for ; Tue, 06 Apr 2021 22:27:32 +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 01F2C8942 for ; Wed, 7 Apr 2021 00:27:32 +0200 (CEST) Received: from localhost ([::1]:49948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTuAV-0004sL-4y for larch@yhetil.org; Tue, 06 Apr 2021 18:27:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTuAG-0004s7-H6 for guix-devel@gnu.org; Tue, 06 Apr 2021 18:27:16 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:36714) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTuAE-0006GU-6a for guix-devel@gnu.org; Tue, 06 Apr 2021 18:27:16 -0400 Received: by mail-pl1-x62f.google.com with SMTP id ay2so8327049plb.3 for ; Tue, 06 Apr 2021 15:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YxUu6QT9ddDvlyzXE94mcyxMnfQK4p8cQVPk4gxRwfg=; b=XdLo/zCw4v0DnkbmboCpM2/jNIayrs1EZNRMLqhwL7CuJaTm6TOYBau4FJEKH3itqC VJJsEk+QTEScKEpqpNla7oVEGXoCz7fEqMwAXucnwW0CT5DvlUoQEAkt/rtrCokaIfFR HDX5kOihUhV36ex0gHoSvLpjntBKKfIso1D5HZPoYUb9Fw7ccuWuZF1aC5TBEyF7aHmb dwX9PMWqs5KwsxTTLiZghafGBhXEe855vCl+KVgYYJsspm8RqV8ocNxyJTuGWHVZe8gG 8xpeTGBVrNT/UIvz0JAFDum9IWZehNQ8cFt8vOYYqloyfDEutycZAmFIdrgItHKCUQZw 37rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YxUu6QT9ddDvlyzXE94mcyxMnfQK4p8cQVPk4gxRwfg=; b=OqbNBP/kY1Y7/gq4ygxuL+DBEta1cT6MWvVKaVLtGFmnIn0vUVtj8FivegfJUDsuUg GrpKa3diQA6tfJqYCwwDq/pk7cd5Ec6Nlz14rFNSqdD2qY9t2/3g2y02EIAoYoW0EDE/ v51m6H4us/axGLV+9hQT7STPMTlor0pyFxRLnIrzR3UsgNNJt4xUuKxKBC5c6FKj8RQZ KdBLaMhNoq8FN4SE3GFMQ7tXUFuu0gArbsCI4kqXkhwmCeGAl5FIFf8zTK3/0qiDQ8lb Jb0JO0Sfdv5pK292KKoxg6MC5ndazgWUTdfu9wttaprXYWDffqRWLa+zWdV6QDMWYAHO XiLA== X-Gm-Message-State: AOAM532cr8x5zm7hqtKKa+QqDhUx+QDQVGUtxQ19pZUBwpkoQ5OjHQzk y7S0WVoSsUyq3ARC4rlNtY0zCPJg7hCWcZM8fFY= X-Google-Smtp-Source: ABdhPJwOoifOXS9qYBoh69bn3+RUgv5v0Dt3PLpKImq+0XsTX95Idyj9FoOrnd2MmxpGu7YNHAm3xtRwycQHiLz74uA= X-Received: by 2002:a17:902:b684:b029:e6:8efd:fb00 with SMTP id c4-20020a170902b684b02900e68efdfb00mr402569pls.16.1617748032332; Tue, 06 Apr 2021 15:27:12 -0700 (PDT) MIME-Version: 1.0 References: <9f9bc5d3686731bf30c72c821f0b5a54c66843aa.1617711307.git.efraim@flashner.co.il> In-Reply-To: From: Vincent Legoll Date: Wed, 7 Apr 2021 00:27:01 +0200 Message-ID: Subject: Re: [PATCH 7/9] build: qemu-command: Add support for powerpc. To: Efraim Flashner Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=vincent.legoll@gmail.com; helo=mail-pl1-x62f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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=1617748052; 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:dkim-signature; bh=YxUu6QT9ddDvlyzXE94mcyxMnfQK4p8cQVPk4gxRwfg=; b=pQpCiO+IRpvZ47DdZA5IpMBVdHoG51LrG5PC1ZY+pywG6T1LYWsxtWBnxpt3xJYt0zKezt uxGYCsr36jfBlFGhwVlmWB34q5FhSeDAGsQw6XVxSDJRjlMYBLEUG2Fw/QTzaTPEDIJrZt 1Ca3zvPONVT9wnnOu1iVkS6A3XfKsXdibZ6I0mQ+Vb7AQXth3kN1p8BrIYCZXui5ujglyu f9sCcDfEVYTfjRl9ZZN58/azuWpNM5LOb5fbPKQ6iyB6oMDnBXPmrPEWt9euVL876xHmeS XCDmoiigop983rxD0l70Y5W13DL3UUoX8creFVHDJ+cmdUbtF9MiAnmpcz1yOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617748052; a=rsa-sha256; cv=none; b=tEbI9kqzRouZNDVVipDK09/cvGQC9yprY6fpGiY9ElOQ1fdSCqG/LKhbm4KjOLF+DLkHKc 6eSvwARQIeIXTebtnZgAwgUPjExFb0kdqHPNaOk9Me3oIcc0d9OSM0gzkjC1a/uD9ukq2c Go17NQa4hi/owpfEwrqMHciUcJnr84nODlx0mjXB3gLeMXrXB8Fl/rOPMGTgN+PXDsu3vu rh2qT4kuTo/vBDtdDRL0sOb6QL91St2p+MoXFmSTFQFsQmRaYn8gCmCyKsVjcCL8irJW9V cxs6z3GgQiP7BcBgyD6MDspl7uGX7VX4o01M+YQlMisgjQU736TNnQQLTXN/+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="XdLo/zCw"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="XdLo/zCw"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 01F2C8942 X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2RdksFgSqPpA On Tue, Apr 6, 2021 at 9:18 PM Efraim Flashner wrote: > > On Tue, Apr 06, 2021 at 07:02:47PM +0200, Vincent Legoll wrote: > > Hello, > > > > On Tue, Apr 6, 2021 at 2:44 PM Efraim Flashner wrote: > > > + ((string-match "powerpc" cpu) "ppc") > > > > Won't there be some "powerpc64le" conflict here ? > > > > 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 = #("powerpc" (0 . 7)) > (ins)scheme@(guile-user)> (string-match "powerpc" "powerpc64le") > $2 = #("powerpc64le" (0 . 7)) > (ins)scheme@(guile-user)> (string-match "powerpc" "armhf") > $3 = #f > > If it were string=? 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. or you can use anchored regex, like in the x86 case: ((string-match "^powerpc$" cpu) "ppc") -- Vincent Legoll