Blame SOURCES/0024-dbus-Add-configuration-for-Python3.patch

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