diff options
author | Boris A. Dekshteyn <boris.dekshteyn@gmail.com> | 2020-05-10 22:23:18 +1200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2020-05-10 23:05:12 +0200 |
commit | 72099cb0f20e87807f29b5a11a584ab7c66297ef (patch) | |
tree | 51801ab217fb7b95d5eaeb079aaee1da2a855e4e /gnu/packages | |
parent | 38b46a3e32c6827bc7255a9027c9e77d3becdff0 (diff) | |
download | guix-patches-72099cb0f20e87807f29b5a11a584ab7c66297ef.tar guix-patches-72099cb0f20e87807f29b5a11a584ab7c66297ef.tar.gz |
gnu: freecad: Fix build with python-3.8
* gnu/packages/engineering.scm (freecad)[source](modules, snippet): New fields.
Signed-off-by: Marius Bakke <mbakke@fastmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/engineering.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 15101e3aee..5674c68645 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -2312,6 +2312,15 @@ full programmatic control over your models.") (uri (git-reference (url "https://github.com/FreeCAD/FreeCAD.git") (commit version))) + (modules '((guix build utils))) + (snippet + '(begin + ;; Fix build with Python 3.8, see + ;; <https://tracker.freecadweb.org/view.php?id=4143>. + (substitute* "src/Base/swigpyrun.inl" + (("PyObject \\*modules = interp->modules;") + "PyObject *modules = PyEval_GetBuiltins();")) + #t)) (file-name (git-file-name name version)) (sha256 (base32 |