compute/detail/sha1.hpp fails to compile with boost 1.86

Description:

There is an upstream bug wherein any package which includes the compute/detail/sha1.hpp header from boost 1.86 fails to compile, due to an error in the boost library itself. There have been a pair of PRs (#1, #2) merged into boost to resolve this, but according to the Github issue, it seems that boost's maintainers do not consider this to be a significant enough issue to release a new version of boost. In the meantime, any package on Arch which depends on boost's compute/detail/sha1.hpp fails to compile, since Arch has updated its repositories to 1.86. Here are a couple of packages in the AUR suffering from this: (#1, #2) though this also impacts any packages built from source outside the AUR. There is no possible workaround in packages that require this header, other than removing all usages of it or installing a patched version of boost.

Additional info:

Steps to reproduce:

  1. Attempt to compile a package which includes the compute/detail/sha1.hpp header anywhere, for example https://aur.archlinux.org/packages/vapoursynth-plugin-eedi3m-git
  2. Note that the compilation will pass against Arch's prior version of boost, 1.83.0, but fail against the latest version of boost, 1.86.0, with the error noted in the upstream bug report, and that the error is within boost itself and not within the package we are compiling.
Edited by Joshua Holmer