doczkal / rpms / abrt

Forked from rpms/abrt 4 years ago
Clone

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

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