all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#45059] [PATCH] gnu: freecad: Fix compilation flags
@ 2020-12-05 23:51 Ekaitz Zarraga
  2020-12-05 23:58 ` [bug#45059] [PATCH 2/2] gnu: freecad: Update to 0.18.5 Ekaitz Zarraga
  2020-12-06 21:29 ` bug#45059: [PATCH] gnu: freecad: Fix compilation flags Marius Bakke
  0 siblings, 2 replies; 3+ messages in thread
From: Ekaitz Zarraga @ 2020-12-05 23:51 UTC (permalink / raw)
  To: 45059, 43448

Hi everyone,

I managed to solve the longstanding issue with freecad's compilation (#43448).

I'll submit a new change with the package update to 0.18.5 next.

Thanks



From d4d8a65679406b212c68d5198f239bdd71395541 Mon Sep 17 00:00:00 2001
From: Ekaitz Zarraga <ekaitz@elenq.tech>
Date: Sun, 6 Dec 2020 00:43:36 +0100
Subject: [PATCH] gnu: freecad: Fix compilation flags

    * gnu/packages/engineering.scm (freecad)[arguments]: Set correct
    search paths in compilation flags. Fixes #43448
---
 gnu/packages/engineering.scm | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 558541dd5a..5a8977c940 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -2496,8 +2496,28 @@ full programmatic control over your models.")
        #:configure-flags
        (list
         "-DBUILD_QT5=ON"
-        (string-append "-DCMAKE_INSTALL_LIBDIR="
-                       (assoc-ref %outputs "out") "/lib"))
+        (string-append "-DCMAKE_INSTALL_LIBDIR=" (assoc-ref %outputs "out") "/lib")
+
+        (string-append "-DPYSIDE2UICBINARY="
+                       (assoc-ref %build-inputs "python-pyside-2-tools")
+                       "/bin/uic")
+        (string-append "-DPYSIDE2RCCBINARY="
+                       (assoc-ref %build-inputs "python-pyside-2-tools")
+                       "/bin/rcc")
+
+        "-DPYSIDE_LIBRARY=PySide2::pyside2"
+        (string-append
+         "-DPYSIDE_INCLUDE_DIR="
+         (assoc-ref %build-inputs "python-pyside-2") "/include;"
+         (assoc-ref %build-inputs "python-pyside-2") "/include/PySide2;"
+         (assoc-ref %build-inputs "python-pyside-2") "/include/PySide2/QtCore;"
+         (assoc-ref %build-inputs "python-pyside-2") "/include/PySide2/QtWidgets;"
+         (assoc-ref %build-inputs "python-pyside-2") "/include/PySide2/QtGui;")
+
+        "-DSHIBOKEN_LIBRARY=Shiboken2::libshiboken"
+        (string-append "-DSHIBOKEN_INCLUDE_DIR="
+                       (assoc-ref %build-inputs "python-shiboken-2")
+                       "/include/shiboken2"))
        #:phases
        (modify-phases %standard-phases
          (add-before 'configure 'restore-pythonpath
--
2.28.0






^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#45059] [PATCH 2/2] gnu: freecad: Update to 0.18.5
  2020-12-05 23:51 [bug#45059] [PATCH] gnu: freecad: Fix compilation flags Ekaitz Zarraga
@ 2020-12-05 23:58 ` Ekaitz Zarraga
  2020-12-06 21:29 ` bug#45059: [PATCH] gnu: freecad: Fix compilation flags Marius Bakke
  1 sibling, 0 replies; 3+ messages in thread
From: Ekaitz Zarraga @ 2020-12-05 23:58 UTC (permalink / raw)
  To: 45059@debbugs.gnu.org

From c223f97e9c00bc8904130199697e41236b8dad1d Mon Sep 17 00:00:00 2001
From: Ekaitz Zarraga <ekaitz@elenq.tech>
Date: Sun, 6 Dec 2020 00:55:37 +0100
Subject: [PATCH 2/2] gnu: freecad: Update to 0.18.5

    * gnu/packages/engineering.scm (freecad): Update to 0.18.5
---
 gnu/packages/engineering.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 5a8977c940..e436994492 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -2434,7 +2434,7 @@ full programmatic control over your models.")
 (define-public freecad
   (package
     (name "freecad")
-    (version "0.18.4")
+    (version "0.18.5")
     (source
      (origin
        (method git-fetch)
@@ -2453,7 +2453,7 @@ full programmatic control over your models.")
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "170hk1kgrvsddrwykp24wyj0cha78zzmzbf50gn98x7ngqqs395s"))))
+         "0r31jzzkamf76l19fb175hhv48irk06fpi8ldxdlr31w8c1ix4aa"))))
     (build-system qt-build-system)
     (native-inputs
      `(("doxygen" ,doxygen)
--
2.28.0






^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#45059: [PATCH] gnu: freecad: Fix compilation flags
  2020-12-05 23:51 [bug#45059] [PATCH] gnu: freecad: Fix compilation flags Ekaitz Zarraga
  2020-12-05 23:58 ` [bug#45059] [PATCH 2/2] gnu: freecad: Update to 0.18.5 Ekaitz Zarraga
@ 2020-12-06 21:29 ` Marius Bakke
  1 sibling, 0 replies; 3+ messages in thread
From: Marius Bakke @ 2020-12-06 21:29 UTC (permalink / raw)
  To: Ekaitz Zarraga, 45059-done, 43448-done

[-- Attachment #1: Type: text/plain, Size: 319 bytes --]

Ekaitz Zarraga <ekaitz@elenq.tech> skriver:

> Hi everyone,
>
> I managed to solve the longstanding issue with freecad's compilation (#43448).
>
> I'll submit a new change with the package update to 0.18.5 next.

Thanks a lot for these patches Ekaitz!

I pushed them both with 383f087cd74316d26c5c0f19b73bc620312c5477.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 507 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-06 21:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-05 23:51 [bug#45059] [PATCH] gnu: freecad: Fix compilation flags Ekaitz Zarraga
2020-12-05 23:58 ` [bug#45059] [PATCH 2/2] gnu: freecad: Update to 0.18.5 Ekaitz Zarraga
2020-12-06 21:29 ` bug#45059: [PATCH] gnu: freecad: Fix compilation flags Marius Bakke

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.