GNU bug report logs - #58481
[WIP PATCH 0/9] gnu: stellarium: Update to 1.0.

Previous Next

Package: guix-patches;

Reported by: Cairn <cairn <at> pm.me>

Date: Thu, 13 Oct 2022 05:20:01 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58481 in the body.
You can then email your comments to 58481 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#58481; Package guix-patches. (Thu, 13 Oct 2022 05:20:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Cairn <cairn <at> pm.me>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 13 Oct 2022 05:20:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Cairn <cairn <at> pm.me>
To: Cairn via Guix-patches via <guix-patches <at> gnu.org>
Subject: [WIP PATCH 0/9] gnu: stellarium: Update to 1.0.
Date: Thu, 13 Oct 2022 05:19:06 +0000
[Message part 1 (text/plain, inline)]
Hey Guix!

This patchset updates Stellarium to version 1.0. Along the way, I had to update a few Qt packages and add a few dependencies. I used Maxim's Jami patchset[1] as a guide to updating the Qt packages. All the dependencies work, but I'm definitely looking for suggestions on if some of the packages could be improved.

Unfortunately, the only thing that isn't working yet is the Stellarium package itself. At 77% of the build process, it fails with an enormous amount of errors, which makes it seem like some dependency version is incompatible. I fumbled around with variations of the package arguments a lot; I couldn't solve it with extra configuration flags, and it doesn't seems to need any other dependencies. I tried adding `qtbase` explicity with an `-isystem` flag in the same way as `qtserialport`, but that doesn't seem to be it either.

I've already spent a couple of days messing with this, and I'm a little tired of it. I decided to share what I was able to finish in the hope that someone can help figure out this last issue. I'm attatching the (lengthy) build log to the next email, if you'd like to take a look without setting it up yourself.

Thanks in advance! Looking forward to being able to send a repaired and improved V2.

[1]: https://issues.guix.gnu.org/56771

Cairn (9):
  gnu: qtcharts: Rename variable to qtcharts-5.
  gnu: Add qtcharts, version 6.3.1.
  gnu: qtserialport: Rename variable to qtserialport-5.
  gnu: Add qtserialport, version 6.3.1.
  gnu: qtimageformats: Rename variable to qtimageformats-5.
  gnu: Add qtimageformats, version 6.3.1.
  gnu: Add qxlsx.
  gnu: Add calcmysky.
  gnu: stellarium: Update to 1.0.

 gnu/packages/astronomy.scm     | 107 +++++++++++++++++--------
 gnu/packages/engineering.scm   |   4 +-
 gnu/packages/geo.scm           |   4 +-
 gnu/packages/image-viewers.scm |   2 +-
 gnu/packages/kde.scm           |   6 +-
 gnu/packages/qt.scm            | 137 ++++++++++++++++++++++++++++++---
 gnu/packages/radio.scm         |  16 ++--
 gnu/packages/telegram.scm      |   2 +-
 8 files changed, 222 insertions(+), 56 deletions(-)

-- 

2.38.0

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#58481; Package guix-patches. (Thu, 13 Oct 2022 05:25:02 GMT) Full text and rfc822 format available.

Message #8 received at 58481 <at> debbugs.gnu.org (full text, mbox):

From: Cairn <cairn <at> pm.me>
To: "58481 <at> debbugs.gnu.org" <58481 <at> debbugs.gnu.org>
Subject: Stellarium build log
Date: Thu, 13 Oct 2022 05:24:42 +0000
[Message part 1 (text/plain, inline)]
Errors start at line #9845.
[stellarium-1.0.drv.gz (application/gzip, attachment)]
[signature.asc (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#58481; Package guix-patches. (Thu, 13 Oct 2022 05:37:01 GMT) Full text and rfc822 format available.

Message #11 received at 58481 <at> debbugs.gnu.org (full text, mbox):

From: Cairn <cairn <at> pm.me>
To: "58481 <at> debbugs.gnu.org" <58481 <at> debbugs.gnu.org>
Subject: [PATCH 1/9] gnu: qtcharts: Rename variable to qtcharts-5.
Date: Thu, 13 Oct 2022 05:35:51 +0000
[Message part 1 (text/plain, inline)]
This is in preparation of updating qtcharts to version 6.

This change was automated via the following command:

    git grep -l '\bqtcharts\b' | xargs sed 's/qtcharts/qtcharts-5/g' -i
---
 gnu/packages/kde.scm   | 2 +-
 gnu/packages/qt.scm    | 4 ++--
 gnu/packages/radio.scm | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index 20df62fdfa..e4ec70bc7a 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -1247,7 +1247,7 @@ (define-public kuserfeedback
            ;;("phpunit" ,phpunit)
            ))
     (inputs
-     (list qtbase-5 qtcharts qtdeclarative-5 qtsvg-5))
+     (list qtbase-5 qtcharts-5 qtdeclarative-5 qtsvg-5))
     (arguments
      `(#:tests? #f))  ;; 4/17 fail
     (home-page "https://api.kde.org/frameworks/kuserfeedback/html/")
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 6e30980505..1efac2fb50 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -2008,9 +2008,9 @@ (define-public qtpurchasing
     (description "The Qt Purchasing module provides and in-app API for
 purchasing goods and services.")))
 

-(define-public qtcharts
+(define-public qtcharts-5
   (package (inherit qtsvg-5)
-    (name "qtcharts")
+    (name "qtcharts-5")
     (version "5.15.2")
     (source (origin
              (method url-fetch)
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index f466678289..cba6d25b9f 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -2009,7 +2009,7 @@ (define-public welle-io
            mpg123
            rtl-sdr
            qtbase-5
-           qtcharts
+           qtcharts-5
            qtdeclarative-5
            qtgraphicaleffects
            qtmultimedia-5
@@ -2257,7 +2257,7 @@ (define-public sdrangel
            opus
            pulseaudio
            qtbase-5
-           qtcharts
+           qtcharts-5
            qtdeclarative-5
            qtlocation
            qtmultimedia-5
-- 

2.38.0

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#58481; Package guix-patches. (Thu, 13 Oct 2022 05:39:02 GMT) Full text and rfc822 format available.

Message #14 received at 58481 <at> debbugs.gnu.org (full text, mbox):

From: Cairn <cairn <at> pm.me>
To: "58481 <at> debbugs.gnu.org" <58481 <at> debbugs.gnu.org>
Subject: [PATCH 2/9] gnu: Add qtcharts, version 6.3.1.
Date: Thu, 13 Oct 2022 05:37:48 +0000
[Message part 1 (text/plain, inline)]
* gnu/packages/qt.scm (qtcharts): New variable.
---
 gnu/packages/qt.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 1efac2fb50..e213657249 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -2031,6 +2031,28 @@ (define-public qtcharts-5
 selecting one of the charts themes.")
     (license license:gpl3)))
 

+(define-public qtcharts
+  (package (inherit qtsvg)
+    (name "qtcharts")
+    (version "6.3.1")
+    (source (origin
+             (method url-fetch)
+             (uri (qt-urls name version))
+             (sha256
+              (base32
+               "1xvwsabyfln3sih9764xknl2s3w4w069k210kgbh94bj50iwqc7k"))))
+    (arguments
+     (list #:tests? #f)) ; TODO: Enable tests (two fail)
+    (inputs
+     (list qtbase qtdeclarative))
+    (synopsis "Qt Charts module")
+    (description "The Qt Charts module provides a set of easy to use chart
+components.  It uses the Qt Graphics View Framework, therefore charts can be
+easily integrated to modern user interfaces.  Qt Charts can be used as QWidgets,
+QGraphicsWidget, or QML types.  Users can easily create impressive graphs by
+selecting one of the charts themes.")
+    (license license:gpl3)))
+
 (define-public qtdatavis3d
   (package (inherit qtsvg-5)
     (name "qtdatavis3d")
-- 

2.38.0

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#58481; Package guix-patches. (Thu, 13 Oct 2022 05:40:02 GMT) Full text and rfc822 format available.

Message #17 received at 58481 <at> debbugs.gnu.org (full text, mbox):

From: Cairn <cairn <at> pm.me>
To: "58481 <at> debbugs.gnu.org" <58481 <at> debbugs.gnu.org>
Subject: [PATCH 3/9] gnu: qtserialport: Rename variable to qtserialport-5.
Date: Thu, 13 Oct 2022 05:38:46 +0000
[Message part 1 (text/plain, inline)]
This is in preparation of updating qtserialport to version 6.

This change was automated via the following command:

    git grep -l '\bqtserialport\b' | xargs sed 's/qtserialport/qtserialport-5/g' -i
---
 gnu/packages/astronomy.scm   |  4 ++--
 gnu/packages/engineering.scm |  4 ++--
 gnu/packages/geo.scm         |  2 +-
 gnu/packages/kde.scm         |  4 ++--
 gnu/packages/qt.scm          | 10 +++++-----
 gnu/packages/radio.scm       | 12 ++++++------
 6 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index aaa9207e0e..8c53611427 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -745,7 +745,7 @@ (define-public stellarium
            qtlocation
            qtmultimedia-5
            qtscript
-           qtserialport
+           qtserialport-5
            zlib))
     (native-inputs
      `(("gettext" ,gettext-minimal)     ; xgettext is used at compile time
@@ -757,7 +757,7 @@ (define-public stellarium
        #:configure-flags (list "-DENABLE_TESTING=1"
                                (string-append
                                 "-DCMAKE_CXX_FLAGS=-isystem "
-                                (assoc-ref %build-inputs "qtserialport")
+                                (assoc-ref %build-inputs "qtserialport-5")
                                 "/include/qt5"))
        #:phases (modify-phases %standard-phases
                   (add-before 'check 'set-offscreen-display
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 5c84b9ede0..7ee8691a7f 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -713,7 +713,7 @@ (define-public fritzing
                        "phoenix.pro")))))))
     (inputs
      `(("qtbase" ,qtbase-5)
-       ("qtserialport" ,qtserialport)
+       ("qtserialport-5" ,qtserialport-5)
        ("qtsvg-5" ,qtsvg-5)
        ("libgit2" ,libgit2)
        ("boost" ,boost)
@@ -3818,7 +3818,7 @@ (define-public candle
                   "08rqhl6a5a8s67a8yl16944zgcsnnb08xfv4klzyqwlvaqgfp783"))))
       (build-system gnu-build-system)
       (native-inputs (list qttools-5))
-      (inputs (list qtbase-5 qtserialport))
+      (inputs (list qtbase-5 qtserialport-5))
       (arguments
        (list #:tests? #f                      ; no tests.
              #:phases #~(modify-phases %standard-phases
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 5e484c6e1c..97f561e362 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -2622,7 +2622,7 @@ (define-public qgis
            qtdeclarative-5
            qtkeychain
            qtlocation
-           qtserialport
+           qtserialport-5
            qtsvg-5
            qwt
            ;; saga
diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index e4ec70bc7a..7b47abdc6d 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -833,7 +833,7 @@ (define-public labplot
            libcerf
            lz4
            netcdf
-           qtserialport
+           qtserialport-5
            zlib))
     (home-page "https://labplot.kde.org/")
     (synopsis "Interactive graphing and analysis of scientific data")
@@ -1048,7 +1048,7 @@ (define-public marble-qt
            qtbase-5
            qtdeclarative-5
            qtlocation
-           qtserialport
+           qtserialport-5
            qtsvg-5
            qtwebchannel-5
            qtwebengine-5
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index e213657249..d589f653fb 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1550,9 +1550,9 @@ (define-public qtwayland
     (home-page (package-home-page qtbase))
     (license (package-license qtbase))))
 

-(define-public qtserialport
+(define-public qtserialport-5
   (package (inherit qtsvg-5)
-    (name "qtserialport")
+    (name "qtserialport-5")
     (version "5.15.2")
     (source (origin
              (method url-fetch)
@@ -1604,7 +1604,7 @@ (define-public qtserialbus
                     (format #f "QStringLiteral(~s)" libcansocket.so)))
                  #t)))))))
     (inputs
-     (list libsocketcan qtbase-5 qtserialport))
+     (list libsocketcan qtbase-5 qtserialport-5))
     (synopsis "Qt Serial Bus module")
     (description "The Qt Serial Bus API provides classes and functions to
 access the various industrial serial buses and protocols, such as CAN, ModBus,
@@ -1731,7 +1731,7 @@ (define-public qtlocation
      (substitute-keyword-arguments (package-arguments qtsvg-5)
        ((#:tests? _ #f) #f))) ; TODO: Enable the tests
     (native-inputs
-     (list perl qtdeclarative-5 qtquickcontrols-5 qtserialport))
+     (list perl qtdeclarative-5 qtquickcontrols-5 qtserialport-5))
     (inputs
      (list icu4c openssl qtbase-5 zlib))
     (synopsis "Qt Location and Positioning modules")
@@ -3081,7 +3081,7 @@ (define-public python-pyqt
        ("qtlocation" ,qtlocation)
        ("qtmultimedia-5" ,qtmultimedia-5)
        ("qtsensors" ,qtsensors)
-       ("qtserialport" ,qtserialport)
+       ("qtserialport-5" ,qtserialport-5)
        ("qtsvg-5" ,qtsvg-5)
        ("qttools-5" ,qttools-5)
        ("qtwebchannel-5" ,qtwebchannel-5)
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index cba6d25b9f..bebbbda071 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -1381,7 +1381,7 @@ (define-public wsjtx
        ("libusb" ,libusb)
        ("qtbase" ,qtbase-5)
        ("qtmultimedia-5" ,qtmultimedia-5)
-       ("qtserialport" ,qtserialport)))
+       ("qtserialport-5" ,qtserialport-5)))
     (arguments
      `(#:tests? #f)) ; No test suite
     (synopsis "Weak-signal ham radio communication program")
@@ -1420,7 +1420,7 @@ (define-public jtdx
       qtbase-5
       qtwebsockets-5
       qtmultimedia-5
-      qtserialport))
+      qtserialport-5))
     (arguments
      `(#:tests? #f)) ; No test suite
     (synopsis "Weak-signal ham radio communication program, forked from WSJTX")
@@ -1464,7 +1464,7 @@ (define-public js8call
        ("libusb" ,libusb)
        ("qtbase" ,qtbase-5)
        ("qtmultimedia-5" ,qtmultimedia-5)
-       ("qtserialport" ,qtserialport)))
+       ("qtserialport-5" ,qtserialport-5)))
     (arguments
      `(#:tests? #f ; No test suite
        #:phases
@@ -2262,7 +2262,7 @@ (define-public sdrangel
            qtlocation
            qtmultimedia-5
            qtquickcontrols2-5
-           qtserialport
+           qtserialport-5
            qtspeech
            qtwebchannel-5
            qtwebengine-5
@@ -2394,7 +2394,7 @@ (define-public wfview
         (base32 "1kpkwxhcacgmprbr8xz840rj9a22513vxrh2q7d3js5i1dva8j2z"))))
     (build-system qt-build-system)
     (inputs
-     (list opus qcustomplot qtbase-5 qtmultimedia-5 qtserialport))
+     (list opus qcustomplot qtbase-5 qtmultimedia-5 qtserialport-5))
     (arguments
      `(#:tests? #f  ; No test suite.
        #:phases
@@ -2694,7 +2694,7 @@ (define-public qdmr
                    (substitute* "lib/CMakeLists.txt"
                      (("(DESTINATION \")/etc/udev/" _ directive)
                       (string-append directive #$output "/lib/udev/"))))))))
-    (inputs (list libusb qtbase-5 qtlocation qtserialport yaml-cpp))
+    (inputs (list libusb qtbase-5 qtlocation qtserialport-5 yaml-cpp))
     (native-inputs (list qttools-5))
     (home-page "https://dm3mat.darc.de/qdmr/")
     (synopsis "GUI application and command line tool to program DMR radios")
-- 

2.38.0

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#58481; Package guix-patches. (Thu, 13 Oct 2022 05:40:02 GMT) Full text and rfc822 format available.

Message #20 received at 58481 <at> debbugs.gnu.org (full text, mbox):

From: Cairn <cairn <at> pm.me>
To: "58481 <at> debbugs.gnu.org" <58481 <at> debbugs.gnu.org>
Subject: [PATCH 4/9] gnu: Add qtserialport, version 6.3.1.
Date: Thu, 13 Oct 2022 05:39:23 +0000
[Message part 1 (text/plain, inline)]
* gnu/packages/qt.scm (qtserialport): New variable.
---
 gnu/packages/qt.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index d589f653fb..d0d2c906a4 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1580,6 +1580,35 @@ (define-public qtserialport-5
     (description "The Qt Serial Port module provides the library for
 interacting with serial ports from within Qt.")))
 

+(define-public qtserialport
+  (package (inherit qtsvg)
+    (name "qtserialport")
+    (version "6.3.1")
+    (source (origin
+             (method url-fetch)
+             (uri (qt-urls name version))
+             (sha256
+              (base32
+               "0vk17cjj9jpdkgd8qwb1x0lijg0p2jxdzx4d67hd57brcl7didjf"))))
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'patch-dlopen-paths
+                 (lambda* (#:key inputs #:allow-other-keys)
+                   (substitute* "src/serialport/qtudev_p.h"
+                     ;; Use the absolute paths for dynamically loaded libs,
+                     ;; otherwise the lib will be searched in LD_LIBRARY_PATH which
+                     ;; typically is not set in guix.
+                     (("^\\s*(udevLibrary->setFileNameAndVersion\\(QStringLiteral\\(\")(udev\"\\),\\s*[0-9]+\\);)" _ a b)
+                      (string-append a #$(this-package-input "eudev") "/lib/lib" b))))))))
+    (native-inputs
+     (list perl pkg-config))
+    (inputs
+     (list qtbase eudev))
+    (synopsis "Qt Serial Port module")
+    (description "The Qt Serial Port module provides the library for
+interacting with serial ports from within Qt.")))
+
 (define-public qtserialbus
   (package (inherit qtsvg-5)
     (name "qtserialbus")
-- 

2.38.0

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#58481; Package guix-patches. (Thu, 13 Oct 2022 05:41:02 GMT) Full text and rfc822 format available.

Message #23 received at 58481 <at> debbugs.gnu.org (full text, mbox):

From: Cairn <cairn <at> pm.me>
To: "58481 <at> debbugs.gnu.org" <58481 <at> debbugs.gnu.org>
Subject: [PATCH 5/9] gnu: qtimageformats: Rename variable to qtimageformats-5.
Date: Thu, 13 Oct 2022 05:39:52 +0000
[Message part 1 (text/plain, inline)]
This is in preparation of updating qtimageformats to version 6.

This change was automated via the following command:

    git grep -l '\bqtimageformats\b' | xargs sed 's/qtimageformats/qtimageformats-5/g' -i
---
 gnu/packages/geo.scm           | 2 +-
 gnu/packages/image-viewers.scm | 2 +-
 gnu/packages/qt.scm            | 4 ++--
 gnu/packages/telegram.scm      | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 97f561e362..0ecfbc75c5 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -2229,7 +2229,7 @@ (define-public openorienteering-mapper
        ("gdal" ,gdal)
        ("proj" ,proj)
        ("qtbase" ,qtbase-5)
-       ("qtimageformats" ,qtimageformats)
+       ("qtimageformats-5" ,qtimageformats-5)
        ("qtlocation" ,qtlocation)
        ("qtsensors" ,qtsensors)
        ("zlib" ,zlib)))
diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm
index 77979e8b8f..6e41cb5fdb 100644
--- a/gnu/packages/image-viewers.scm
+++ b/gnu/packages/image-viewers.scm
@@ -714,7 +714,7 @@ (define-public qview
     (native-inputs
      (list qttools-5))
     (inputs
-     (list qtbase-5 qtimageformats qtsvg-5))
+     (list qtbase-5 qtimageformats-5 qtsvg-5))
     (home-page "https://interversehq.com/qview/")
     (synopsis "Convenient and minimal image viewer")
     (description "qView is a Qt image viewer designed with visually
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index d0d2c906a4..85f9c0716c 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -948,9 +948,9 @@ (define-public qtsvg
     (home-page (package-home-page qtbase))
     (license (package-license qtbase))))
 

-(define-public qtimageformats
+(define-public qtimageformats-5
   (package (inherit qtsvg-5)
-    (name "qtimageformats")
+    (name "qtimageformats-5")
     (version "5.15.2")
     (source (origin
              (method url-fetch)
diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm
index 82c9227ba8..d64d2eaf1d 100644
--- a/gnu/packages/telegram.scm
+++ b/gnu/packages/telegram.scm
@@ -500,7 +500,7 @@ (define-public telegram-desktop
            pulseaudio
            qrcodegen-cpp
            qtbase-5
-           qtimageformats
+           qtimageformats-5
            qtsvg-5
            qtwayland-5
            range-v3
-- 

2.38.0

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#58481; Package guix-patches. (Thu, 13 Oct 2022 05:42:02 GMT) Full text and rfc822 format available.

Message #26 received at 58481 <at> debbugs.gnu.org (full text, mbox):

From: Cairn <cairn <at> pm.me>
To: "58481 <at> debbugs.gnu.org" <58481 <at> debbugs.gnu.org>
Subject: [PATCH 6/9] gnu: Add qtimageformats, version 6.3.1.
Date: Thu, 13 Oct 2022 05:41:17 +0000
[Message part 1 (text/plain, inline)]
* gnu/packages/qt.scm (qtimageformats): New variable.
---
 gnu/packages/qt.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 85f9c0716c..2d9923b19f 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -986,6 +986,47 @@ (define-public qtimageformats-5
     (description "The QtImageFormats module contains plugins for adding
 support for MNG, TGA, TIFF and WBMP image formats.")))
 

+(define-public qtimageformats
+  (package (inherit qtsvg)
+    (name "qtimageformats")
+    (version "6.3.1")
+    (source (origin
+             (method url-fetch)
+             (uri (qt-urls name version))
+             (sha256
+              (base32
+               "0br1vqgx0hcc2nx32xviic94mvj6fbagrnzskdr7zdmvvyw140xd"))
+             (modules '((guix build utils)))
+             (snippet
+              '(begin
+                 (delete-file-recursively "src/3rdparty")
+                 #t))))
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'fix-build
+                 (lambda _
+                   (substitute*
+                     "src/plugins/imageformats/jp2/qjp2handler.cpp"
+                     (("^#include <jasper/jasper.h>")
+                      "#include <jasper/jasper.h>\n#include <QtCore/qmath.h>"))))
+               (add-before 'check 'set-offscreen-display
+                 (lambda _
+                   ;; Make Qt render "offscreen", required for tests.
+                   (setenv "QT_QPA_PLATFORM" "offscreen")
+                   (setenv "HOME" "/tmp"))))))
+    (inputs
+     (list jasper
+           libmng
+           libtiff
+           libwebp
+           mesa
+           qtbase
+           zlib))
+    (synopsis "Additional Image Format plugins for Qt")
+    (description "The QtImageFormats module contains plugins for adding
+support for MNG, TGA, TIFF and WBMP image formats.")))
+
 (define-public qtx11extras
   (package (inherit qtsvg-5)
     (name "qtx11extras")
-- 

2.38.0

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#58481; Package guix-patches. (Thu, 13 Oct 2022 05:43:01 GMT) Full text and rfc822 format available.

Message #29 received at 58481 <at> debbugs.gnu.org (full text, mbox):

From: Cairn <cairn <at> pm.me>
To: "58481 <at> debbugs.gnu.org" <58481 <at> debbugs.gnu.org>
Subject: [PATCH 7/9] gnu: Add qxlsx.
Date: Thu, 13 Oct 2022 05:42:13 +0000
[Message part 1 (text/plain, inline)]
* gnu/packages/qt.scm (qxlsx): New variable.
---
 gnu/packages/qt.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 2d9923b19f..6169d8bb65 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -25,6 +25,7 @@
 ;;; Copyright © 2021 Nicolò Balzarotti <nicolo <at> nixo.xyz>
 ;;; Copyright © 2022 Foo Chuan Wei <chuanwei.foo <at> hotmail.com>
 ;;; Copyright © 2022 Zhu Zihao <all_but_last <at> 163.com>
+;;; Copyright © 2022 Cairn <cairn <at> pm.me>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -4390,6 +4391,32 @@ (define-public kdsoap
 web server.")
     (license (list license:gpl2 license:gpl3))))
 

+(define-public qxlsx
+  (package
+    (name "qxlsx")
+    (version "1.4.4")
+    (source (origin
+             (method git-fetch)
+             (uri (git-reference
+                   (url "https://github.com/QtExcel/QXlsx/")
+                   (commit (string-append "v" version))))
+             (file-name (git-file-name name version))
+             (sha256
+              (base32
+               "1h11pviill9m749408xygkvkxik002va27n1d6zyg7bbjiwbnlfk"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list #:tests? #f ; No rule for tests
+           #:configure-flags
+           #~(list "-G" "Unix Makefiles" "../source/QXlsx")))
+    (inputs
+     (list qtbase libxkbcommon))
+    (home-page "https://qtexcel.github.io/QXlsx/")
+    (synopsis "Excel file reader/writer library using Qt")
+    (description "This is a libary for reading and writing Excel files
+(.xlsx) using either Qt 5 or 6.")
+    (license license:expat)))
+
 ;;;
 ;;; Avoid adding new packages to the end of this file. To reduce the chances
 ;;; of a merge conflict, place them above by existing packages with similar
-- 

2.38.0

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#58481; Package guix-patches. (Thu, 13 Oct 2022 05:44:02 GMT) Full text and rfc822 format available.

Message #32 received at 58481 <at> debbugs.gnu.org (full text, mbox):

From: Cairn <cairn <at> pm.me>
To: "58481 <at> debbugs.gnu.org" <58481 <at> debbugs.gnu.org>
Subject: [PATCH 8/9] gnu: Add calcmysky.
Date: Thu, 13 Oct 2022 05:42:49 +0000
[Message part 1 (text/plain, inline)]
* gnu/packages/astronomy.scm (calcmysky): New variable.
---
 gnu/packages/astronomy.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 8c53611427..72e923e895 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2021, 2022 Vinicius Monego <monego <at> posteo.net>
 ;;; Copyright © 2021 Greg Hogan <code <at> greghogan.com>
 ;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo <at> hotmail.com>
+;;; Copyright © 2022 Cairn <cairn <at> pm.me>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -727,6 +728,34 @@ (define-public stackistry
 deconvolution).  Such post-processing is not performed by Stackistry.")
      (license license:gpl3+)))
 

+(define-public calcmysky
+  (package
+    (name "calcmysky")
+    (version "0.1.0")
+    (source (origin
+             (method git-fetch)
+             (uri (git-reference
+                   (url "https://github.com/10110111/CalcMySky")
+                   (commit (string-append "v" version))))
+             (file-name (git-file-name name version))
+             (sha256
+              (base32
+               "13wk73c0xyh6c1zpxjzny987x0qdy1gcqy2y5r5a5hiqx4fz3lfj"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list #:configure-flags
+           #~(list "-DQT_VERSION=6")))
+    (inputs
+     (list qtbase
+           glm
+           eigen))
+    (home-page "https://10110111.github.io/CalcMySky/")
+    (synopsis "Simulator of light scattering by planetary atmospheres")
+    (description "CalcMySky is a software package that simulates scattering
+of light by the atmosphere to render daytime and twilight skies (without
+stars).  It consists of three parts: CalcMySky, ShowMySky and libShowMySky.")
+    (license license:gpl3)))
+
 (define-public stellarium
   (package
     (name "stellarium")
-- 

2.38.0

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#58481; Package guix-patches. (Thu, 13 Oct 2022 05:44:02 GMT) Full text and rfc822 format available.

Message #35 received at 58481 <at> debbugs.gnu.org (full text, mbox):

From: Cairn <cairn <at> pm.me>
To: "58481 <at> debbugs.gnu.org" <58481 <at> debbugs.gnu.org>
Subject: [PATCH 9/9] gnu: stellarium: Update to 1.0.
Date: Thu, 13 Oct 2022 05:43:12 +0000
[Message part 1 (text/plain, inline)]
* gnu/packages/astronomy.scm (stellarium): Update to 1.0.
---
 gnu/packages/astronomy.scm | 80 +++++++++++++++++++++++---------------
 1 file changed, 49 insertions(+), 31 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 72e923e895..5798d8004f 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -43,6 +43,8 @@ (define-module (gnu packages astronomy)
   #:use-module (gnu packages gl)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
+  #:use-module (gnu packages gps)
+  #:use-module (gnu packages graphviz)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages image)
   #:use-module (gnu packages libusb)
@@ -66,6 +68,7 @@ (define-module (gnu packages astronomy)
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages video)
   #:use-module (gnu packages wxwidgets)
+  #:use-module (gnu packages xdisorg)
   #:use-module (gnu packages xiph)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
@@ -74,6 +77,7 @@ (define-module (gnu packages astronomy)
   #:use-module (guix build-system copy)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python)
+  #:use-module (guix build utils)
   #:use-module (guix download)
   #:use-module (guix gexp)
   #:use-module (guix git-download)
@@ -759,42 +763,56 @@ (define-public calcmysky
 (define-public stellarium
   (package
     (name "stellarium")
-    (version "0.21.1")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (string-append "https://github.com/Stellarium/stellarium"
-                           "/releases/download/v" version
-                           "/stellarium-" version ".tar.gz"))
-       (sha256
-        (base32 "049jlc8vx06pad5h2syrmf7f1l346yr5iraai0wkn8s8pk30j8q7"))))
+    (version "1.0")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append "https://github.com/Stellarium/stellarium"
+                                 "/releases/download/v" version
+                                 "/stellarium-" version ".tar.gz"))
+             (sha256
+              (base32 "0gzksnskk0a105dji5j7hjizmyc7bs9riz6650hv417bq70i46as"))))
     (build-system cmake-build-system)
     (inputs
-     (list qtbase-5
-           qtlocation
-           qtmultimedia-5
-           qtscript
-           qtserialport-5
+     (list qtbase
+           qtmultimedia
+           qtpositioning
+           qttools
+           qtimageformats
+           qtwebengine
+           qtwebchannel
+           qtcharts
+           qtserialport
+           qtdeclarative
+           libxkbcommon
+           calcmysky
+           qxlsx
+           indi
+           libnova
+           gpsd
            zlib))
     (native-inputs
-     `(("gettext" ,gettext-minimal)     ; xgettext is used at compile time
-       ("perl" ,perl)                   ; for pod2man
-       ("qtbase" ,qtbase-5)               ; Qt MOC is needed at compile time
-       ("qttools-5" ,qttools-5)))
+     (list gettext-minimal ; xgettext is used at compile time
+           perl            ; for pod2man
+           qtbase          ; Qt MOC is needed at compile time
+           graphviz
+           doxygen
+           qttools))
     (arguments
-     `(#:test-target "test"
-       #:configure-flags (list "-DENABLE_TESTING=1"
-                               (string-append
-                                "-DCMAKE_CXX_FLAGS=-isystem "
-                                (assoc-ref %build-inputs "qtserialport-5")
-                                "/include/qt5"))
-       #:phases (modify-phases %standard-phases
-                  (add-before 'check 'set-offscreen-display
-                    (lambda _
-                      ;; Make Qt render "offscreen", required for tests.
-                      (setenv "QT_QPA_PLATFORM" "offscreen")
-                      (setenv "HOME" "/tmp")
-                      #t)))))
+     (list #:test-target "test"
+           #:configure-flags
+           #~(list "-DENABLE_TESTING=1"
+                   "-DENABLE_QT6=1"
+                   (string-append
+                    "-DCMAKE_CXX_FLAGS=-isystem "
+                    #$(this-package-input "qtserialport")
+                    "/include/qt6"))
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-before 'check 'set-offscreen-display
+                 (lambda _
+                   ;; Make Qt render "offscreen", required for tests.
+                   (setenv "QT_QPA_PLATFORM" "offscreen")
+                   (setenv "HOME" "/tmp"))))))
     (home-page "https://stellarium.org/")
     (synopsis "3D sky viewer")
     (description "Stellarium is a planetarium.  It shows a realistic sky in
-- 

2.38.0

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#58481; Package guix-patches. (Wed, 03 May 2023 08:25:01 GMT) Full text and rfc822 format available.

Message #38 received at 58481 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 58481 <at> debbugs.gnu.org
Date: Wed, 3 May 2023 09:24:09 +0100
[Message part 1 (text/plain, inline)]
Hi,

I've managed to update Stellarium (in Guix now) to the latest (23.1)
version with Qt5 support and in process to add Qt6 builds for each missing
inputs.

If you are still interested in this let's share the efforts?

Regards,
Oleg
[Message part 2 (text/html, inline)]

Reply sent to Sharlatan Hellseher <sharlatanus <at> gmail.com>:
You have taken responsibility. (Thu, 08 Feb 2024 18:28:02 GMT) Full text and rfc822 format available.

Notification sent to Cairn <cairn <at> pm.me>:
bug acknowledged by developer. (Thu, 08 Feb 2024 18:28:02 GMT) Full text and rfc822 format available.

Message #43 received at 58481-done <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 58481-done <at> debbugs.gnu.org
Subject: [WIP PATCH 0/9] gnu: stellarium: Update to 1.0.
Date: Thu, 08 Feb 2024 18:27:12 +0000
[Message part 1 (text/plain, inline)]
Hi,

Closing this issue as Stellarium is updated already, and this patch
series is not actual any longer.

Thanks,
Oleg
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 08 Mar 2024 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 43 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.