a7ae51
From d5c53fefd25ef90ece1d3481c9af1552d458eb97 Mon Sep 17 00:00:00 2001
a7ae51
From: Martin Kutlak <mkutlak@redhat.com>
a7ae51
Date: Tue, 25 Sep 2018 13:28:24 +0200
a7ae51
Subject: [PATCH] dbus: Add configuration for Python3
a7ae51
a7ae51
abrt-dbus misses a configuration file for Python3 and it instead includes Python2 configuration.
a7ae51
a7ae51
Related: #1652676
a7ae51
a7ae51
Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
a7ae51
---
a7ae51
 doc/dbus-configuration/Makefile.am                    | 11 ++++++++++-
a7ae51
 .../com.redhat.problems.configuration.python3.xml.in  | 11 +++++++++++
a7ae51
 3 files changed, 26 insertions(+), 1 deletion(-)
a7ae51
 create mode 100644 doc/dbus-configuration/com.redhat.problems.configuration.python3.xml.in
a7ae51
a7ae51
diff --git a/doc/dbus-configuration/Makefile.am b/doc/dbus-configuration/Makefile.am
a7ae51
index 889713943..a02706de9 100644
a7ae51
--- a/doc/dbus-configuration/Makefile.am
a7ae51
+++ b/doc/dbus-configuration/Makefile.am
a7ae51
@@ -9,9 +9,18 @@ dist_dbusabrtinterfaces_DATA = \
a7ae51
 	com.redhat.problems.configuration.abrt.xml \
a7ae51
 	com.redhat.problems.configuration.ccpp.xml \
a7ae51
 	com.redhat.problems.configuration.oops.xml \
a7ae51
-	com.redhat.problems.configuration.python.xml \
a7ae51
 	com.redhat.problems.configuration.xorg.xml
a7ae51
 
a7ae51
+if BUILD_PYTHON2
a7ae51
+dist_dbusabrtinterfaces_DATA += \
a7ae51
+	com.redhat.problems.configuration.python.xml
a7ae51
+endif
a7ae51
+
a7ae51
+if BUILD_PYTHON3
a7ae51
+dist_dbusabrtinterfaces_DATA += \
a7ae51
+	com.redhat.problems.configuration.python3.xml
a7ae51
+endif
a7ae51
+
a7ae51
 if BUILD_ADDON_VMCORE
a7ae51
 dist_dbusabrtinterfaces_DATA += \
a7ae51
 	com.redhat.problems.configuration.vmcore.xml
a7ae51
diff --git a/doc/dbus-configuration/com.redhat.problems.configuration.python3.xml.in b/doc/dbus-configuration/com.redhat.problems.configuration.python3.xml.in
a7ae51
new file mode 100644
a7ae51
index 000000000..68b6760b2
a7ae51
--- /dev/null
a7ae51
+++ b/doc/dbus-configuration/com.redhat.problems.configuration.python3.xml.in
a7ae51
@@ -0,0 +1,11 @@
a7ae51
+
a7ae51
+ "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
a7ae51
+
a7ae51
+<node name="/com/redhat/problems/configuration/python3">
a7ae51
+    <annotation name="com.redhat.problems.ConfFile" value="/etc/abrt/plugins/python3.conf" />
a7ae51
+    <annotation name="com.redhat.problems.DefaultConfFile" value="/usr/share/abrt/conf.d/plugins/python3.conf" />
a7ae51
+
a7ae51
+    <interface name="com.redhat.problems.configuration.python3">
a7ae51
+        <property name="RequireAbsolutePath" type="b" access="readwrite" />
a7ae51
+    </interface>
a7ae51
+</node>
a7ae51
-- 
a7ae51
2.17.2
a7ae51