From 832e7bada5f55c0ecb6156d30d6f9d3be6d7e1db Mon Sep 17 00:00:00 2001 From: shen-chenbang <1944340417@qq.com> Date: Sun, 15 Sep 2024 23:26:17 +0800 Subject: [PATCH 1/2] support clang --- bugfix-sysstat-10.1.5-read-ttyAMA-first-for-arm64.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bugfix-sysstat-10.1.5-read-ttyAMA-first-for-arm64.patch b/bugfix-sysstat-10.1.5-read-ttyAMA-first-for-arm64.patch index 87eee5f..ffbfc2f 100644 --- a/bugfix-sysstat-10.1.5-read-ttyAMA-first-for-arm64.patch +++ b/bugfix-sysstat-10.1.5-read-ttyAMA-first-for-arm64.patch @@ -41,7 +41,7 @@ index 68e2799..8ccfec4 100644 - return 0; + if ((fp = fopen(TTYAMA, "r")) == NULL) { + if ((fp = fopen(SERIAL, "r")) == NULL) { -+ return; ++ return 0; + } + } -- Gitee From c40844086f5067f49c0782006c83d7a96627cf47 Mon Sep 17 00:00:00 2001 From: shen-chenbang <1944340417@qq.com> Date: Sun, 15 Sep 2024 23:34:38 +0800 Subject: [PATCH 2/2] support clang --- sysstat.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sysstat.spec b/sysstat.spec index 1f4b135..cb3de3f 100644 --- a/sysstat.spec +++ b/sysstat.spec @@ -1,6 +1,6 @@ Name: sysstat Version: 12.7.6 -Release: 1 +Release: 2 Summary: System performance tools for the Linux operating system License: GPLv2+ URL: http://sebastien.godard.pagesperso-orange.fr/ @@ -88,6 +88,9 @@ fi %{_mandir}/man*/* %changelog +* Tue Aug 27 2024 shenchenbang <1944340417@qq.com> - 12.7.6-2 +- Fix incorrect patch + * Thu Aug 15 2024 maqi - 12.7.6-1 - update to 12.7.6 -- Gitee