unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#70305] [PATCH 0/5] gnu: coin3d: Improve and update to 4.0.2.
@ 2024-04-09 10:13 Jean-Pierre De Jesus DIAZ
  2024-04-09 10:22 ` [bug#70305] [PATCH 1/5] gnu: coin3D: Rename to coin3d Jean-Pierre De Jesus DIAZ
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Jean-Pierre De Jesus DIAZ @ 2024-04-09 10:13 UTC (permalink / raw)
  To: 70305; +Cc: Jean-Pierre De Jesus DIAZ

This patch series update Coin3D to 4.0.2 and make a few changes to the
package, mainly renaming the variable to use lowercase, using
G-Expressions and changes to avoid using dlopen and unbundling
of expat.

Jean-Pierre De Jesus DIAZ (5):
  gnu: coin3D: Rename to coin3d.
  gnu: coin3d: Use G-Expressions.
  gnu: coin3d: Use system expat.
  gnu: coin3d: Avoid use of dlopen.
  gnu: coin3d: Update to 4.0.2.

 gnu/packages/engineering.scm |  2 +-
 gnu/packages/graphics.scm    | 74 ++++++++++++++++++++++++------------
 gnu/packages/python-xyz.scm  |  2 +-
 gnu/packages/qt.scm          |  2 +-
 4 files changed, 53 insertions(+), 27 deletions(-)


base-commit: cd45294d576975a3bff2f755764a3f46f09ea6f9
-- 
2.41.0





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

* [bug#70305] [PATCH 1/5] gnu: coin3D: Rename to coin3d.
  2024-04-09 10:13 [bug#70305] [PATCH 0/5] gnu: coin3d: Improve and update to 4.0.2 Jean-Pierre De Jesus DIAZ
@ 2024-04-09 10:22 ` Jean-Pierre De Jesus DIAZ
  2024-04-09 10:22 ` [bug#70305] [PATCH 2/5] gnu: coin3d: Use G-Expressions Jean-Pierre De Jesus DIAZ
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Jean-Pierre De Jesus DIAZ @ 2024-04-09 10:22 UTC (permalink / raw)
  To: 70305
  Cc: Jean-Pierre De Jesus DIAZ, Lars-Dominik Braun, Marius Bakke,
	Maxim Cournoyer, Munyoki Kilyungi, Sharlatan Hellseher,
	Tanguy Le Carrour, jgart, 宋文武

* gnu/packages/graphics.scm (coin3d): New Variable.
(coin3D): Define as deprecated.
(coin3D-4): Point to coin3d.
* gnu/packages/engineering.scm (freecad): Use coin3d instead of coin3D.
* gnu/packages/python-xyz.scm (python-pivy): Ditto.
* gnu/packages/qt.scm (soqt): Ditto.

Change-Id: I4e83e25e80c512350f38024847891eac14723f26
---
 gnu/packages/engineering.scm | 2 +-
 gnu/packages/graphics.scm    | 9 ++++++---
 gnu/packages/python-xyz.scm  | 2 +-
 gnu/packages/qt.scm          | 2 +-
 4 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 6f42d674e5..7a60036c28 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -2816,7 +2816,7 @@ (define-public freecad
            swig))
     (inputs
      (list boost
-           coin3D
+           coin3d
            double-conversion
            eigen
            fmt
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index a63629823a..ebbc705cfc 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -1951,9 +1951,9 @@ (define-public opencsg
       (home-page "https://www.opencsg.org/")
       (license license:gpl2))))
 
-(define-public coin3D
+(define-public coin3d
   (package
-    (name "coin3D")
+    (name "coin3d")
     (version "4.0.0")
     (source
      (origin
@@ -2001,7 +2001,10 @@ (define-public coin3D
 and engineering community.")
     (license license:bsd-3)))
 
-(define-deprecated coin3D-4 coin3D)
+(define-deprecated coin3D coin3d)
+(export coin3D)
+
+(define-deprecated coin3D-4 coin3d)
 (export coin3D-4)
 
 (define-public skia
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 92566abfed..44c709a880 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -32421,7 +32421,7 @@ (define-public python-pivy
             libice
             soqt
             glew
-            coin3D))
+            coin3d))
     (home-page "https://github.com/coin3d/pivy")
     (synopsis "Python bindings to Coin3D")
     (description
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index dcc9bfeb62..2f23e292e8 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -5115,7 +5115,7 @@ (define-public soqt
     (native-inputs
       (list pkg-config cmake))
     (inputs
-      (list qtbase-5 coin3D))
+      (list qtbase-5 coin3d))
     (home-page "https://github.com/coin3d/soqt")
     (synopsis "Qt GUI component toolkit library for Coin")
     (description "SoQt is a Qt GUI component toolkit library for Coin.  It is
-- 
2.41.0





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

* [bug#70305] [PATCH 2/5] gnu: coin3d: Use G-Expressions.
  2024-04-09 10:13 [bug#70305] [PATCH 0/5] gnu: coin3d: Improve and update to 4.0.2 Jean-Pierre De Jesus DIAZ
  2024-04-09 10:22 ` [bug#70305] [PATCH 1/5] gnu: coin3D: Rename to coin3d Jean-Pierre De Jesus DIAZ
@ 2024-04-09 10:22 ` Jean-Pierre De Jesus DIAZ
  2024-04-09 10:22 ` [bug#70305] [PATCH 3/5] gnu: coin3d: Use system expat Jean-Pierre De Jesus DIAZ
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Jean-Pierre De Jesus DIAZ @ 2024-04-09 10:22 UTC (permalink / raw)
  To: 70305; +Cc: Jean-Pierre De Jesus DIAZ

* gnu/packages/graphics.scm (coin3d) <source>, <arguments>: Use
G-Expressions.

Change-Id: I79a77bda6fc919d9c3b80e77e38855824e81f6e6
---
 gnu/packages/graphics.scm | 32 +++++++++++++++-----------------
 1 file changed, 15 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index ebbc705cfc..f866318289 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -1967,28 +1967,26 @@ (define-public coin3d
         (base32 "1ayg0hl8wanhadahm5xbghghxw1qjwqbrs3dl3ngnff027hsyf8p"))
        (modules '((guix build utils)))
        (snippet
-        '(begin
-           ;; Delete binaries
-           (for-each delete-file
-                     '("cfg/csubst.exe"
-                       "cfg/wrapmsvc.exe"))
-           ;; Delete references to packaging tool cpack. Otherwise the build
-           ;; fails with "add_subdirectory given source "cpack.d" which is not
-           ;; an existing directory."
-           (substitute* "CMakeLists.txt"
-             ((".*cpack.d.*") ""))
-           #t))))
+        #~(begin
+            ;; Delete binaries
+            (for-each delete-file
+                      '("cfg/csubst.exe"
+                        "cfg/wrapmsvc.exe"))
+            ;; Delete references to packaging tool cpack. Otherwise the build
+            ;; fails with "add_subdirectory given source "cpack.d" which is not
+            ;; an existing directory."
+            (substitute* "CMakeLists.txt"
+              ((".*cpack.d.*") ""))))))
     (build-system cmake-build-system)
+    (arguments
+     (list #:configure-flags
+           #~(list "-DCOIN_BUILD_DOCUMENTATION_MAN=ON"
+                   (string-append "-DBOOST_ROOT="
+                                  #$(this-package-input "boost")))))
     (native-inputs
      (list doxygen graphviz))
     (inputs
      (list boost freeglut glew))
-    (arguments
-     `(#:configure-flags
-       (list
-        "-DCOIN_BUILD_DOCUMENTATION_MAN=ON"
-        (string-append "-DBOOST_ROOT="
-                       (assoc-ref %build-inputs "boost")))))
     (home-page "https://github.com/coin3d/coin")
     (synopsis
      "High-level 3D visualization library with Open Inventor 2.1 API")
-- 
2.41.0





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

* [bug#70305] [PATCH 3/5] gnu: coin3d: Use system expat.
  2024-04-09 10:13 [bug#70305] [PATCH 0/5] gnu: coin3d: Improve and update to 4.0.2 Jean-Pierre De Jesus DIAZ
  2024-04-09 10:22 ` [bug#70305] [PATCH 1/5] gnu: coin3D: Rename to coin3d Jean-Pierre De Jesus DIAZ
  2024-04-09 10:22 ` [bug#70305] [PATCH 2/5] gnu: coin3d: Use G-Expressions Jean-Pierre De Jesus DIAZ
@ 2024-04-09 10:22 ` Jean-Pierre De Jesus DIAZ
  2024-04-09 10:22 ` [bug#70305] [PATCH 4/5] gnu: coin3d: Avoid use of dlopen Jean-Pierre De Jesus DIAZ
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Jean-Pierre De Jesus DIAZ @ 2024-04-09 10:22 UTC (permalink / raw)
  To: 70305; +Cc: Jean-Pierre De Jesus DIAZ

* gnu/packages/graphics.scm (coin3d): Remove bundled expat and use the
system one.

Change-Id: Ief176e320b7f57c5c3f349f244ed7d76e54f8281
---
 gnu/packages/graphics.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index f866318289..7f704c3e58 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -1972,6 +1972,10 @@ (define-public coin3d
             (for-each delete-file
                       '("cfg/csubst.exe"
                         "cfg/wrapmsvc.exe"))
+            ;; Unbundle expat.
+            (delete-file-recursively "src/xml/expat")
+            (substitute* "src/xml/document.cpp"
+              (("expat/expat\\.h") "expat.h"))
             ;; Delete references to packaging tool cpack. Otherwise the build
             ;; fails with "add_subdirectory given source "cpack.d" which is not
             ;; an existing directory."
@@ -1981,12 +1985,13 @@ (define-public coin3d
     (arguments
      (list #:configure-flags
            #~(list "-DCOIN_BUILD_DOCUMENTATION_MAN=ON"
+                   "-DUSE_EXTERNAL_EXPAT=ON"
                    (string-append "-DBOOST_ROOT="
                                   #$(this-package-input "boost")))))
     (native-inputs
      (list doxygen graphviz))
     (inputs
-     (list boost freeglut glew))
+     (list boost expat freeglut glew))
     (home-page "https://github.com/coin3d/coin")
     (synopsis
      "High-level 3D visualization library with Open Inventor 2.1 API")
-- 
2.41.0





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

* [bug#70305] [PATCH 4/5] gnu: coin3d: Avoid use of dlopen.
  2024-04-09 10:13 [bug#70305] [PATCH 0/5] gnu: coin3d: Improve and update to 4.0.2 Jean-Pierre De Jesus DIAZ
                   ` (2 preceding siblings ...)
  2024-04-09 10:22 ` [bug#70305] [PATCH 3/5] gnu: coin3d: Use system expat Jean-Pierre De Jesus DIAZ
@ 2024-04-09 10:22 ` Jean-Pierre De Jesus DIAZ
  2024-04-09 10:22 ` [bug#70305] [PATCH 5/5] gnu: coin3d: Update to 4.0.2 Jean-Pierre De Jesus DIAZ
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Jean-Pierre De Jesus DIAZ @ 2024-04-09 10:22 UTC (permalink / raw)
  To: 70305; +Cc: Jean-Pierre De Jesus DIAZ

* gnu/packages/graphics.scm (coin3d): Avoid use of dlopen and add
missing inputs.

Change-Id: I48d93218bd93f6ef4f10fb1c4f1cc22396040d7d
---
 gnu/packages/graphics.scm | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 7f704c3e58..5d7c95a2a9 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -81,6 +81,7 @@ (define-module (gnu packages graphics)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages gnunet)
+  #:use-module (gnu packages gnuzilla)
   #:use-module (gnu packages graphviz)
   #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages gtk)
@@ -1986,12 +1987,31 @@ (define-public coin3d
      (list #:configure-flags
            #~(list "-DCOIN_BUILD_DOCUMENTATION_MAN=ON"
                    "-DUSE_EXTERNAL_EXPAT=ON"
+                   ;; Disable "runtime linking" of libraries, i.e. `dlopen`,
+                   ;; force to use libraries at build time.
+                   "-DFONTCONFIG_RUNTIME_LINKING=OFF"
+                   "-DFREETYPE_RUNTIME_LINKING=OFF"
+                   "-DLIBBZIP2_RUNTIME_LINKING=OFF"
+                   "-DOPENAL_RUNTIME_LINKING=OFF"
+                   ;"-DSIMAGE_RUNTIME_LINKING=OFF" -- Not packaged yet.
+                   "-DZLIB_RUNTIME_LINKING=OFF"
+                   "-DGLU_RUNTIME_LINKING=OFF"
+                   ;"-DSPIDERMONKEY_RUNTIME_LINKING=OFF" -- Can't find mozjs.
                    (string-append "-DBOOST_ROOT="
                                   #$(this-package-input "boost")))))
     (native-inputs
      (list doxygen graphviz))
     (inputs
-     (list boost expat freeglut glew))
+     (list boost
+           bzip2
+           expat
+           fontconfig
+           freeglut
+           freetype
+           glew
+           libx11
+           openal
+           zlib))
     (home-page "https://github.com/coin3d/coin")
     (synopsis
      "High-level 3D visualization library with Open Inventor 2.1 API")
-- 
2.41.0





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

* [bug#70305] [PATCH 5/5] gnu: coin3d: Update to 4.0.2.
  2024-04-09 10:13 [bug#70305] [PATCH 0/5] gnu: coin3d: Improve and update to 4.0.2 Jean-Pierre De Jesus DIAZ
                   ` (3 preceding siblings ...)
  2024-04-09 10:22 ` [bug#70305] [PATCH 4/5] gnu: coin3d: Avoid use of dlopen Jean-Pierre De Jesus DIAZ
@ 2024-04-09 10:22 ` Jean-Pierre De Jesus DIAZ
  2024-04-15  9:52 ` bug#70305: [PATCH 0/5] gnu: coin3d: Improve and update " Christopher Baines
  2024-05-02 14:49 ` [bug#70305] Related issue? Buttons Presser via Guix-patches via
  6 siblings, 0 replies; 8+ messages in thread
From: Jean-Pierre De Jesus DIAZ @ 2024-04-09 10:22 UTC (permalink / raw)
  To: 70305; +Cc: Jean-Pierre De Jesus DIAZ

* gnu/packages/graphics.scm (coin3d): Update to 4.0.2.

Change-Id: I0ca8cd6eff933a764005447d648ca2f020d8ee7f
---
 gnu/packages/graphics.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 5d7c95a2a9..85e4eed3b1 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -1955,17 +1955,17 @@ (define-public opencsg
 (define-public coin3d
   (package
     (name "coin3d")
-    (version "4.0.0")
+    (version "4.0.2")
     (source
      (origin
        (method git-fetch)
        (uri (git-reference
              (url "https://github.com/coin3d/coin")
-             (commit (string-append "Coin-" version))
+             (commit (string-append "v" version))
              (recursive? #t)))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "1ayg0hl8wanhadahm5xbghghxw1qjwqbrs3dl3ngnff027hsyf8p"))
+        (base32 "1p59q67zc45pwicknsccvmby09snhz35725wr3xsh2v6kxza76a4"))
        (modules '((guix build utils)))
        (snippet
         #~(begin
-- 
2.41.0





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

* bug#70305: [PATCH 0/5] gnu: coin3d: Improve and update to 4.0.2.
  2024-04-09 10:13 [bug#70305] [PATCH 0/5] gnu: coin3d: Improve and update to 4.0.2 Jean-Pierre De Jesus DIAZ
                   ` (4 preceding siblings ...)
  2024-04-09 10:22 ` [bug#70305] [PATCH 5/5] gnu: coin3d: Update to 4.0.2 Jean-Pierre De Jesus DIAZ
@ 2024-04-15  9:52 ` Christopher Baines
  2024-05-02 14:49 ` [bug#70305] Related issue? Buttons Presser via Guix-patches via
  6 siblings, 0 replies; 8+ messages in thread
From: Christopher Baines @ 2024-04-15  9:52 UTC (permalink / raw)
  To: Jean-Pierre De Jesus DIAZ; +Cc: 70305-done

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

Jean-Pierre De Jesus DIAZ <jean@foundation.xyz> writes:

> This patch series update Coin3D to 4.0.2 and make a few changes to the
> package, mainly renaming the variable to use lowercase, using
> G-Expressions and changes to avoid using dlopen and unbundling
> of expat.
>
> Jean-Pierre De Jesus DIAZ (5):
>   gnu: coin3D: Rename to coin3d.
>   gnu: coin3d: Use G-Expressions.
>   gnu: coin3d: Use system expat.
>   gnu: coin3d: Avoid use of dlopen.
>   gnu: coin3d: Update to 4.0.2.
>
>  gnu/packages/engineering.scm |  2 +-
>  gnu/packages/graphics.scm    | 74 ++++++++++++++++++++++++------------
>  gnu/packages/python-xyz.scm  |  2 +-
>  gnu/packages/qt.scm          |  2 +-
>  4 files changed, 53 insertions(+), 27 deletions(-)

Looks good to me, I've pushed these changes to master as
37579d04dc76c2badd1b7feca6d6cdfadd4e61d3.

Chris

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

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

* [bug#70305] Related issue?
  2024-04-09 10:13 [bug#70305] [PATCH 0/5] gnu: coin3d: Improve and update to 4.0.2 Jean-Pierre De Jesus DIAZ
                   ` (5 preceding siblings ...)
  2024-04-15  9:52 ` bug#70305: [PATCH 0/5] gnu: coin3d: Improve and update " Christopher Baines
@ 2024-05-02 14:49 ` Buttons Presser via Guix-patches via
  6 siblings, 0 replies; 8+ messages in thread
From: Buttons Presser via Guix-patches via @ 2024-05-02 14:49 UTC (permalink / raw)
  To: 70305

Could it be that this patch breaks python-pivy in current guix (2aeb9fa)?

python-pivy is a freecad dependency so freecad is also can not be installed now which is reported here - https://issues.guix.gnu.org/70698

Anyway I would appreciate any suggestions on how to fix/patch python-pivy and ultimately freecad.

Kind regards,
BP




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

end of thread, other threads:[~2024-05-02 16:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-09 10:13 [bug#70305] [PATCH 0/5] gnu: coin3d: Improve and update to 4.0.2 Jean-Pierre De Jesus DIAZ
2024-04-09 10:22 ` [bug#70305] [PATCH 1/5] gnu: coin3D: Rename to coin3d Jean-Pierre De Jesus DIAZ
2024-04-09 10:22 ` [bug#70305] [PATCH 2/5] gnu: coin3d: Use G-Expressions Jean-Pierre De Jesus DIAZ
2024-04-09 10:22 ` [bug#70305] [PATCH 3/5] gnu: coin3d: Use system expat Jean-Pierre De Jesus DIAZ
2024-04-09 10:22 ` [bug#70305] [PATCH 4/5] gnu: coin3d: Avoid use of dlopen Jean-Pierre De Jesus DIAZ
2024-04-09 10:22 ` [bug#70305] [PATCH 5/5] gnu: coin3d: Update to 4.0.2 Jean-Pierre De Jesus DIAZ
2024-04-15  9:52 ` bug#70305: [PATCH 0/5] gnu: coin3d: Improve and update " Christopher Baines
2024-05-02 14:49 ` [bug#70305] Related issue? Buttons Presser via Guix-patches via

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).