Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mXpva-0007L2-EI for mharc-qemu-trivial@gnu.org; Tue, 05 Oct 2021 15:16:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXpvZ-0007IK-2E for qemu-trivial@nongnu.org; Tue, 05 Oct 2021 15:16:37 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:29206) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXpvV-0005PQ-Tj for qemu-trivial@nongnu.org; Tue, 05 Oct 2021 15:16:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633461392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XSX000wYKTrORxaxvWHBWfzhvR60Rd21ZXYdn21m63A=; b=Cg9UV2C3KuC5jTB5Q1557tuhJ/uBwtQbNYnBck/RvARVP02sbRjDEhAaWFUeoJG88SCR4q A2NzCxIVYmn1kMVvjB3LaUqduLtv06jR3sICmNrVb7Ih5Ajy54L2Vu9T9ahHIk1ebeU9n9 GmEVRHanpVlj+LgQE2p8tR111zz8NQ0= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-100-pLAVkg-3O0m1P_WN4xNmhg-1; Tue, 05 Oct 2021 15:16:21 -0400 X-MC-Unique: pLAVkg-3O0m1P_WN4xNmhg-1 Received: by mail-ed1-f71.google.com with SMTP id x5-20020a50f185000000b003db0f796903so170517edl.18 for ; Tue, 05 Oct 2021 12:16:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=THl8aVPS6F1uabbI6Sv1L2nIDyNjKGvJ0IwK6/NADE0=; b=tsrmtU2OzU2sT+/hwOJ+D5SzLnwIsyEq05YblyuhdDG814zfa2Rumfq2aaVU/33Ydv i8gFd6WcBvqbS54HxRrDqzshZ0GkzjzdpVEj8sywFS/CdNunBMv3p5pCmK6TrLG9LB01 ME04AyhxOB4SZihB4Q/g5vsC+t49cNZjUBIpmkldGRhZzvgoBj0lFAtm1KtAwAO9F155 m4dFrfgW8J3DNHIPqwYp8uNAlWHfmmLxX4YSKFwkDbyTHiNUxriHRPifHnARIuCtgjWv 5ov0J85r8fo3Aqf2I6vtBcc9j6LEbj5CqZvqccvy/KEPqDveWHjX7gxwntsdVXqYQTER E40A== X-Gm-Message-State: AOAM531H1Ja2NJIfau8/lb8TEx0KKevKzNBLq2Jc67elLR9v6czvQ182 X9+e6T9GQB5qBrm0HkjKtmSbK9FPpP2uE/frEglYCtXgUAISAheFObP3gqV1A82psxPvODtwD/z 11wxV/ljWdkXSU5pkdQ== X-Received: by 2002:a50:e006:: with SMTP id e6mr27655737edl.302.1633461380800; Tue, 05 Oct 2021 12:16:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznJNZ9FNHvj/wl0tQMYHz9WOykI1XhpZrbuwQa1FUQHWRQ/sOr0IWO9TTAFmm2WEvmvKQl+A== X-Received: by 2002:a50:e006:: with SMTP id e6mr27655711edl.302.1633461380538; Tue, 05 Oct 2021 12:16:20 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id n1sm1501250edr.64.2021.10.05.12.16.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Oct 2021 12:16:19 -0700 (PDT) Message-ID: Date: Tue, 5 Oct 2021 21:16:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH 1/2] bsd-user: Only process meson rules on BSD host To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Richard Henderson , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Kyle Evans , Laurent Vivier , Warner Losh References: <20210926220103.1721355-1-f4bug@amsat.org> <20210926220103.1721355-2-f4bug@amsat.org> <4dcb518e-dd69-ed75-1d57-7fcf76c5cb69@amsat.org> From: Paolo Bonzini In-Reply-To: <4dcb518e-dd69-ed75-1d57-7fcf76c5cb69@amsat.org> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pbonzini@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.066, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2021 19:16:37 -0000 On 27/09/21 07:24, Philippe Mathieu-Daudé wrote: >> Why here and not in the parent meson.build? > This is what Paolo recommended me to do last time I added a > conditional inclusion. > > Personally I prefer having it in the call site rather than > the callee (no need to read the callee to notice it isn't > called). I guess this is for readability, to not clutter > meson.build? files more... Yes, pretty much. In this case it's quite obvious that bsd-user is BSD-only, but I prefer it if dir/meson.build has the knowledge of what goes on in dir/. That said, we're not terribly consistent, see have_block and have_tools, so either will be okay. Paolo > Paolo, what is your preference? >