From nobody Sun Feb 8 21:06:14 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 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=1594894627; cv=none; d=zohomail.com; s=zohoarc; b=MsJG5T9uAjdM0Tqplm3udmzB0TFhTsnqBcICRAL/aAWzsUidzn9wTaMWrGFgQ+QkL+Ko6XTG8+vcQFHmpGV/9Nle0s1c6TGO80ZMOxtRLkO7r5lenhjhZWh+RdFkl6+JjOJA+YPtO/a2WxGM5apIXfAvWk4+42JuMDCnKVRZXwc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594894627; 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=+HMKz3ekpDJdGMNNLqJB3hKQBVqJi1F7Dliwr20xJho=; b=nUbsUuqO7P2JZ1ySt47QpKD9ZRE6SWFHdQNPXJ6aflhravVY0jNAgLy/vJb7ylfInuQdw5/3oItw2Hqj1cgqSEGfPJjNqd92A3Oj5KfKnAssp9qkrGbeMUjkfopZ5MabmJ+6WxjT5rxl3fsEkzDpHLZFTfo5nMYzUQF+Ni18nSc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1594894627075764.5589484575844; Thu, 16 Jul 2020 03:17:07 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-47-65UUdogWNbitJdw_cUgjng-1; Thu, 16 Jul 2020 06:15:07 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1CBA31888AA5; Thu, 16 Jul 2020 10:15:01 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EB8C56FEF7; Thu, 16 Jul 2020 10:15:00 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id BC62D9A125; Thu, 16 Jul 2020 10:15:00 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 06GA7iKA021191 for ; Thu, 16 Jul 2020 06:07:44 -0400 Received: by smtp.corp.redhat.com (Postfix) id 9C4D12DE6B; Thu, 16 Jul 2020 10:07:44 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 17B272DE9C for ; Thu, 16 Jul 2020 10:07:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594894625; 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=+HMKz3ekpDJdGMNNLqJB3hKQBVqJi1F7Dliwr20xJho=; b=E4RYsuneBd5x1tp5qHARAYyCTgQU2LRP/MNvTWgDwgzc0s+XUsXj3XyGFc2i7/Lfwl4rVF q0Qqijv3Tt0I6JV3ksf89EuVPOfBk1Gu7owH0trfN5xdwxoslDpizRw0if793dCYrA1/I2 ArmNxdEkrYUfrtgze+ArVS5MIvhhnCo= X-MC-Unique: 65UUdogWNbitJdw_cUgjng-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 340/351] meson: generate run helper Date: Thu, 16 Jul 2020 11:59:36 +0200 Message-Id: <00475d7d8ba0b2626a5949af414b302cf096a25e.1594891445.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina --- configure.ac | 2 -- meson.build | 11 +++++++++++ run.in | 2 +- scripts/meson-change-perms.sh | 6 ++++++ 4 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 scripts/meson-change-perms.sh diff --git a/configure.ac b/configure.ac index b70aa17cb23..64d4f56b509 100644 --- a/configure.ac +++ b/configure.ac @@ -103,8 +103,6 @@ m4_if(m4_version_compare([2.61a.100], [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [], [GNUmakefile=3D$GNUmakefile])]) =20 -AC_CONFIG_FILES([run], - [chmod +x,-w run]) AC_CONFIG_FILES([\ Makefile \ .color_coded \ diff --git a/meson.build b/meson.build index 9d0a0c1665b..2519b48b63f 100644 --- a/meson.build +++ b/meson.build @@ -2292,6 +2292,17 @@ endif configure_file(output: 'meson-config.h', configuration: conf) =20 =20 +# generate run helper +run_conf =3D configuration_data() +run_conf.set('abs_builddir', meson.build_root()) +configure_file( + input: 'run.in', + output: 'run', + configuration: run_conf, +) +run_command('scripts/meson-change-perms.sh', 'a+x', 'run') + + # print configuration summary =20 driver_summary =3D { diff --git a/run.in b/run.in index 1a0dee4d9ee..73bebbf805f 100644 --- a/run.in +++ b/run.in @@ -71,4 +71,4 @@ random_val=3D"$(awk 'BEGIN{srand(); print 1+int(255*rand(= ))}' < /dev/null)" export MALLOC_PERTURB_=3D$random_val =20 # Run the program. -exec $b/libtool --mode=3Dexecute "$@" +exec "$@" diff --git a/scripts/meson-change-perms.sh b/scripts/meson-change-perms.sh new file mode 100644 index 00000000000..b366d80077e --- /dev/null +++ b/scripts/meson-change-perms.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +perms=3D$1 +file=3D$2 + +chmod $perms $MESON_BUILD_ROOT/$file --=20 2.26.2