Skip to content

Commit

Permalink
packaging: weaken the dependency of cscppc on cppcheck
Browse files Browse the repository at this point in the history
cscppc is linked statically and it can be used by csmock-plugin-cppcheck
even when cppcheck is not installed in the host environment.

Resolves: https://bugzilla.redhat.com/2325266
Closes: #45
  • Loading branch information
kdudka committed Nov 12, 2024
1 parent 1bbbfa0 commit acdb941
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion make-srpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,11 @@ BuildRequires: glibc-static
BuildRequires: valgrind
%endif
%if 0%{?rhel} != 7
# cscppc is linked statically and can be used by csmock in chroot environment
# the {cwe} field in --template option is supported since cppcheck-1.85
Requires: cppcheck >= 1.85
Recommends: cppcheck >= 1.85
%endif
# older versions of csdiff do not read CWE numbers from Cppcheck output
Conflicts: csdiff < 1.8.0
Expand Down

0 comments on commit acdb941

Please sign in to comment.