I'm trying to build a package with buildrpm. My problem is that I have an intentionally vulnerable C program compiled when make
is run normally as an example for the primary code (a fuzzer) to be tested on with make check
. When I try to build the rpm however, even though these vulnerable programs are not installed (as they're just tests), rpmbuild -v -bb --clean SPECS/ansvif.spec
will still force it to compile it with -Werror=format-security
which makes the build fail. Is there a simple way around this -- beyond trying to rewrite the Makefile.am so that it's omitted with a certain flag passed by buildrpm if that's possible? I'm looking for a proper solution to this problem, instead of something hacky, if possible.
Source code is at https://github.com/oxagast/ansvif