From da5db2aa83d7cab487242cf4e7f2f5dbc07f66f8 Mon Sep 17 00:00:00 2001 From: Jerome Marchand Date: Fri, 19 Nov 2021 17:18:38 +0100 Subject: [PATCH] Fix rpminspect annocheck failure The rpminspect annocheck tool detected that plugins are not compiled with the proper flags. For some reason, CFLAGS is ignored when building plugins, but not EXTRA_CFLAGS. This is needed for gating. Related: rhbz#1978504 Signed-off-by: Jerome Marchand --- libtraceevent.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libtraceevent.spec b/libtraceevent.spec index d05a9ff..4de3c4e 100644 --- a/libtraceevent.spec +++ b/libtraceevent.spec @@ -5,7 +5,7 @@ Name: libtraceevent Version: 1.1.1 -Release: 6%{?dist} +Release: 7%{?dist} License: LGPLv2+ and GPLv2+ Summary: Library to parse raw trace event formats @@ -42,6 +42,8 @@ Development headers of %{name}-libs %build MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl` %set_build_flags +#looks like CFLAGS is ignored when compiling plugins, but not EXTRA_CFLAGS +export EXTRA_CFLAGS="%{optflags}" %make_build prefix=%{_prefix} libdir=%{_libdir} MANPAGE_XSL=%{MANPAGE_DOCBOOK_XSL} all doc %install @@ -65,6 +67,9 @@ rm -rf %{buildroot}/%{_libdir}/libtraceevent.a %{_libdir}/pkgconfig/libtraceevent.pc %changelog +* Fri Nov 19 2021 Jerome Marchand - 1.1.1-7 +- Fix rpminspect annocheck issue. + * Tue Oct 26 2021 Jerome Marchand - 1.1.1-6 - Handle parsing of "(REC)->" case