diff --git a/.gitignore b/.gitignore index bdf5bc2..7db6bc0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -SOURCES/sos-4.8.1.tar.gz +SOURCES/sos-4.8.2.tar.gz SOURCES/sos-audit-0.3.tgz diff --git a/.sos.metadata b/.sos.metadata index 266190d..02446cd 100644 --- a/.sos.metadata +++ b/.sos.metadata @@ -1,2 +1,2 @@ -26aee6ec0ad73c12a4ad0cf50c02082777d654cc SOURCES/sos-4.8.1.tar.gz +ac691982f309879317709ce8c9cfa2c07631b89f SOURCES/sos-4.8.2.tar.gz 9d478b9f0085da9178af103078bbf2fd77b0175a SOURCES/sos-audit-0.3.tgz diff --git a/SOURCES/sos-python36-walrus-operator.patch b/SOURCES/sos-python36-walrus-operator.patch new file mode 100644 index 0000000..6ebe35c --- /dev/null +++ b/SOURCES/sos-python36-walrus-operator.patch @@ -0,0 +1,25 @@ +--- a/sos/report/plugins/coredump.py ++++ b/sos/report/plugins/coredump.py +@@ -72,8 +72,8 @@ + cdump = line.split() + pid = cdump[4] + exe = cdump[-2] +- if regex := self.get_option("executable"): +- if not re.search(regex, exe, re.I): ++ if self.get_option("executable"): ++ if not re.search(self.get_option("executable"), exe, re.I): + continue + cinfo = self.collect_cmd_output(f"coredumpctl info {pid}") + if cinfo['status'] != 0: +--- a/sos/collector/sosnode.py ++++ b/sos/collector/sosnode.py +@@ -372,7 +372,8 @@ + for line in result.splitlines(): + if not is_list: + try: +- if ls := line.split(): ++ ls = line.split() ++ if ls: + res.append(ls[0]) + except Exception as err: + self.log_debug(f"Error parsing sos help: {err}") diff --git a/SPECS/sos.spec b/SPECS/sos.spec index d3b35f2..56187da 100644 --- a/SPECS/sos.spec +++ b/SPECS/sos.spec @@ -4,7 +4,7 @@ Summary: A set of tools to gather troubleshooting information from a system Name: sos -Version: 4.8.1 +Version: 4.8.2 Release: 1%{?dist} Group: Applications/System Source0: https://github.com/sosreport/sos/archive/%{version}/sos-%{version}.tar.gz @@ -22,6 +22,7 @@ Recommends: python3-pexpect Recommends: python3-pyyaml Conflicts: vdsm < 4.40 Obsoletes: sos-collector +Patch1: sos-python36-walrus-operator.patch %description Sos is a set of tools that gathers information about system @@ -32,6 +33,7 @@ support technicians and developers. %prep %setup -qn %{name}-%{version} %setup -T -D -a1 -q +%patch -P 1 -p1 %build %py3_build @@ -104,6 +106,10 @@ of the system. Currently storage and filesystem commands are audited. %ghost /etc/audit/rules.d/40-sos-storage.rules %changelog +* Tue Jan 07 2025 Jan Jansky = 4.8.2-1 +- Update to 4.8.2 in RHEL 8 + Resolves: RHEL-72941 + * Wed Oct 23 2024 Jan Jansky = 4.8.1-1 - Update to 4.8.1 in RHEL 8 Resolves: RHEL-64160