tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Running bulk builds for finding bugs in packages



On Sun, Jun 07, 2020 at 11:40:21PM +0200, Roland Illig wrote:
> On 07.06.2020 22:11, Joerg Sonnenberger wrote:
> > On Sun, Jun 07, 2020 at 03:38:01AM +0000, David Holland wrote:
> > > (The proximate cause was: you can't/couldn't readily inject -Werror
> > > into only the build phase, and if you inject it into the configure
> > > phase it causes rapidly fatal problems for undefined gibberish spewed
> > > by autoconf.)
> > 
> > It's much easier to do that now with cwrappers, just appending a line to
> > the config files is enough.
> 
> Do you mean something like this in mk.conf?
> 
> pre-build-checks-hook: add-custom-build-cflags
> 
> add-custom-build-cflags: .PHONY
> 	${RUN} ${ECHO} 'append=-Werror' \
> 		>>${CWRAPPERS_CONFIG_DIR}/cc
> 
> That's indeed pretty simple, feels a bit like a hack (since it's not
> easy to choose the "best" hook among those in mk/build/build.mk) but
> works perfectly.

In principle, yes. Careful about using append, clang at least will honor
-Werror over all local flags to disable flags.

Joerg


Home | Main Index | Thread Index | Old Index