Fix abrt-xorg.service and abrt-oops.service starts failed

This commit is contained in:
lei_ju 2020-09-01 10:05:52 +08:00
parent f8dda4bfbc
commit 85a14bc667
2 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,35 @@
From 7aa045f5ec0289d8f22349a6c00a2dba926d47fb Mon Sep 17 00:00:00 2001
From: lei_ju <lj3074194431@163.com>
Date: Tue, 1 Sep 2020 09:42:46 +0800
Subject: [PATCH] Fix abrt-xorg and abrt-oops service starts failed
diff --git a/init-scripts/abrt-oops.service b/init-scripts/abrt-oops.service
index 69aaaa9..7cbb0eb 100644
--- a/init-scripts/abrt-oops.service
+++ b/init-scripts/abrt-oops.service
@@ -1,7 +1,7 @@
[Unit]
Description=ABRT kernel log watcher
After=abrtd.service
-Requisite=abrtd.service
+Requires=abrtd.service
[Service]
# systemd requires absolute paths to executables
diff --git a/init-scripts/abrt-xorg.service b/init-scripts/abrt-xorg.service
index 2719257..a27d7a9 100644
--- a/init-scripts/abrt-xorg.service
+++ b/init-scripts/abrt-xorg.service
@@ -1,7 +1,7 @@
[Unit]
Description=ABRT Xorg log watcher
After=abrtd.service
-Requisite=abrtd.service
+Requires=abrtd.service
[Service]
# systemd requires absolute paths to executables
--
2.23.0

View File

@ -1,11 +1,12 @@
Name: abrt Name: abrt
Version: 2.13.0 Version: 2.13.0
Release: 7 Release: 8
Summary: A tool for automatic bug detection and reporting Summary: A tool for automatic bug detection and reporting
License: GPLv2+ License: GPLv2+
URL: https://abrt.readthedocs.org/ URL: https://abrt.readthedocs.org/
Source: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz Source: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
Patch0001: 0001-python-Use-correct-paths-for-installed-modules.patch Patch0001: 0001-python-Use-correct-paths-for-installed-modules.patch
Patch0002: 0001-Fix-abrt-xorg-and-abrt-oops-service-starts-failed.patch
BuildRequires: git-core dbus-devel hostname gtk3-devel glib2-devel >= 2.43.4 rpm-devel >= 4.6 BuildRequires: git-core dbus-devel hostname gtk3-devel glib2-devel >= 2.43.4 rpm-devel >= 4.6
BuildRequires: desktop-file-utils libnotify-devel gettext libxml2-devel intltool libtool BuildRequires: desktop-file-utils libnotify-devel gettext libxml2-devel intltool libtool
@ -574,6 +575,9 @@ killall abrt-dbus >/dev/null 2>&1 || :
%{_mandir}/man*/* %{_mandir}/man*/*
%changelog %changelog
* Tue Sep 1 2020 leiju <leiju4@huawei.com> - 2.13.0-8
- fix abrt-xorg.service and abrt-oops.service starts failed
* Tue Aug 18 2020 lingsheng <lingsheng@huawei.com> - 2.13.0-7 * Tue Aug 18 2020 lingsheng <lingsheng@huawei.com> - 2.13.0-7
- fix build error caused by automake update - fix build error caused by automake update