summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorBoris A. Dekshteyn <boris.dekshteyn@gmail.com>2020-05-10 22:23:18 +1200
committerMarius Bakke <mbakke@fastmail.com>2020-05-10 23:05:12 +0200
commit72099cb0f20e87807f29b5a11a584ab7c66297ef (patch)
tree51801ab217fb7b95d5eaeb079aaee1da2a855e4e /gnu
parent38b46a3e32c6827bc7255a9027c9e77d3becdff0 (diff)
downloadguix-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')
-rw-r--r--gnu/packages/engineering.scm9
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