gnu: criu: Fix build with GCC 7.
* gnu/packages/virtualization.scm (criu)[arguments]: Do not read from C_INCLUDE_PATH, but add LINUX-LIBRE-HEADERS on it.
This commit is contained in:
parent
97149c5767
commit
a46cf184fe
|
@ -694,8 +694,14 @@ domains, their live performance and resource utilization statistics.")
|
||||||
;; The includes for libnl are located in a sub-directory.
|
;; The includes for libnl are located in a sub-directory.
|
||||||
(setenv "C_INCLUDE_PATH"
|
(setenv "C_INCLUDE_PATH"
|
||||||
(string-append (assoc-ref inputs "libnl")
|
(string-append (assoc-ref inputs "libnl")
|
||||||
"/include/libnl3:"
|
"/include/libnl3"
|
||||||
(getenv "C_INCLUDE_PATH")))
|
;; Also add the kernel headers here so that GCC
|
||||||
|
;; treats them as "system headers". Otherwise
|
||||||
|
;; the build fails with -Werror because parasite.c
|
||||||
|
;; includes both <linux/fs.h> and <sys/mount.h>,
|
||||||
|
;; which define some of the same constants.
|
||||||
|
(assoc-ref inputs "kernel-headers")
|
||||||
|
"/include"))
|
||||||
;; Prevent xmlto from failing the install phase.
|
;; Prevent xmlto from failing the install phase.
|
||||||
(substitute* "Documentation/Makefile"
|
(substitute* "Documentation/Makefile"
|
||||||
(("XMLTO.*:=.*")
|
(("XMLTO.*:=.*")
|
||||||
|
|
Loading…
Reference in New Issue