diff options
author | Ludovic Courtès <ludo@gnu.org> | 2018-12-02 00:20:04 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2018-12-02 00:20:04 +0100 |
commit | 886d833e39fe5a193abaf486e64d8f35ac491b27 (patch) | |
tree | b4c629542e817b1ef3bd465f8c2d7f65aa54500b /gnu/packages | |
parent | 5deb0c670de30689b7019f00f7b67af84f6056d3 (diff) | |
download | patches-886d833e39fe5a193abaf486e64d8f35ac491b27.tar patches-886d833e39fe5a193abaf486e64d8f35ac491b27.tar.gz |
gnu: openfoam: Adjust for glibc 2.28.
* gnu/packages/simulation.scm (openfoam)[source](modules, snippet): New
fields.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/simulation.scm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index 6144e236a7..c080a16ce7 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -70,7 +70,16 @@ (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0cgxh4h2hf50qbvvdg5miwc2nympb0nrv3md96vb3gbs9vk8vq9d")) - (patches (search-patches "openfoam-4.1-cleanup.patch")))) + (patches (search-patches "openfoam-4.1-cleanup.patch")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Include <sys/sysmacros.h>, which is where glibc >= 2.28 provides + ;; 'major' and 'minor'. + (substitute* "src/OSspecific/POSIX/fileStat.C" + (("#include <unistd\\.h>") + "#include <unistd.h>\n#include <sys/sysmacros.h>\n")) + #t)))) (build-system gnu-build-system) (inputs `(("boost" ,boost) |