From nobody Sat Jul 5 16:30:33 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1521626576168421.5934281869655; Wed, 21 Mar 2018 03:02:56 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6759721BB3; Wed, 21 Mar 2018 10:02:54 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 407C55C89C; Wed, 21 Mar 2018 10:02:54 +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 018AF181BA00; Wed, 21 Mar 2018 10:02:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2LA2orM023260 for ; Wed, 21 Mar 2018 06:02:50 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1C727215CDB7; Wed, 21 Mar 2018 10:02:50 +0000 (UTC) Received: from antique-work.brq.redhat.com (unknown [10.43.2.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id B7B58215CDC7 for ; Wed, 21 Mar 2018 10:02:49 +0000 (UTC) From: Pavel Hrdina To: libvir-list@redhat.com Date: Wed, 21 Mar 2018 11:02:44 +0100 Message-Id: <84ab5360f22ad670ef719aab9375363f5c9cc61c.1521626292.git.phrdina@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: libvir-list@redhat.com Subject: [libvirt] [dbus PATCH v3 2/5] introduce run script to execute libvirt-dbus daemon 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 21 Mar 2018 10:02:55 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" The GDBus implementation requires XML files with interface description and libvirt-dbus daemon needs to load them. In order to run the daemon without installing it you can use the run script to configure the environment variable for you. Signed-off-by: Pavel Hrdina Reviewed-by: Daniel P. Berrang=C3=A9 --- .gitignore | 1 + configure.ac | 2 ++ run.in | 22 ++++++++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 run.in diff --git a/.gitignore b/.gitignore index b468bbd..c6d9754 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ vgcore.* /libvirt-dbus-*.tar.gz /libvirt-dbus.spec /m4/aclocal\.m4 +/run /stamp-h1 =20 /data/session/org.libvirt.service diff --git a/configure.ac b/configure.ac index 0e3bc01..36a4720 100644 --- a/configure.ac +++ b/configure.ac @@ -73,6 +73,8 @@ LIBVIRT_ARG_WITH([SYSTEM_USER], [username to run system i= nstance as], SYSTEM_USER=3D$with_system_user AC_SUBST([SYSTEM_USER]) =20 +AC_CONFIG_FILES([run], + [chmod +x,-w run]) AC_OUTPUT(Makefile data/Makefile src/Makefile diff --git a/run.in b/run.in new file mode 100644 index 0000000..1e48dc8 --- /dev/null +++ b/run.in @@ -0,0 +1,22 @@ +#!/bin/sh +# +# With this script you can run libvirt-dbus daemon without needing to +# install it first. You just have to do for example: +# +# ./run ./src/libvirt-dbus [args ...] +# +# You can also run libvirt-dbus under valgrind like this: +# +# ./run valgrind [valgrind args ...] ./src/libvirt-dbus [args ...] +# +# or under gdb: +# +# ./run gdb --args ./src/libvirt-dbus [args ...] +# + +# Find this script +b=3D@abs_tob_builddir@ + +export VIRT_DBUS_INTERFACES_DIR=3D"$b/data" + +exec "$@" --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list