gnu: abseil-cpp-20200923.3: Fix build failure.

* gnu/packages/cpp.scm (abseil-cpp-20200923.3)[arguments]: Add phase 'fix-max
to add a missing type cast.
This commit is contained in:
Ricardo Wurmus 2023-04-11 18:24:09 +02:00
parent a3bfb86738
commit 3ff587f8b0
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1048,6 +1048,11 @@ (define-public abseil-cpp-20200923.3
"-DCMAKE_EXE_LINKER_FLAGS=-lgtest -lpthread -lgmock") "-DCMAKE_EXE_LINKER_FLAGS=-lgtest -lpthread -lgmock")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'fix-max
(lambda _
(substitute* "absl/debugging/failure_signal_handler.cc"
(("std::max\\(SIGSTKSZ, 65536\\)")
"std::max<size_t>(SIGSTKSZ, 65536)"))))
(add-before 'configure 'remove-gtest-check (add-before 'configure 'remove-gtest-check
;; The CMakeLists fails to find our googletest for some reason, but ;; The CMakeLists fails to find our googletest for some reason, but
;; it works nonetheless. ;; it works nonetheless.