New upstream release 2.15.0
This commit is contained in:
parent
88895e18b5
commit
0302f37126
|
@ -75,3 +75,4 @@ abrt-1.1.13.tar.gz
|
|||
/abrt-2.14.4.tar.gz
|
||||
/abrt-2.14.5.tar.gz
|
||||
/abrt-2.14.6.tar.gz
|
||||
/abrt-2.15.0.tar.gz
|
||||
|
|
|
@ -1,57 +0,0 @@
|
|||
From 4755f2171aa50a72d8ec03260c8cbc602263a6c0 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
||||
Date: Fri, 24 Sep 2021 17:48:07 +0200
|
||||
Subject: [PATCH] Use lazy imports in abrt_exception_handler3
|
||||
|
||||
The abrt_exception_handler3 module is always imported when Python starts,
|
||||
but all the modules imported from it (except sys) are only used during crashes.
|
||||
|
||||
Especially the systemd.journal import is really expensive.
|
||||
|
||||
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2007664
|
||||
---
|
||||
src/hooks/abrt_exception_handler3.py.in | 9 +++++++--
|
||||
1 file changed, 7 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/hooks/abrt_exception_handler3.py.in b/src/hooks/abrt_exception_handler3.py.in
|
||||
index 89e2474b..0bc548e0 100644
|
||||
--- a/src/hooks/abrt_exception_handler3.py.in
|
||||
+++ b/src/hooks/abrt_exception_handler3.py.in
|
||||
@@ -20,13 +20,15 @@
|
||||
Module for the ABRT exception handling hook
|
||||
"""
|
||||
|
||||
+# Avoid importing anything but sys here, use lazy imports.
|
||||
+# This file is imported on every Python startup,
|
||||
+# all unused imports only increase the startup time and memory usage.
|
||||
import sys
|
||||
-import os
|
||||
|
||||
-from systemd import journal
|
||||
|
||||
def syslog(msg):
|
||||
"""Log message to system logger (journal)"""
|
||||
+ from systemd import journal
|
||||
|
||||
journal.send(msg)
|
||||
|
||||
@@ -68,6 +70,8 @@ def send(data):
|
||||
|
||||
|
||||
def write_dump(tb_text, tb):
|
||||
+ import os
|
||||
+
|
||||
if sys.argv[0][0] == "/":
|
||||
executable = os.path.abspath(sys.argv[0])
|
||||
else:
|
||||
@@ -118,6 +122,7 @@ def handle_exception(etype, value, tb):
|
||||
sys.excepthook = sys.__excepthook__ # pylint: disable-msg=E1101
|
||||
|
||||
import errno
|
||||
+ import os
|
||||
|
||||
# Ignore Ctrl-C
|
||||
# SystemExit rhbz#636913 -> this exception is not an error
|
||||
--
|
||||
2.31.1
|
||||
|
16
abrt.spec
16
abrt.spec
|
@ -48,8 +48,8 @@
|
|||
|
||||
Summary: Automatic bug detection and reporting tool
|
||||
Name: abrt
|
||||
Version: 2.14.6
|
||||
Release: 11%{?dist}
|
||||
Version: 2.15.0
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+
|
||||
URL: https://abrt.readthedocs.org/
|
||||
Source: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
|
@ -140,8 +140,6 @@ BuildRequires: python3-libreport
|
|||
BuildRequires: python3-devel
|
||||
%endif
|
||||
|
||||
Patch0: 0001-Use-lazy-imports-in-abrt_exception_handler3.patch
|
||||
|
||||
%description
|
||||
%{name} is a tool to help users to detect defects in applications and
|
||||
to create a bug report with all information needed by maintainer to fix it.
|
||||
|
@ -1009,6 +1007,16 @@ killall abrt-dbus >/dev/null 2>&1 || :
|
|||
%config(noreplace) %{_sysconfdir}/profile.d/abrt-console-notification.sh
|
||||
|
||||
%changelog
|
||||
* Mon Jan 17 2022 Matěj Grabovský <mgrabovs@redhat.com> - 2.15.0-1
|
||||
- Bump abrt library version to 1:0:1
|
||||
- cli: Fix path and glob matching for abrt info etc.
|
||||
- abrt-dump-oops: Fix vmcore call trace parsing
|
||||
- Use lazy imports in abrt_exception_handler3
|
||||
- Don't copy coredump to problem dir
|
||||
- Detect Python 3.10 and Perl correctly in abrt-action-save-package-data
|
||||
- Fix calls to deprecated methods in tests
|
||||
- Update translations
|
||||
|
||||
* Wed Jan 12 2022 Miro Hrončok <mhroncok@redhat.com> - 2.14.6-11
|
||||
- Make abrt-tui and python3-abrt-container-addon noarch as they contain no architecture-specific content
|
||||
- Ensure Python bytecode in noarch subpackages is reproducible
|
||||
|
|
2
sources
2
sources
|
@ -1 +1 @@
|
|||
SHA512 (abrt-2.14.6.tar.gz) = eb1ba2f624d51eeccd203bb23060493347f5a9142fad7d0570d46134071d870a9c66b4fbfb8210e7d6f87c0c039f31eb486d18a36b10fba318e2180aa09df9fe
|
||||
SHA512 (abrt-2.15.0.tar.gz) = 2d6c1287c1f01990aeb30f956f465c7a6399a6e53dc667602e263c136f94bc4090b58876acba678b29671c0db89ae8e7dd6994cf8d0d2d9fbc375f54ae6cd935
|
||||
|
|
Loading…
Reference in New Issue