I think I understood what happened.
First, there was an RFC https://gitlab.archlinux.org/archlinux/rfcs/-/blob/master/rfcs/0003-buildflags.rst to change the default flags in makepkg.conf
It was implemented in the pacman package itself in this commit: https://github.com/archlinux/svntogit-packages/commit/a790c389cb0fd2ddd35e1f581ee337f6891801fc#diff-8da5d04d27b7ace195751c5e1e5e52c0bbd59e1ec3fd89d656496cc1d272d4b0
Finally, the_foundation also sets some warning flags, and crucially, -Werror, which causes the build to fail because the warning flags are not compatible with each other.
jarek: good point about CMAKE_BUILD_TYPE, but I'm not sure it fixes the issue - I'll take a look.
Pinned Comments
Roshless commented on 2020-11-04 08:20 (UTC) (edited on 2022-08-23 13:45 (UTC) by Roshless)
Instead of flagging this package out of date please send patches to repo using mailing list linked in index.md.
Tutorial: https://git-send-email.io/