guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch core-updates-frozen updated: gnu: kicad: Fix build.


From: guix-commits
Subject: branch core-updates-frozen updated: gnu: kicad: Fix build.
Date: Sat, 11 Sep 2021 07:55:19 -0400

This is an automated email from the git hooks/post-receive script.

glv pushed a commit to branch core-updates-frozen
in repository guix.

The following commit(s) were added to refs/heads/core-updates-frozen by this 
push:
     new 0321c09  gnu: kicad: Fix build.
0321c09 is described below

commit 0321c098d3d57ae4f046a131a5e9610e3495f843
Author: Guillaume Le Vaillant <glv@posteo.net>
AuthorDate: Sat Sep 11 13:50:38 2021 +0200

    gnu: kicad: Fix build.
    
    * gnu/packages/engineering.scm (kicad)[arguments]: Add 
'fix-python-detection'
      and 'add-missing-include' phases.
---
 gnu/packages/engineering.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 8a1ee88..8e9fee6 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -929,6 +929,16 @@ Emacs).")
                 (string-append "NGSPICE_DLL_FILE=\""
                                (assoc-ref inputs "libngspice")
                                "/lib/libngspice.so\"")))))
+         (add-after 'unpack 'fix-python-detection
+           (lambda _
+             (substitute* "CMakeModules/FindPythonLibs.cmake"
+               (("_PYTHON3_VERSIONS 3\\.8 3\\.7")
+                "_PYTHON3_VERSIONS 3.9 3.8 3.7"))))
+         (add-after 'unpack 'add-missing-include
+           (lambda _
+             (substitute* "common/lib_tree_model.cpp"
+               (("#include <eda_pattern_match.h>" all)
+                (string-append "#include <algorithm>\n" all)))))
          (add-after 'install 'install-translations
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (copy-recursively (assoc-ref inputs "kicad-i18n")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]