From 7d3013d8f3788c4b6c87ab5cb67b7117fcd65696 Mon Sep 17 00:00:00 2001 From: shen-chenbang <1944340417@qq.com> Date: Wed, 25 Sep 2024 14:03:12 +0800 Subject: [PATCH] support clang --- 0001-Increase-more-standard-writing.patch | 25 +++++++++++++++++++++++ satyr.spec | 9 +++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 0001-Increase-more-standard-writing.patch diff --git a/0001-Increase-more-standard-writing.patch b/0001-Increase-more-standard-writing.patch new file mode 100644 index 0000000..714b6b9 --- /dev/null +++ b/0001-Increase-more-standard-writing.patch @@ -0,0 +1,25 @@ +From f801d969296b35034f15ff8ac51e2a7b817e71e4 Mon Sep 17 00:00:00 2001 +From: shen-chenbang <1944340417@qq.com> +Date: Wed, 25 Sep 2024 14:00:19 +0800 +Subject: [PATCH] Increase more standard writing + +--- + tests/dump_core.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/dump_core.c b/tests/dump_core.c +index 82314e1..001de57 100644 +--- a/tests/dump_core.c ++++ b/tests/dump_core.c +@@ -15,7 +15,7 @@ + + static char const *prefix = "/tmp/satyr.core"; + +-#if __clang__ ++#if defined(__clang__) + __attribute__((optnone)) + #else + __attribute__((optimize((0)))) +-- +2.45.2.windows.1 + diff --git a/satyr.spec b/satyr.spec index 36007fd..c5dc793 100644 --- a/satyr.spec +++ b/satyr.spec @@ -2,18 +2,21 @@ Name: satyr Version: 0.43 -Release: 1 +Release: 2 Summary: Tools to create anonymous, machine-friendly problem reports License: GPLv2+ URL: https://github.com/abrt/satyr Source0: https://github.com/abrt/%{name}/archive/%{version}.tar.gz +Patch1:0001-Increase-more-standard-writing.patch + Requires: json-c nettle glib2 >= 2.43.4 BuildRequires: elfutils-devel elfutils-libelf-devel binutils-devel rpm-devel BuildRequires: doxygen pkgconfig automake gcc-c++ git libtool BuildRequires: pkgconfig(json-c) nettle nettle-devel gperf glib2-devel # we should require gdb for test suite BuildRequires: gdb +BuildRequires: rpmdevtools %if %{with_python3} BuildRequires: python3-devel python3-sphinx @@ -61,6 +64,7 @@ python3 for satyr %define __scm_apply_git(qp:m:) %{__git} am %autosetup -n %{name}-%{version} -p1 sed -i 's/dist_doc_DATA = README.md//' Makefile.am +./autogen.sh sysdeps --install bash autogen.sh %build @@ -103,6 +107,9 @@ make check|| { %{_mandir}/* %changelog +* Tue Aug 27 2024 shenchenbang <1944340417@qq.com> - 1.29.0-2 +- Fix Increase more standard writing + * Fri Mar 01 2024 wangqia - 0.43-1 - update to 0.43 -- Gitee