From 1df9245586939e5a359f8c486662642d9d5998b5 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Fri, 18 Oct 2019 14:18:21 +0200 Subject: [PATCH] gnu: encfs: Fix build failure with GCC 7. Fixes . Reported by Pierre Neidhardt . * gnu/packages/crypto.scm (encfs)[arguments]: Add phase 'patch-CMakeLists.txt'. --- gnu/packages/crypto.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index e8cf8157d5..a8f60f1665 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -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"))))))