gnu: libarcus: Fix compatibility with newer protobuf.

* gnu/packages/engineering.scm (libarcus)[arguments]: Add
  'fix-protobuf-compatibility' phase.
This commit is contained in:
Guillaume Le Vaillant 2022-11-18 15:00:27 +01:00
parent 8cbd51d2d5
commit 383b0f0590
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -3431,6 +3431,11 @@ (define-public libarcus
#:configure-flags '("-DBUILD_EXAMPLES=OFF")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-protobuf-compatibility
(lambda _
(substitute* "src/Socket_p.h"
(("stream\\.SetTotalBytesLimit\\(message_size_maximum,.*\\);")
"stream.SetTotalBytesLimit(message_size_maximum);"))))
(add-before 'configure 'fix-python-sitearch
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "cmake/FindSIP.cmake"