From nobody Wed Jan 15 08:22:36 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1683047770; cv=none; d=zohomail.com; s=zohoarc; b=HC8Vw83+eKTUXIoTp3HQ9+siNTAT6NhIcP54WDI2jPFdvMDDX1sq0Y+IkGcQgMtGh8OSip2zcAgc4kPHlYy3tRk89RMxyVCQhdHhMkTNN83444N38Ni3FM9rMOpxfeXJagMdhnlKXCmxjwJE6+9LTKItnqatgZht2GQtHB8szDo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1683047770; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=mtjBfPYoPIwJzSzlpUhGT8bWol75gLkzE2V+7BQ2jbo=; b=MImELO7HMi0s6ACemnY+2pkhBVyJ5MYyMLzJuxkg+Gy9zS3ZhnS5d0hnBIZlLwVDM1QnAg3MycDW8Vi0ruCs3olSzsd4YEhObdPV9ZEel5tYRj1zS4EvGRsSAXo3FcIYLidKLvtwLIM0B1ieN9sedTFgL/PB8UruvNn1tuLNHJU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1683047770327601.2273712249594; Tue, 2 May 2023 10:16:10 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-515-m16n1vT9MBazpMP_d4uPKQ-1; Tue, 02 May 2023 13:16:03 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7880D884EC1; Tue, 2 May 2023 17:15:58 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 631431120ABB; Tue, 2 May 2023 17:15:58 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 4718D1946595; Tue, 2 May 2023 17:15:58 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 8B1EA19465B7 for ; Tue, 2 May 2023 17:15:57 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 804C92029F9A; Tue, 2 May 2023 17:15:57 +0000 (UTC) Received: from harajuku.usersys.redhat.com (unknown [10.45.224.51]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 10F442024CDC for ; Tue, 2 May 2023 17:15:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683047769; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=mtjBfPYoPIwJzSzlpUhGT8bWol75gLkzE2V+7BQ2jbo=; b=SSXbqc20WqSPhH9gtPIZE8itBP0mRGYmoGIxlxJSGlJg4rORrfIwUmNxVV8xOxkNEL9GQx tAZ3RBvh05awPOJWZU57+a3vNcGx1Cl8PJdZQVQEfSTW6VYfW0Wevey5W4WgDiY7a1zzBC 16qTV795DcWJPmjZLI9ffx/dNj+RZPE= X-MC-Unique: m16n1vT9MBazpMP_d4uPKQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 4/5] meson: Move definition of os_release Date: Tue, 2 May 2023 19:15:51 +0200 Message-Id: <20230502171552.25767-5-abologna@redhat.com> In-Reply-To: <20230502171552.25767-1-abologna@redhat.com> References: <20230502171552.25767-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1683047771434100003 Content-Type: text/plain; charset="utf-8"; x-default="true" We're about to introduce another user of the value in a different scope. Signed-off-by: Andrea Bolognani Reviewed-by: Martin Kletzander --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 8da987b1cb..8848e58995 100644 --- a/meson.build +++ b/meson.build @@ -24,6 +24,11 @@ if git and not get_option('no_git') endif =20 =20 +# detect operating system + +os_release =3D run_command('grep', '-E', '^ID(_LIKE)*=3D', '/etc/os-releas= e', check: false).stdout() + + # prepare build configuration data =20 conf =3D configuration_data() @@ -1618,7 +1623,6 @@ if not get_option('driver_qemu').disabled() qemu_user =3D 'root' qemu_group =3D 'wheel' else - os_release =3D run_command('grep', '-E', '^ID(_LIKE)*=3D', '/etc/o= s-release', check: false).stdout() if os_release.contains('arch') qemu_user =3D 'nobody' qemu_group =3D 'nobody' --=20 2.40.1