A compiler activated while installing dependencies does not survive in
the caller's shell, so make rpm could fall back to one that can't
compile mergerfs. Route the RPM build through buildtools/run-rpmbuild,
which keeps an explicit compiler and otherwise activates an installed
GCC Toolset when the default can't handle C++20. RPMBUILD and
RPMBUILD_FLAGS override the rpmbuild command.
Rocky 8's toolsets lack the annobin plugin the distribution's RPM
flags load. Test the effective compiler with the RPM flags and pass
--undefine _annotated_build only when that fails, instead of guessing
from the compiler's path in build-mergerfs. Native and container
builds use the same check.
- install-build-pkgs runs as root and handed its compiler choice to
build-mergerfs through /tmp/build-env, which another user could
create before root writes it. Use /etc/mergerfs-build-env, written
to a temporary name, made mode 0644 and renamed into place, so a
normal user can source it regardless of root's umask and never reads
it half written.
- The C++20 probe compiles in a private temporary directory instead of
at fixed names in /tmp.
- yum hosts also consider an already installed devtoolset, which "yum
list available" omits.
- Document sourcing the handoff file before make deb.
Important changes:
- Switch mergerfs and vendored libfuse Makefiles to -std=c++20.
- Select the latest available GCC/G++ or toolset in container builds.
- Verify compiler C++20 support during package installation.
- Fix dynamic SysLog formatting for fmt C++20 checks.