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 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.


Home | Main Index | Thread Index | Old Index