Unverified Commit 8feb4995 authored by Louis Abel's avatar Louis Abel 📺
Browse files

Initial commit

parents
# Include a patch file
add {
file: "ROCKY/_supporting/5000-patch-out-centos.patch"
}
# Time to modify the spec
spec_change {
file {
name: "5000-patch-out-centos.patch"
type: Patch
add: true
add_to_prep: true
}
search_and_replace {
any: true
find: "CentOS Bug Tracker"
replace: "Rocky Linux Bug Tracker"
n: -1
}
# This is an attempt to change all the files...
search_and_replace {
any: true
find: "workflow_CentOS"
replace: "workflow_Rocky"
n: -1
}
search_and_replace {
any: true
find: "report_centos"
replace: "report_rocky"
n: -1
}
search_and_replace {
any: true
find: "report_CentOS"
replace: "report_Rocky"
n: -1
}
search_and_replace {
any: true
find: "centos_report_event"
replace: "rocky_report_event"
n: -1
}
# End attempt
search_and_replace {
field: "%package"
find: "centos"
replace: "rocky"
n: 1
}
search_and_replace {
field: "%description"
find: "centos"
replace: "rocky"
n: 1
}
search_and_replace {
field: "%files"
find: "centos"
replace: "rocky"
n: 1
}
append {
field: "Release"
value: ".rocky"
}
changelog {
author_name: "Louis Abel"
author_email: "label@rockylinux.org"
message: "Stamp out all CentOS refs to Rocky"
}
commit 7e948441f315b32c4c9bd086bf3ff768910c9db2
Author: Louis Abel <label@rockylinux.org>
Date: Fri Feb 26 18:34:58 2021 -0700
Patching out CentOS for Rocky
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 837036be..95769e5b 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -54,7 +54,7 @@ MAN5_TXT += print_event.conf.txt
MAN5_TXT += report_Bugzilla.conf.txt
MAN5_TXT += report_event.conf.txt
MAN5_TXT += report_fedora.conf.txt
-MAN5_TXT += report_centos.conf.txt
+MAN5_TXT += report_rocky.conf.txt
MAN5_TXT += report_Logger.conf.txt
MAN5_TXT += report_rhel.conf.txt
MAN5_TXT += report_rhel_bugzilla.conf.txt
@@ -63,7 +63,7 @@ MAN5_TXT += report_logger.conf.txt
MAN5_TXT += report_mailx.conf.txt
MAN5_TXT += report_uploader.conf.txt
MAN5_TXT += report_Uploader.conf.txt
-MAN5_TXT += report_CentOSBugTracker.conf.txt
+MAN5_TXT += report_RockyBugTracker.conf.txt
MAN5_TXT += rhtsupport.conf.txt
MAN5_TXT += rhtsupport_event.conf.txt
MAN5_TXT += uploader_event.conf.txt
@@ -71,7 +71,7 @@ MAN5_TXT += ureport.conf.txt
MAN5_TXT += upload.conf.txt
MAN5_PREFORMATTED =
-MAN5_PREFORMATTED += centos_report_event.conf.5
+MAN5_PREFORMATTED += rocky_report_event.conf.5
# Manual pages are generated from .txt via Docbook
man1_MANS = ${MAN1_TXT:%.txt=%.1}
diff --git a/doc/report_RockyBugTracker.conf.txt b/doc/report_RockyBugTracker.conf.txt
new file mode 100644
index 00000000..22a90c45
--- /dev/null
+++ b/doc/report_RockyBugTracker.conf.txt
@@ -0,0 +1,45 @@
+report_RockyBugTracker.conf(5)
+===============================
+
+NAME
+----
+report_RockyBugTracker.conf - libreport's configuration file for 'report_RockyBugTracker' events.
+
+DESCRIPTION
+-----------
+This configuration file contains values for options defined in
+/usr/share/libreport/events/report_RockyBugTracker.xml
+
+Configuration file lines should have 'PARAM = VALUE' format. The parameters are:
+
+'Mantisbt_Login'::
+ Login to MantisBT account.
+
+'Mantisbt_Password'::
+ Password to MantisBT account.
+
+'Mantisbt_MantisbtURL'::
+ MantisBT HTTP(S) address. (default: https://bugs.rockylinux.org)
+
+'Mantisbt_SSLVerify'::
+ Use yes/true/on/1 to verify server's SSL certificate. (default: yes)
+
+'Mantisbt_Project'::
+ Project issue field value. Useful if you needed different project than specified in /etc/os-release
+
+'Mantisbt_ProjectVersion'::
+ Version issue field value. Useful if you needed different project version than specified in /etc/os-release
+
+'http_proxy'::
+ the proxy server to use for HTTP
+
+'HTTPS_PROXY'::
+ the proxy server to use for HTTPS
+
+SEE ALSO
+--------
+report_event.conf(5), reporter-mantisbt(1)
+
+AUTHOR
+------
+* ABRT team
diff --git a/doc/report_rocky.conf.txt b/doc/report_rocky.conf.txt
new file mode 100644
index 00000000..13c43894
--- /dev/null
+++ b/doc/report_rocky.conf.txt
@@ -0,0 +1,41 @@
+report_rocky.conf(5)
+=====================
+
+NAME
+----
+report_rocky.conf - configuration file for libreport.
+
+DESCRIPTION
+-----------
+This configuration file specifies which of the reporting work flow definitions
+are applicable for all problems types on Rocky.
+
+All applicable work flows are presented to users in User Interface as
+possibilities for processing of any problems. A particular work flow becomes
+applicable if its conditions are satisfied.
+
+This configuration file consists from one condition per line.
+
+Each condition line must start with EVENT=workflow_NAME where "workflow_" is
+constant prefix and "workflow_NAME" is base name of path to reporting work flow
+configuration file.
+
+The rest of condition line has form VAR=VAL, VAR!=VAL or VAL~=REGEX, where VAR
+is a name of problem directory element to be checked (for example,
+"executable", "package", hostname" etc). The condition may consists
+from as many element checks as it is necessary.
+
+EXAMPLES
+--------
+Condition line::
+ EVENT=workflow_RockyCCpp analyzer=CCpp
+
+The condition line above expects existence of /usr/share/libreport/workflows/workflow_RockyCCpp.xml
+
+SEE ALSO
+--------
+report-gtk(1)
+
+AUTHOR
+------
+* ABRT team
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
index b228602a..1a4e5d68 100644
--- a/src/plugins/Makefile.am
+++ b/src/plugins/Makefile.am
@@ -76,9 +76,9 @@ reporters_events_conf += report_Bugzilla.conf
endif
if BUILD_MANTISBT
-reporters_events += report_CentOSBugTracker.xml
+reporters_events += report_RockyBugTracker.xml
-reporters_events_conf += report_CentOSBugTracker.conf
+reporters_events_conf += report_RockyBugTracker.conf
endif
if BUILD_UREPORT
@@ -108,7 +108,7 @@ dist_eventsdef_DATA = \
rhtsupport_event.conf \
uploader_event.conf \
emergencyanalysis_event.conf \
- centos_report_event.conf
+ rocky_report_event.conf
reporters_extra_dist =
if BUILD_BUGZILLA
@@ -122,7 +122,7 @@ reporters_extra_dist += report_uReport.xml.in
endif
if BUILD_MANTISBT
-reporters_extra_dist += report_CentOSBugTracker.xml.in
+reporters_extra_dist += report_RockyBugTracker.xml.in
endif
EXTRA_DIST = $(reporters_extra_dist) \
diff --git a/src/plugins/report_RockyBugTracker.conf b/src/plugins/report_RockyBugTracker.conf
new file mode 100644
index 00000000..d451d37e
--- /dev/null
+++ b/src/plugins/report_RockyBugTracker.conf
@@ -0,0 +1,4 @@
+Mantisbt_MantisbtURL = https://bugs.rockylinux.org
+Mantisbt_Login =
+Mantisbt_Password =
+Mantisbt_SSLVerify = yes
diff --git a/src/plugins/report_RockyBugTracker.xml.in b/src/plugins/report_RockyBugTracker.xml.in
new file mode 100644
index 00000000..dc8fdaff
--- /dev/null
+++ b/src/plugins/report_RockyBugTracker.xml.in
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<event>
+ <_name>Rocky Linux Bug Tracker</_name>
+ <_description>Report to the Rocky Linux Bug Tracker</_description>
+
+ <requires-items>component,duphash,os_release</requires-items>
+ <exclude-items-by-default>coredump,count,event_log,reported_to,vmcore</exclude-items-by-default>
+ <exclude-items-always></exclude-items-always>
+ <exclude-binary-items>no</exclude-binary-items>
+ <include-items-by-default></include-items-by-default>
+ <minimal-rating>3</minimal-rating>
+ <gui-review-elements>yes</gui-review-elements>
+ <support-restricted-access optionname="Mantisbt_CreatePrivate">yes</support-restricted-access>
+
+ <options>
+ <option type="text" name="Mantisbt_Login">
+ <_label>User name</_label>
+ <allow-empty>no</allow-empty>
+ <_description>Rocky Linux Bug Tracker account user name</_description>
+ <_note-html>You can create bugs.rockylinux.org account &lt;a href="https://accounts.rockylinux.org/"&gt;here&lt;/a&gt;</_note-html>
+ </option>
+ <option type="password" name="Mantisbt_Password">
+ <_label>Password</_label>
+ <allow-empty>no</allow-empty>
+ <_description>Rocky Linux Bug Tracker account password</_description>
+ </option>
+ <option type="bool" name="Mantisbt_CreatePrivate">
+ <_label>Restrict access</_label>
+ <_note-html>The issue will be accessible only to users with access to 'Private Issues'</_note-html>
+ <default-value>no</default-value>
+ </option>
+ <advanced-options>
+ <option type="text" name="Mantisbt_MantisbtURL">
+ <_label>Rocky Linux Bug Tracker URL</_label>
+ <allow-empty>no</allow-empty>
+ <_note-html>Address of the Rocky Linux Bug Tracker server</_note-html>
+ <default-value>https://bugs.rockylinux.org</default-value>
+ </option>
+ <option type="bool" name="Mantisbt_SSLVerify">
+ <_label>Verify SSL</_label>
+ <_note-html>Check SSL key validity</_note-html>
+ <default-value>yes</default-value>
+ </option>
+ <option type="text" name="Mantisbt_Project">
+ <_label>Rocky Linux Bug Tracker project</_label>
+ <allow-empty>yes</allow-empty>
+ <_note-html>Specify this only if you needed different project than specified in /etc/os-release</_note-html>
+ </option>
+ <option type="text" name="Mantisbt_ProjectVersion">
+ <_label>Rocky Linux Bug Tracker project version</_label>
+ <allow-empty>yes</allow-empty>
+ <_note-html>Specify this only if you needed different project version than specified in /etc/os-release</_note-html>
+ </option>
+ <option type="text" name="http_proxy">
+ <_label>HTTP Proxy</_label>
+ <allow-empty>yes</allow-empty>
+ <_note-html>Sets the proxy server to use for HTTP</_note-html>
+ </option>
+ <option type="text" name="HTTPS_PROXY">
+ <_label>HTTPS Proxy</_label>
+ <allow-empty>yes</allow-empty>
+ <_note-html>Sets the proxy server to use for HTTPS</_note-html>
+ </option>
+ </advanced-options>
+ </options>
+</event>
diff --git a/src/plugins/rocky_report_event.conf b/src/plugins/rocky_report_event.conf
new file mode 100644
index 00000000..3c6ed66b
--- /dev/null
+++ b/src/plugins/rocky_report_event.conf
@@ -0,0 +1,38 @@
+EVENT=report_RockyBugTracker type=xorg
+ reporter-mantisbt
+
+EVENT=report_RockyBugTracker type=Kerneloops
+ reporter-mantisbt
+
+EVENT=report_RockyBugTracker type=vmcore
+ reporter-mantisbt
+
+EVENT=report_RockyBugTracker type=Python component!=anaconda
+ test -f component || abrt-action-save-package-data
+ reporter-mantisbt \
+ -F /etc/libreport/plugins/mantisbt_format.conf \
+ -A /etc/libreport/plugins/mantisbt_formatdup.conf
+
+EVENT=report_RockyBugTracker type=Python3 component!=anaconda
+ test -f component || abrt-action-save-package-data
+ reporter-mantisbt \
+ -F /etc/libreport/plugins/mantisbt_format.conf \
+ -A /etc/libreport/plugins/mantisbt_formatdup.conf
+
+EVENT=report_RockyBugTracker type=CCpp duphash!=
+ test -f component || abrt-action-save-package-data
+ component="`cat component`"
+ format="mantisbt_format.conf"
+ test -f "/etc/libreport/plugins/mantisbt_format_$component.conf" \
+ && format="mantisbt_format_$component.conf"
+ formatdup="mantisbt_formatdup.conf"
+ test -f "/etc/libreport/plugins/mantisbt_formatdup_$component.conf" \
+ && formatdup="mantisbt_formatdup_$component.conf"
+ reporter-mantisbt \
+ -F "/etc/libreport/plugins/$format" \
+ -A "/etc/libreport/plugins/$formatdup"
+
+EVENT=report_RockyBugTracker analyzer=libreport
+ reporter-mantisbt \
+ -F /etc/libreport/plugins/mantisbt_format_analyzer_libreport.conf \
+ -A /etc/libreport/plugins/mantisbt_formatdup_analyzer_libreport.conf
diff --git a/src/workflows/Makefile.am b/src/workflows/Makefile.am
index e4d7b268..93a1af44 100644
--- a/src/workflows/Makefile.am
+++ b/src/workflows/Makefile.am
@@ -36,15 +36,15 @@ dist_workflows_DATA = \
if BUILD_MANTISBT
dist_workflows_DATA += \
- workflow_CentOSCCpp.xml \
- workflow_CentOSKerneloops.xml \
- workflow_CentOSPython.xml \
- workflow_CentOSPython3.xml \
- workflow_CentOSVmcore.xml \
- workflow_CentOSXorg.xml \
- workflow_CentOSLibreport.xml \
- workflow_CentOSJava.xml \
- workflow_CentOSJavaScript.xml
+ workflow_RockyCCpp.xml \
+ workflow_RockyKerneloops.xml \
+ workflow_RockyPython.xml \
+ workflow_RockyPython3.xml \
+ workflow_RockyVmcore.xml \
+ workflow_RockyXorg.xml \
+ workflow_RockyLibreport.xml \
+ workflow_RockyJava.xml \
+ workflow_RockyJavaScript.xml
endif
if BUILD_BUGZILLA
@@ -73,7 +73,7 @@ dist_workflowsdef_DATA =\
report_mailx.conf \
report_logger.conf \
report_uploader.conf \
- report_centos.conf
+ report_Rocky.conf
if BUILD_BUGZILLA
dist_workflowsdef_DATA += \
@@ -136,13 +136,13 @@ endif
if BUILD_MANTISBT
EXTRA_DIST += \
- workflow_CentOSCCpp.xml.in \
- workflow_CentOSKerneloops.xml.in \
- workflow_CentOSPython.xml.in \
- workflow_CentOSPython3.xml.in \
- workflow_CentOSVmcore.xml.in \
- workflow_CentOSXorg.xml.in \
- workflow_CentOSLibreport.xml.in \
- workflow_CentOSJava.xml.in \
- workflow_CentOSJavaScript.xml.in
+ workflow_RockyCCpp.xml.in \
+ workflow_RockyKerneloops.xml.in \
+ workflow_RockyPython.xml.in \
+ workflow_RockyPython3.xml.in \
+ workflow_RockyVmcore.xml.in \
+ workflow_RockyXorg.xml.in \
+ workflow_RockyLibreport.xml.in \
+ workflow_RockyJava.xml.in \
+ workflow_RockyJavaScript.xml.in
endif
diff --git a/src/workflows/report_rocky.conf b/src/workflows/report_rocky.conf
new file mode 100644
index 00000000..5e853dec
--- /dev/null
+++ b/src/workflows/report_rocky.conf
@@ -0,0 +1,31 @@
+EVENT=workflow_RockyLibreport analyzer=libreport
+# this is just a meta event which consists of other events
+# the list is defined in the xml file
+
+EVENT=workflow_RockyCCpp type=CCpp
+# this is just a meta event which consists of other events
+# the list is defined in the xml file
+
+EVENT=workflow_RockyPython type=Python component!=anaconda
+# this is just a meta event which consists of other events
+# the list is defined in the xml file
+
+EVENT=workflow_RockyPython3 type=Python3 component!=anaconda
+# this is just a meta event which consists of other events
+# the list is defined in the xml file
+
+EVENT=workflow_RockyKerneloops type=Kerneloops
+# this is just a meta event which consists of other events
+# the list is defined in the xml file
+
+EVENT=workflow_RockyVmcore type=vmcore
+# this is just a meta event which consists of other events
+# the list is defined in the xml file
+
+EVENT=workflow_RockyXorg type=xorg
+# this is just a meta event which consists of other events
+# the list is defined in the xml file
+
+EVENT=workflow_RockyJava type=Java
+# this is just a meta event which consists of other events
+# the list is defined in the xml file
diff --git a/src/workflows/workflow_RockyCCpp.xml.in b/src/workflows/workflow_RockyCCpp.xml.in
new file mode 100644
index 00000000..7269ff8b
--- /dev/null
+++ b/src/workflows/workflow_RockyCCpp.xml.in
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<workflow>
+ <_name>Report to the Rocky Linux Bug Tracker</_name>
+ <_description>Process the C/C++ crash using the Rocky infrastructure</_description>
+
+ <events>
+ <event>report_uReport</event>
+ <event>collect_*</event>
+ <event>analyze_CCpp</event>
+ <event>report_RockyBugTracker</event>
+ </events>
+</workflow>
diff --git a/src/workflows/workflow_RockyJava.xml.in b/src/workflows/workflow_RockyJava.xml.in
new file mode 100644
index 00000000..1544a0e9
--- /dev/null
+++ b/src/workflows/workflow_RockyJava.xml.in
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<workflow>
+ <_name>Report to the Rocky Linux Bug Tracker</_name>
+ <_description>Process the Java exception using the Rocky infrastructure</_description>
+
+ <events>
+ <event>report_uReport</event>
+ <event>collect_*</event>
+ <event>report_RockyBugTracker</event>
+ </events>
+</workflow>
diff --git a/src/workflows/workflow_RockyJavaScript.xml.in b/src/workflows/workflow_RockyJavaScript.xml.in
new file mode 100644
index 00000000..7fcfdaed
--- /dev/null
+++ b/src/workflows/workflow_RockyJavaScript.xml.in
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<workflow>
+ <_name>Report to the Rocky Linux Bug Tracker</_name>
+ <_description>Process the JavaScript exception using the Rocky infrastructure</_description>
+
+ <events>
+ <event>report_uReport</event>
+ <event>collect_*</event>
+ <event>report_RockyBugTracker</event>
+ </events>
+</workflow>
diff --git a/src/workflows/workflow_RockyKerneloops.xml.in b/src/workflows/workflow_RockyKerneloops.xml.in
new file mode 100644
index 00000000..ebea17e7
--- /dev/null
+++ b/src/workflows/workflow_RockyKerneloops.xml.in
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<workflow>
+ <_name>Report to the Rocky Linux Bug Tracker</_name>
+ <_description>Process the kerneloops using the Rocky infrastructure</_description>
+
+ <events>
+ <event>report_uReport</event>
+ <event>collect_*</event>
+ <event>report_RockyBugTracker</event>
+ </events>
+</workflow>
diff --git a/src/workflows/workflow_RockyLibreport.xml.in b/src/workflows/workflow_RockyLibreport.xml.in
new file mode 100644
index 00000000..20f512f5
--- /dev/null
+++ b/src/workflows/workflow_RockyLibreport.xml.in
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<workflow>
+ <_name>Report to the Rocky Linux Bug Tracker</_name>
+ <_description>Process the problem using the Rocky infrastructure</_description>
+
+ <events>
+ <event>report_RockyBugTracker</event>
+ </events>
+</workflow>
diff --git a/src/workflows/workflow_RockyPython.xml.in b/src/workflows/workflow_RockyPython.xml.in
new file mode 100644
index 00000000..dd90f476
--- /dev/null
+++ b/src/workflows/workflow_RockyPython.xml.in
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<workflow>
+ <_name>Report to the Rocky Linux Bug Tracker</_name>
+ <_description>Process the python exception using the Rocky infrastructure</_description>
+
+ <events>
+ <event>report_uReport</event>
+ <event>collect_*</event>
+ <event>report_RockyBugTracker</event>
+ </events>
+</workflow>
diff --git a/src/workflows/workflow_RockyPython3.xml.in b/src/workflows/workflow_RockyPython3.xml.in
new file mode 100644
index 00000000..3764be91
--- /dev/null
+++ b/src/workflows/workflow_RockyPython3.xml.in
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<workflow>
+ <_name>Report to the Rocky Linux Bug Tracker</_name>
+ <_description>Process the python 3 exception using the Rocky infrastructure</_description>
+
+ <events>
+ <event>report_uReport</event>
+ <event>collect_*</event>
+ <event>report_RockyBugTracker</event>
+ </events>
+</workflow>
diff --git a/src/workflows/workflow_RockyVmcore.xml.in b/src/workflows/workflow_RockyVmcore.xml.in
new file mode 100644
index 00000000..5142bf17
--- /dev/null
+++ b/src/workflows/workflow_RockyVmcore.xml.in
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<workflow>
+ <_name>Report to the Rocky Linux Bug Tracker</_name>
+ <_description>Process the kernel crash using the Rocky infrastructure</_description>
+
+ <events>
+ <event>analyze_VMcore</event>
+ <event>report_uReport</event>
+ <event>collect_*</event>
+ <event>report_RockyBugTracker</event>
+ </events>
+</workflow>
diff --git a/src/workflows/workflow_RockyXorg.xml.in b/src/workflows/workflow_RockyXorg.xml.in
new file mode 100644
index 00000000..b0b254f9
--- /dev/null
+++ b/src/workflows/workflow_RockyXorg.xml.in
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<workflow>
+ <_name>Report to the Rocky Linux Bug Tracker</_name>
+ <_description>Process the X Server problem using the Rocky infrastructure</_description>
+
+ <events>
+ <event>report_RockyBugTracker</event>
+ </events>
+</workflow>