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 <jmarchan@redhat.com>
This commit is contained in:
Jerome Marchand 2021-11-19 17:18:38 +01:00
parent 7869a7598a
commit da5db2aa83
1 changed files with 6 additions and 1 deletions

View File

@ -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 <jmarchan@redhat.com> - 1.1.1-7
- Fix rpminspect annocheck issue.
* Tue Oct 26 2021 Jerome Marchand <jmarchan@redhat.com> - 1.1.1-6
- Handle parsing of "(REC)->" case