[LIBREPORT PATCH 2/3] anaconda: add proper configuration

Jakub Filak jfilak at redhat.com
Thu May 16 15:52:31 UTC 2013


Related to rhbz#958961

Signed-off-by: Jakub Filak <jfilak at redhat.com>
---
 src/plugins/Makefile.am                      |  4 +-
 src/plugins/bugzilla_anaconda_event.conf     |  6 ++-
 src/plugins/bugzilla_format_anaconda.conf    | 56 ++++++++++++++++++++++++++++
 src/plugins/bugzilla_formatdup_anaconda.conf | 52 ++++++++++++++++++++++++++
 4 files changed, 116 insertions(+), 2 deletions(-)
 create mode 100644 src/plugins/bugzilla_format_anaconda.conf
 create mode 100644 src/plugins/bugzilla_formatdup_anaconda.conf

diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
index 129b436..4bca629 100644
--- a/src/plugins/Makefile.am
+++ b/src/plugins/Makefile.am
@@ -28,7 +28,9 @@ reporters_plugin_conf += bugzilla.conf \
     bugzilla_format.conf \
     bugzilla_formatdup.conf \
     bugzilla_format_libreport.conf \
-    bugzilla_format_kernel.conf
+    bugzilla_format_kernel.conf \
+    bugzilla_format_anaconda.conf \
+    bugzilla_formatdup_anaconda.conf
 
 endif
 
diff --git a/src/plugins/bugzilla_anaconda_event.conf b/src/plugins/bugzilla_anaconda_event.conf
index a9df9df..0fe5283 100644
--- a/src/plugins/bugzilla_anaconda_event.conf
+++ b/src/plugins/bugzilla_anaconda_event.conf
@@ -1,6 +1,10 @@
 EVENT=report_Bugzilla component=anaconda
 	reporter-bugzilla -b \
-		-F /etc/libreport/plugins/bugzilla_format_libreport.conf
+		-F /etc/libreport/plugins/bugzilla_format_anaconda.conf \
+		-A /etc/libreport/plugins/bugzilla_formatdup_anaconda.conf
+
+EVENT=report-gui component=anaconda
+    report-gtk -- "$DUMP_DIR"
 
 EVENT=report-cli component=anaconda
     report-cli -e report_Bugzilla -- "$DUMP_DIR"
diff --git a/src/plugins/bugzilla_format_anaconda.conf b/src/plugins/bugzilla_format_anaconda.conf
new file mode 100644
index 0000000..8ac8b5c
--- /dev/null
+++ b/src/plugins/bugzilla_format_anaconda.conf
@@ -0,0 +1,56 @@
+# Lines starting with # are ignored.
+# Lines can be continued on the next line using trailing backslash.
+#
+# Format:
+# %summary:: summary format
+# section:: element1[,element2]...
+# The literal text line to be added to Bugzilla comment. Can be empty.
+# (IOW: empty lines are NOT ignored!)
+#
+# Summary format is a line of text, where %element% is replaced by
+# text element's content, and [[...%element%...]] block is used only if
+# %element% exists. [[...]] blocks can nest.
+#
+# Sections can be:
+# - %summary: bug summary format string.
+# - %attach: a list of elements to attach.
+# - text, double colon (::) and the list of comma-separated elements.
+#
+# Elements can be:
+# - problem directory element names, which get formatted as
+#   <element_name>: <contents>
+#   or
+#   <element_name>:
+#   :<contents>
+#   :<contents>
+#   :<contents>
+# - problem directory element names prefixed by "%bare_",
+#   which is formatted as-is, without "<element_name>:" and colons
+# - %oneline, %multiline, %text wildcards, which select all corresponding
+#   elements for output or attachment
+# - %binary wildcard, valid only for %attach section, instructs to attach
+#   binary elements
+# - problem directory element names prefixed by "-",
+#   which excludes given element from all wildcards
+#
+#   Nonexistent elements are silently ignored.
+#   If none of elements exists, the section will not be created.
+
+%summary:: %reason%
+
+Description of problem:: %bare_comment
+
+Version-Release number of selected component:: %bare_package
+
+:: %bare_description
+
+Additional info:: \
+	reporter,-pkg_arch,-pkg_epoch,-pkg_name,-pkg_release,-pkg_version,\
+		-component,-architecture,\
+	-analyzer,-count,-duphash,-uuid,-abrt_version,\
+	-username,-hostname,-os_release,-last_occurrence,-ureports_counter,\
+	-time,-pid,-pwd,-backtrace,-core_backtrace,-ifcfg.log,-packaging.log,\
+	%oneline,
+
+%attach:: -reported_to,-comment,-reason,-event_log,%multiline,\
+	-coredump,ifcfg.log,packaging.log,%binary
diff --git a/src/plugins/bugzilla_formatdup_anaconda.conf b/src/plugins/bugzilla_formatdup_anaconda.conf
new file mode 100644
index 0000000..efe8fa1
--- /dev/null
+++ b/src/plugins/bugzilla_formatdup_anaconda.conf
@@ -0,0 +1,52 @@
+# Lines starting with # are ignored.
+# Lines can be continued on the next line using trailing backslash.
+#
+# Format:
+# %summary:: summary format
+# section:: element1[,element2]...
+# The literal text line to be added to Bugzilla comment. Can be empty.
+# (IOW: empty lines are NOT ignored!)
+#
+# Summary format is a line of text, where %element% is replaced by
+# text element's content, and [[...%element%...]] block is used only if
+# %element% exists. [[...]] blocks can nest.
+#
+# Sections can be:
+# - %summary: bug summary format string.
+# - %attach: a list of elements to attach.
+# - text, double colon (::) and the list of comma-separated elements.
+#
+# Elements can be:
+# - problem directory element names, which get formatted as
+#   <element_name>: <contents>
+#   or
+#   <element_name>:
+#   :<contents>
+#   :<contents>
+#   :<contents>
+# - problem directory element names prefixed by "%bare_",
+#   which is formatted as-is, without "<element_name>:" and colons
+# - %oneline, %multiline, %text wildcards, which select all corresponding
+#   elements for output or attachment
+# - %binary wildcard, valid only for %attach section, instructs to attach
+#   binary elements
+# - problem directory element names prefixed by "-",
+#   which excludes given element from all wildcards
+#
+#   Nonexistent elements are silently ignored.
+#   If none of elements exists, the section will not be created.
+
+%summary:: [abrt] %package%[[: %crash_function%]][[: %reason%]][[: TAINTED %tainted_short%]]
+
+:: %bare_comment
+
+# var_log_messages has too much variance (time/date),
+# we exclude it from message so that dup message elimination has more chances to work
+:: \
+	reporter,-pkg_arch,-pkg_epoch,-pkg_name,-pkg_release,-pkg_version,\
+		-component,-architecture,\
+	-analyzer,-count,-duphash,-uuid,-abrt_version,\
+	-username,-hostname,-os_release,-last_occurrence,-ureports_counter,\
+	-time,-pid,-pwd,\
+	-var_log_messages,-type,-core_backtrace,-executable,\
+	%oneline
-- 
1.8.1.4



More information about the Crash-catcher mailing list