From be1dd7fad2ddd20c0c0eab8ff3c3c684cb4b8b7d Mon Sep 17 00:00:00 2001 From: luofeng14 Date: Thu, 22 Feb 2024 13:43:41 +0000 Subject: [PATCH] support clang build Signed-off-by: luofeng14 --- huawei-support-clang-build.patch | 25 +++++++++++++++++++++++++ sysstat.spec | 9 ++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 huawei-support-clang-build.patch diff --git a/huawei-support-clang-build.patch b/huawei-support-clang-build.patch new file mode 100644 index 0000000..fc2ce38 --- /dev/null +++ b/huawei-support-clang-build.patch @@ -0,0 +1,25 @@ +From 123109882e9e7354dd383d219b30b629907ef9dc Mon Sep 17 00:00:00 2001 +From: luofeng +Date: Fri, 10 Nov 2023 10:10:56 +0800 +Subject: [PATCH] support clang build + +--- + rd_stats.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/rd_stats.c b/rd_stats.c +index 245dc74..fa9248f 100644 +--- a/rd_stats.c ++++ b/rd_stats.c +@@ -906,7 +906,7 @@ __nr_t read_tty_driver_serial(struct stats_serial *st_serial, __nr_t nr_alloc) + + if ((fp = fopen(TTYAMA, "r")) == NULL) { + if ((fp = fopen(SERIAL, "r")) == NULL) { +- return; ++ return 0; + } + } + +-- +2.19.1 + diff --git a/sysstat.spec b/sysstat.spec index 55be111..bda37c1 100644 --- a/sysstat.spec +++ b/sysstat.spec @@ -1,6 +1,6 @@ Name: sysstat Version: 12.7.4 -Release: 2 +Release: 3 Summary: System performance tools for the Linux operating system License: GPLv2+ URL: http://sebastien.godard.pagesperso-orange.fr/ @@ -14,6 +14,7 @@ Requires(preun): systemd Requires(postun): systemd Patch9000: bugfix-sysstat-10.1.5-read-ttyAMA-first-for-arm64.patch +Patch9001: huawei-support-clang-build.patch %description The sysstat package contains various utilities, common to many commercial @@ -88,6 +89,12 @@ fi %{_mandir}/man*/* %changelog +* Fri Feb 22 2024 luofeng - 12.7.4-3 +- Type:enhencement +- CVE:NA +- SUG:NA +- DESC:support clang build + * Wed Jan 10 2024 zhouwenpei - 12.7.4-2 - fix upgrade problem that sysstat.service changes from disable to enable -- Gitee