gnu: encfs: Fix build failure with GCC 7.

Fixes <https://bugs.gnu.org/37779>.
Reported by Pierre Neidhardt <mail@ambrevar.xyz>.

* gnu/packages/crypto.scm (encfs)[arguments]: Add phase 'patch-CMakeLists.txt'.
This commit is contained in:
Marius Bakke 2019-10-18 14:18:21 +02:00
parent 4ad2c9db7d
commit 1df9245586
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA

View File

@ -211,6 +211,15 @@ OpenBSD tool of the same name.")
(copy-recursively (assoc-ref inputs "googletest-source")
"vendor/github.com/google/googletest")
#t))
(add-before 'configure 'patch-CMakeLists.txt
(lambda _
;; Prevent CMake from adding libc on the system include path.
;; Otherwise it will interfere with the libc used by GCC and
;; ultimately cause #include_next errors.
(substitute* "CMakeLists.txt"
(("include_directories \\(SYSTEM \\$\\{Intl_INCLUDE_DIRS\\}\\)")
""))
#t))
(add-before 'check 'make-unittests
(lambda _
(invoke "make" "unittests"))))))