[Bug 265425] [exp-run] Against llvm-15-update branch on GitHub

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 08 Aug 2022 17:58:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265425

--- Comment #15 from Dimitry Andric <dim@FreeBSD.org> ---
(In reply to Brooks Davis from comment #14)
Yes, our ports only sporadically use USE_CSTD=, and that is a pity since
compilers tend to change their defaults every few years while lots of software
stays the same. :)

That said, it's not always as easy as "just set USE_CSTD=gnu89". For instance,
one of the "top 5" ports Antoine mentions in comment 8 is devel/jam, which is a
prehistoric version of boost-build's bjam. This does not respect CFLAGS at all,
so options inserted by USE_CSTD are completely ignored. Also, since it is a
build tool, after its bootstrap phase it uses its *own* build logic (i.e.
jamfiles), which again have to be patched manually...

In any case, it might be possible to grep through the failure logs and identify
ports that fail due to K&R prototype warnings, then set those to USE_CSTD=gnu89
(or some other old version). But you'd still have to attempt to build them
before committing. All in all quite a bit of work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.