gnu: openfoam: Adjust for glibc 2.28.

* gnu/packages/simulation.scm (openfoam)[source](modules, snippet): New
fields.
This commit is contained in:
Ludovic Courtès 2018-12-02 00:20:04 +01:00
parent 5deb0c670d
commit 886d833e39
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 10 additions and 1 deletions

View File

@ -70,7 +70,16 @@
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 "0cgxh4h2hf50qbvvdg5miwc2nympb0nrv3md96vb3gbs9vk8vq9d")) (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) (build-system gnu-build-system)
(inputs (inputs
`(("boost" ,boost) `(("boost" ,boost)