mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
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:
parent
4ad2c9db7d
commit
1df9245586
1 changed files with 9 additions and 0 deletions
|
@ -211,6 +211,15 @@ (define-public encfs
|
||||||
(copy-recursively (assoc-ref inputs "googletest-source")
|
(copy-recursively (assoc-ref inputs "googletest-source")
|
||||||
"vendor/github.com/google/googletest")
|
"vendor/github.com/google/googletest")
|
||||||
#t))
|
#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
|
(add-before 'check 'make-unittests
|
||||||
(lambda _
|
(lambda _
|
||||||
(invoke "make" "unittests"))))))
|
(invoke "make" "unittests"))))))
|
||||||
|
|
Loading…
Reference in a new issue