From d7bae1def53963a946d29019bcf05b0d0c987180 Mon Sep 17 00:00:00 2001 From: langfei Date: Tue, 20 Dec 2022 08:16:52 +0000 Subject: [PATCH] Resolve stap-exporter.service chenge to disable when upgraded systemtap-stap-exporter package Signed-off-by: langfei --- systemtap.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/systemtap.spec b/systemtap.spec index 1078e3b..836f466 100644 --- a/systemtap.spec +++ b/systemtap.spec @@ -22,7 +22,7 @@ Name: systemtap Version: 4.5 -Release: 3 +Release: 4 Summary: Linux trace and probe tool License: GPLv2+ and Public Domain URL: http://sourceware.org/systemtap @@ -326,8 +326,11 @@ fi exit 0 %preun stap-exporter +if [ "$1" -eq "0" ] ; then /bin/systemctl stop stap-exporter.service >/dev/null 2>&1 || : /bin/systemctl disable stap-exporter.service >/dev/null 2>&1 || : +fi +exit 0 %post /bin/systemctl enable systemtap.service >/dev/null 2>&1 || : @@ -453,6 +456,12 @@ exit 0 %{_mandir}/man[1378]/* %changelog +* Mon Dec 5 2022 langfei - 4.5-4 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:Resolve stap-exporter.service chenge to disable when upgraded systemtap-stap-exporter package + * Fri Apr 8 2022 zhouwenpei - 4.5-3 - Add int type cast to resolve gcc issue for option Wformat=2