From nobody Mon Apr 29 20:46:41 2024 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 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1502205970210198.25230014804083; Tue, 8 Aug 2017 08:26:10 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 16A5685376; Tue, 8 Aug 2017 15:26:08 +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 DD535845BF; Tue, 8 Aug 2017 15:26:06 +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 1CFA83FCFB; Tue, 8 Aug 2017 15:26:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v78FQ31f012943 for ; Tue, 8 Aug 2017 11:26:03 -0400 Received: by smtp.corp.redhat.com (Postfix) id E8A3660A9D; Tue, 8 Aug 2017 15:26:03 +0000 (UTC) Received: from antique-work.brq.redhat.com (unknown [10.43.2.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6EF5170958 for ; Tue, 8 Aug 2017 15:26:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 16A5685376 Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Pavel Hrdina To: libvir-list@redhat.com Date: Tue, 8 Aug 2017 17:25:52 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [dbus PATCH 1/7] maint: cleanup gitignore 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.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 08 Aug 2017 15:26:09 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina Reviewed-by: John Ferlan --- .gitignore | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 0844b58..e4bd377 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,15 @@ +*.log *.o -*~ -vgcore.* *.pyc -__pycache__ -*.log *.trs +*Makefile +*Makefile.in +*~ +__pycache__ +vgcore.* =20 /AUTHORS /INSTALL -/Makefile -/Makefile.in /aclocal.m4 /autom4te.cache/ /build-aux/ @@ -19,10 +19,8 @@ __pycache__ /config.status /configure /libvirt-dbus.spec -/src/.deps/ -/src/Makefile -/src/Makefile.in /stamp-h1 =20 +/src/.deps/ /src/libvirt-dbus /src/org.libvirt.service --=20 2.13.4 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Mon Apr 29 20:46:41 2024 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 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1502205971454850.9519078385631; Tue, 8 Aug 2017 08:26:11 -0700 (PDT) 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 mx1.redhat.com (Postfix) with ESMTPS id 9537B7DCE9; Tue, 8 Aug 2017 15:26:08 +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 5A2D395896; Tue, 8 Aug 2017 15:26:08 +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 D1A203FCFC; Tue, 8 Aug 2017 15:26:07 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v78FQ5kq012955 for ; Tue, 8 Aug 2017 11:26:05 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1082B60A9D; Tue, 8 Aug 2017 15:26:05 +0000 (UTC) Received: from antique-work.brq.redhat.com (unknown [10.43.2.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8B952776FC for ; Tue, 8 Aug 2017 15:26:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 9537B7DCE9 Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Pavel Hrdina To: libvir-list@redhat.com Date: Tue, 8 Aug 2017 17:25:53 +0200 Message-Id: <3d6a0c38418d4e0a61e5fb665e6628aefc934b0d.1502205855.git.phrdina@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [dbus PATCH 2/7] maint: ignore dist tarball 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.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 08 Aug 2017 15:26:10 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina Reviewed-by: John Ferlan --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index e4bd377..72f3595 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ vgcore.* /config.log /config.status /configure +/libvirt-dbus-*.tar.gz /libvirt-dbus.spec /stamp-h1 =20 --=20 2.13.4 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Mon Apr 29 20:46:41 2024 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 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1502205984727396.68074118973834; Tue, 8 Aug 2017 08:26:24 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0C981552EA; Tue, 8 Aug 2017 15:26:23 +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 9E4F591290; Tue, 8 Aug 2017 15:26:22 +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 C7D97180449B; Tue, 8 Aug 2017 15:26:21 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v78FQ5Al012965 for ; Tue, 8 Aug 2017 11:26:05 -0400 Received: by smtp.corp.redhat.com (Postfix) id D9BBC70953; Tue, 8 Aug 2017 15:26:05 +0000 (UTC) Received: from antique-work.brq.redhat.com (unknown [10.43.2.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5EB847095F for ; Tue, 8 Aug 2017 15:26:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 0C981552EA Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Pavel Hrdina To: libvir-list@redhat.com Date: Tue, 8 Aug 2017 17:25:54 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [dbus PATCH 3/7] build: fix distcheck 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.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 08 Aug 2017 15:26:23 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina Reviewed-by: John Ferlan --- Makefile.am | 15 ++++++++++++++- test/libvirttest.py | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index abb154c..67e9d1e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,6 +25,19 @@ gen-AUTHORS: mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS ; \ fi =20 -TESTS =3D \ +test_helpers =3D \ + test/libvirttest.py + +test_programs =3D \ test/test_manager.py \ test/test_domain.py + +TESTS =3D $(test_programs) + +EXTRA_DIST +=3D \ + $(test_helpers) \ + $(test_programs) \ + test/travis-run + +TESTS_ENVIRONMENT =3D \ + abs_top_builddir=3D$(abs_top_builddir) diff --git a/test/libvirttest.py b/test/libvirttest.py index 706b352..f5c2020 100644 --- a/test/libvirttest.py +++ b/test/libvirttest.py @@ -8,7 +8,7 @@ import subprocess import time import unittest =20 -root =3D os.path.dirname(os.path.dirname(__file__)) +root =3D os.environ.get('abs_top_builddir', os.path.dirname(os.path.dirnam= e(__file__))) exe =3D os.path.join(root, 'src', 'libvirt-dbus') =20 DBusGMainLoop(set_as_default=3DTrue) --=20 2.13.4 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Mon Apr 29 20:46:41 2024 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 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1502205988379663.5678500333886; Tue, 8 Aug 2017 08:26:28 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AB7D1C047B8B; Tue, 8 Aug 2017 15:26:26 +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 67D7A70958; Tue, 8 Aug 2017 15:26:26 +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 67A8214B1F; Tue, 8 Aug 2017 15:26:25 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v78FQ6hA012973 for ; Tue, 8 Aug 2017 11:26:06 -0400 Received: by smtp.corp.redhat.com (Postfix) id B63B27095A; Tue, 8 Aug 2017 15:26:06 +0000 (UTC) Received: from antique-work.brq.redhat.com (unknown [10.43.2.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3D5D67095B for ; Tue, 8 Aug 2017 15:26:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com AB7D1C047B8B Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Pavel Hrdina To: libvir-list@redhat.com Date: Tue, 8 Aug 2017 17:25:55 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [dbus PATCH 4/7] build: move test related bits to test/Makefile.am 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.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 08 Aug 2017 15:26:27 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina Reviewed-by: John Ferlan --- Makefile.am | 19 +------------------ configure.ac | 1 + test/Makefile.am | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 test/Makefile.am diff --git a/Makefile.am b/Makefile.am index 67e9d1e..8ba2137 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ =20 -SUBDIRS =3D src +SUBDIRS =3D src test =20 EXTRA_DIST =3D \ $(PACKAGE).spec \ @@ -24,20 +24,3 @@ gen-AUTHORS: < $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp && \ mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS ; \ fi - -test_helpers =3D \ - test/libvirttest.py - -test_programs =3D \ - test/test_manager.py \ - test/test_domain.py - -TESTS =3D $(test_programs) - -EXTRA_DIST +=3D \ - $(test_helpers) \ - $(test_programs) \ - test/travis-run - -TESTS_ENVIRONMENT =3D \ - abs_top_builddir=3D$(abs_top_builddir) diff --git a/configure.ac b/configure.ac index 6a123fb..8de0d35 100644 --- a/configure.ac +++ b/configure.ac @@ -46,4 +46,5 @@ AC_SUBST(DBUS_SERVICES_DIR) =20 AC_OUTPUT(Makefile src/Makefile + test/Makefile libvirt-dbus.spec) diff --git a/test/Makefile.am b/test/Makefile.am new file mode 100644 index 0000000..a7f22d0 --- /dev/null +++ b/test/Makefile.am @@ -0,0 +1,16 @@ +test_helpers =3D \ + libvirttest.py + +test_programs =3D \ + test_manager.py \ + test_domain.py + +TESTS =3D $(test_programs) + +EXTRA_DIST =3D \ + $(test_helpers) \ + $(test_programs) \ + travis-run + +TESTS_ENVIRONMENT =3D \ + abs_top_builddir=3D$(abs_top_builddir) --=20 2.13.4 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Mon Apr 29 20:46:41 2024 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 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1502205985520113.96187156260123; Tue, 8 Aug 2017 08:26:25 -0700 (PDT) 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 mx1.redhat.com (Postfix) with ESMTPS id 988BD4E33A; Tue, 8 Aug 2017 15:26:23 +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 4C97195A41; Tue, 8 Aug 2017 15:26:23 +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 908D23880; Tue, 8 Aug 2017 15:26:22 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v78FQ9D7013160 for ; Tue, 8 Aug 2017 11:26:09 -0400 Received: by smtp.corp.redhat.com (Postfix) id 0CACF60A9D; Tue, 8 Aug 2017 15:26:09 +0000 (UTC) Received: from antique-work.brq.redhat.com (unknown [10.43.2.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id 64ECD77707 for ; Tue, 8 Aug 2017 15:26:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 988BD4E33A Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Pavel Hrdina To: libvir-list@redhat.com Date: Tue, 8 Aug 2017 17:25:56 +0200 Message-Id: <2980a0c159ea083d7777e5d1bc90cef59c3ef0c9.1502205855.git.phrdina@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [dbus PATCH 5/7] maint: move service file into data directory 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.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Tue, 08 Aug 2017 15:26:24 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina Reviewed-by: John Ferlan --- .gitignore | 3 ++- Makefile.am | 2 +- configure.ac | 2 ++ data/Makefile.am | 15 +++++++++++++++ data/session/org.libvirt.service.in | 3 +++ src/Makefile.am | 17 ----------------- src/org.libvirt.service.in | 3 --- 7 files changed, 23 insertions(+), 22 deletions(-) create mode 100644 data/Makefile.am create mode 100644 data/session/org.libvirt.service.in delete mode 100644 src/org.libvirt.service.in diff --git a/.gitignore b/.gitignore index 72f3595..f223068 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ vgcore.* /libvirt-dbus.spec /stamp-h1 =20 +/data/session/org.libvirt.service + /src/.deps/ /src/libvirt-dbus -/src/org.libvirt.service diff --git a/Makefile.am b/Makefile.am index 8ba2137..065334f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ =20 -SUBDIRS =3D src test +SUBDIRS =3D data src test =20 EXTRA_DIST =3D \ $(PACKAGE).spec \ diff --git a/configure.ac b/configure.ac index 8de0d35..158c5e9 100644 --- a/configure.ac +++ b/configure.ac @@ -29,6 +29,7 @@ AC_SUBST([LIBVIRT_DBUS_VERSION_INFO]) AC_SUBST([LIBVIRT_DBUS_VERSION_NUMBER]) =20 AC_PROG_CC +AC_PROG_MKDIR_P AM_PROG_CC_C_O =20 PKG_CHECK_MODULES(LIBVIRT, libvirt >=3D $LIBVIRT_REQUIRED) @@ -45,6 +46,7 @@ fi AC_SUBST(DBUS_SERVICES_DIR) =20 AC_OUTPUT(Makefile + data/Makefile src/Makefile test/Makefile libvirt-dbus.spec) diff --git a/data/Makefile.am b/data/Makefile.am new file mode 100644 index 0000000..b0b30b9 --- /dev/null +++ b/data/Makefile.am @@ -0,0 +1,15 @@ +service_in_files =3D \ + session/org.libvirt.service.in +servicedir =3D $(DBUS_SERVICES_DIR) +service_DATA =3D $(service_in_files:.service.in=3D.service) + +EXTRA_DIST =3D \ + $(service_in_files) + +CLEANFILES =3D \ + $(service_DATA) + +session/org.libvirt.service: session/org.libvirt.service.in + $(AM_V_GEN)$(MKDIR_P) session && \ + sed -e 's|[@]bindir[@]|$(bindir)|g' < $< > $@-t && \ + mv $@-t $@ diff --git a/data/session/org.libvirt.service.in b/data/session/org.libvirt= .service.in new file mode 100644 index 0000000..a8cb6a9 --- /dev/null +++ b/data/session/org.libvirt.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=3Dorg.libvirt +Exec=3D@bindir@/libvirt-dbus --session diff --git a/src/Makefile.am b/src/Makefile.am index 30e7a35..917c46d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -27,20 +27,3 @@ libvirt_dbus_LDFLAGS =3D \ libvirt_dbus_LDADD =3D \ $(SYSTEMD_LIBS) \ $(LIBVIRT_LIBS) - -service_in_files =3D \ - org.libvirt.service.in -servicedir =3D $(DBUS_SERVICES_DIR) -service_DATA =3D $(service_in_files:.service.in=3D.service) - -EXTRA_DIST +=3D \ - $(service_in_files) - -CLEANFILES +=3D \ - $(service_DATA) - -org.libvirt.service: org.libvirt.service.in - $(AM_V_GEN)sed \ - -e 's|[@]bindir[@]|$(bindir)|g' \ - < $< > $@-t && \ - mv $@-t $@ diff --git a/src/org.libvirt.service.in b/src/org.libvirt.service.in deleted file mode 100644 index a42539e..0000000 --- a/src/org.libvirt.service.in +++ /dev/null @@ -1,3 +0,0 @@ -[D-BUS Service] -Name=3Dorg.libvirt -Exec=3D@bindir@/libvirt-dbus --=20 2.13.4 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Mon Apr 29 20:46:41 2024 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 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1502205994152129.96855113994832; Tue, 8 Aug 2017 08:26:34 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B20D36146C; Tue, 8 Aug 2017 15:26:31 +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 73BA85DD6C; Tue, 8 Aug 2017 15:26:31 +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 0ED421805976; Tue, 8 Aug 2017 15:26:31 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v78FQ9I1013196 for ; Tue, 8 Aug 2017 11:26:09 -0400 Received: by smtp.corp.redhat.com (Postfix) id BB77E70953; Tue, 8 Aug 2017 15:26:09 +0000 (UTC) Received: from antique-work.brq.redhat.com (unknown [10.43.2.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id 41FC760A9D for ; Tue, 8 Aug 2017 15:26:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com B20D36146C Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Pavel Hrdina To: libvir-list@redhat.com Date: Tue, 8 Aug 2017 17:25:57 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [dbus PATCH 6/7] data: add system dbus service file 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.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 08 Aug 2017 15:26:33 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina Reviewed-by: John Ferlan --- .gitignore | 1 + configure.ac | 10 ++++++++++ data/Makefile.am | 16 ++++++++++++++-- data/system/org.libvirt.service.in | 4 ++++ libvirt-dbus.spec.in | 1 + 5 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 data/system/org.libvirt.service.in diff --git a/.gitignore b/.gitignore index f223068..1d41949 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ vgcore.* /stamp-h1 =20 /data/session/org.libvirt.service +/data/system/org.libvirt.service =20 /src/.deps/ /src/libvirt-dbus diff --git a/configure.ac b/configure.ac index 158c5e9..65071f9 100644 --- a/configure.ac +++ b/configure.ac @@ -45,6 +45,16 @@ else fi AC_SUBST(DBUS_SERVICES_DIR) =20 +AC_ARG_WITH(dbus-system-services, + [AC_HELP_STRING([--with-dbus-system-services=3D], + [where D-BUS system services directory is])]) +if ! test -z "$with_dbus_system_services" ; then + DBUS_SYSTEM_SERVICES_DIR=3D"$with_dbus_system_services" +else + DBUS_SYSTEM_SERVICES_DIR=3D"$datadir/dbus-1/system-services" +fi +AC_SUBST(DBUS_SYSTEM_SERVICES_DIR) + AC_OUTPUT(Makefile data/Makefile src/Makefile diff --git a/data/Makefile.am b/data/Makefile.am index b0b30b9..b8f1376 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -3,13 +3,25 @@ service_in_files =3D \ servicedir =3D $(DBUS_SERVICES_DIR) service_DATA =3D $(service_in_files:.service.in=3D.service) =20 +system_service_in_files =3D \ + system/org.libvirt.service.in +system_servicedir =3D $(DBUS_SYSTEM_SERVICES_DIR) +system_service_DATA =3D $(system_service_in_files:.service.in=3D.service) + EXTRA_DIST =3D \ - $(service_in_files) + $(service_in_files) \ + $(system_service_in_files) =20 CLEANFILES =3D \ - $(service_DATA) + $(service_DATA) \ + $(system_service_DATA) =20 session/org.libvirt.service: session/org.libvirt.service.in $(AM_V_GEN)$(MKDIR_P) session && \ sed -e 's|[@]bindir[@]|$(bindir)|g' < $< > $@-t && \ mv $@-t $@ + +system/org.libvirt.service: system/org.libvirt.service.in + $(AM_V_GEN)$(MKDIR_P) system && \ + sed -e 's|[@]bindir[@]|$(bindir)|g' < $< > $@-t && \ + mv $@-t $@ diff --git a/data/system/org.libvirt.service.in b/data/system/org.libvirt.s= ervice.in new file mode 100644 index 0000000..08d32a2 --- /dev/null +++ b/data/system/org.libvirt.service.in @@ -0,0 +1,4 @@ +[D-BUS Service] +Name=3Dorg.libvirt +Exec=3D@bindir@/libvirt-dbus --system +User=3Droot diff --git a/libvirt-dbus.spec.in b/libvirt-dbus.spec.in index c92b320..0f76de2 100644 --- a/libvirt-dbus.spec.in +++ b/libvirt-dbus.spec.in @@ -42,5 +42,6 @@ rm -rf $RPM_BUILD_ROOT %doc README COPYING AUTHORS NEWS %{_bindir}/libvirt-dbus %{_datadir}/dbus-1/services/org.libvirt.service +%{_datadir}/dbus-1/system-services/org.libvirt.service =20 %changelog --=20 2.13.4 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Mon Apr 29 20:46:41 2024 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 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1502205994062640.4392775463115; Tue, 8 Aug 2017 08:26:34 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EB9C7C0587C9; Tue, 8 Aug 2017 15:26:30 +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 A932791295; Tue, 8 Aug 2017 15:26:30 +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 E76FD180B467; Tue, 8 Aug 2017 15:26:29 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v78FQCuP013311 for ; Tue, 8 Aug 2017 11:26:12 -0400 Received: by smtp.corp.redhat.com (Postfix) id 345E370948; Tue, 8 Aug 2017 15:26:12 +0000 (UTC) Received: from antique-work.brq.redhat.com (unknown [10.43.2.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id AC6C160A9D for ; Tue, 8 Aug 2017 15:26:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com EB9C7C0587C9 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Pavel Hrdina To: libvir-list@redhat.com Date: Tue, 8 Aug 2017 17:25:58 +0200 Message-Id: <40880dd4c9c507c8b92b22d012c11c51a2decc8e.1502205855.git.phrdina@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [dbus PATCH 7/7] data: add system dbus service policy configuration 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.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 08 Aug 2017 15:26:32 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina Reviewed-by: John Ferlan --- configure.ac | 10 ++++++++++ data/Makefile.am | 8 +++++++- data/system/org.libvirt.conf | 12 ++++++++++++ libvirt-dbus.spec.in | 1 + 4 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 data/system/org.libvirt.conf diff --git a/configure.ac b/configure.ac index 65071f9..4c654fa 100644 --- a/configure.ac +++ b/configure.ac @@ -55,6 +55,16 @@ else fi AC_SUBST(DBUS_SYSTEM_SERVICES_DIR) =20 +AC_ARG_WITH(dbus-system-policies, + [AC_HELP_STRING([--with-dbus-system-policies=3D], + [where D-BUS system policies directory is])]) +if ! test -z "$with_dbus_system_policies" ; then + DBUS_SYSTEM_POLICIES_DIR=3D"$with_dbus_system_policies" +else + DBUS_SYSTEM_POLICIES_DIR=3D"$datadir/dbus-1/system.d" +fi +AC_SUBST(DBUS_SYSTEM_POLICIES_DIR) + AC_OUTPUT(Makefile data/Makefile src/Makefile diff --git a/data/Makefile.am b/data/Makefile.am index b8f1376..58e855f 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -8,9 +8,15 @@ system_service_in_files =3D \ system_servicedir =3D $(DBUS_SYSTEM_SERVICES_DIR) system_service_DATA =3D $(system_service_in_files:.service.in=3D.service) =20 +system_policy_files =3D \ + system/org.libvirt.conf +system_policydir =3D $(DBUS_SYSTEM_POLICIES_DIR) +system_policy_DATA =3D $(system_policy_files) + EXTRA_DIST =3D \ $(service_in_files) \ - $(system_service_in_files) + $(system_service_in_files) \ + $(system_policy_files) =20 CLEANFILES =3D \ $(service_DATA) \ diff --git a/data/system/org.libvirt.conf b/data/system/org.libvirt.conf new file mode 100644 index 0000000..5cbc732 --- /dev/null +++ b/data/system/org.libvirt.conf @@ -0,0 +1,12 @@ + + + + + + + + + + + diff --git a/libvirt-dbus.spec.in b/libvirt-dbus.spec.in index 0f76de2..5be4c22 100644 --- a/libvirt-dbus.spec.in +++ b/libvirt-dbus.spec.in @@ -43,5 +43,6 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/libvirt-dbus %{_datadir}/dbus-1/services/org.libvirt.service %{_datadir}/dbus-1/system-services/org.libvirt.service +%{_datadir}/dbus-1/system.d/org.libvirt.conf =20 %changelog --=20 2.13.4 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list