unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#64287] [PATCH 0/9]: gnu: Monthly astronomy packages update II.
@ 2023-06-25 21:26 Sharlatan Hellseher
  2023-06-25 21:28 ` [bug#64287] [PATCH 1/9] gnu: weightwatcher: Fix build Sharlatan Hellseher
                   ` (10 more replies)
  0 siblings, 11 replies; 15+ messages in thread
From: Sharlatan Hellseher @ 2023-06-25 21:26 UTC (permalink / raw)
  To: 64287; +Cc: Sharlatan Hellseher, Andreas Enge, Efraim Flashner, Eric Bavier

Hi Guix!

Here is the second portion of updated packages which required slightly more
time to fix build.

Related issue: https://issues.guix.gnu.org/64201
> ./pre-inst-env guix build $(./pre-inst-env guix refresh --list-dependent weightwatcher swarp eye missfits skymaker stuff xplanet celestia celestia-gtk | awk -F: '{print $2}')
> /gnu/store/wlj0qmqmdanf9lnp8pwhl8cbp17hfy0h-weightwatcher-1.12
> /gnu/store/rjmllavswr3gh16r2a71lsv3xpy77jb9-swarp-2.41.2
> /gnu/store/849qwh680v5jfwvkqmzxywc5fc2m5yw4-eye-1.4.1
> /gnu/store/0j8d53v2xqhv01ynf2mfrvs6gq7apvrq-missfits-2.8.0
> /gnu/store/h32vvmk6skh6ayg2k85v8pr13yxladys-skymaker-3.10.5-0.1a69c47
> /gnu/store/pfz0kn2pzg3jwsa14xc79n1vs4gis053-stuff-1.26.0-0.9008dc0
> /gnu/store/zjcj1f3y5rznrfxrp170i6rxdjlixazr-xplanet-1.3.1
> /gnu/store/8z64qb4cwlg6858rx4mfzc36fpwvhiri-celestia-1.6.3
> /gnu/store/f3gz0dax5xdyw9zc7y4mwmjaymki2lb1-celestia-gtk-1.6.3

Sharlatan Hellseher (9):
  gnu: weightwatcher: Fix build.
  gnu: swarp: Update to 2.41.2, fix build.
  gnu: eye: Fix build.
  gnu: missfits: Fix build.
  gnu: skymaker: Update to 3.10.5-0.1a69c47, fix build.
  gnu: stuff: Update to 1.26.0-0.9008dc0, fix build.
  gnu: xplanet: Use G-expressions.
  gnu: celestia: Update to 1.6.3.
  gnu: celestia-gtk: Fix build.

 gnu/packages/astronomy.scm | 321 ++++++++++++++++++++++---------------
 1 file changed, 194 insertions(+), 127 deletions(-)


base-commit: e4087930f3ad60918689be5f4bca4ce3e22429f5
prerequisite-patch-id: 7c008dd4fca64d840022c7493ddcda0945d1a8f0
prerequisite-patch-id: 248d09752ee3528ab7c045fd7c02fbd96bcd07fb
prerequisite-patch-id: 01eee56f1f2420e733ae33bd39f5dfbb83206aaf
prerequisite-patch-id: b6ad7866b5505bb97ada7a9f753472d579bffe29
prerequisite-patch-id: 3e7c5aa22cc6bb3e339a6ecb409493f1aeb62000
prerequisite-patch-id: 05b64135894b24f6dc13d710f6b772fe217ca160
prerequisite-patch-id: c9e7396a083dfccebd4d66c676dc37c943b1a2f8
prerequisite-patch-id: 1cd7ce03c60d65b087e7e32927a3dcb22d917891
prerequisite-patch-id: f6fd4ac8c72806e169fc93dc0095995318186791
prerequisite-patch-id: 67c06616d8e3020a82731f83e2270049a05e06c7
prerequisite-patch-id: 3d7cffe6b2cd524f638ae0240fc1ed613b7b1029
prerequisite-patch-id: 7889c1c3dae3a087ab122a428546c0bd164624ed
prerequisite-patch-id: d9d5994805a5acd9dd5c3df21e40d464185ad838
prerequisite-patch-id: 7bfbbf9850fb5812585d257372f34fedabd47378
prerequisite-patch-id: 14e8a915fdd6aa622328a7b2a17b16f3259f8325
prerequisite-patch-id: 466d016b2cd921bc731f3ec6abc4c2e5768d592f
prerequisite-patch-id: 3323bc68f3e425662103c8c515cd293eb9673386
prerequisite-patch-id: 616bcc41a9f9bcfed23f3aedb532c5f4059f54d3
prerequisite-patch-id: 9f1c337775791a16aa470f2b965c6e5caa59d183
prerequisite-patch-id: 3628c515672b3893ae23e417f32667a5666701e5
-- 
2.40.1





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

* [bug#64287] [PATCH 1/9] gnu: weightwatcher: Fix build.
  2023-06-25 21:26 [bug#64287] [PATCH 0/9]: gnu: Monthly astronomy packages update II Sharlatan Hellseher
@ 2023-06-25 21:28 ` Sharlatan Hellseher
  2023-06-25 21:28 ` [bug#64287] [PATCH 2/9] gnu: swarp: Update to 2.41.2, fix build Sharlatan Hellseher
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Sharlatan Hellseher @ 2023-06-25 21:28 UTC (permalink / raw)
  To: 64287; +Cc: Sharlatan Hellseher, Andreas Enge, Efraim Flashner, Eric Bavier

* gnu/packages/astronomy.scm (weightwatcher): Fix build.
[source]: Swap to 'git-fetch, as source was removed from home page.
[arguments]: Add #:configure-flags to fix the build phase.
---
 gnu/packages/astronomy.scm | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 6c43003618..a7faa2c425 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -641,12 +641,22 @@ (define-public weightwatcher
     (version "1.12")
     (source
      (origin
-       (method url-fetch)
-       (uri (string-append "https://www.astromatic.net/download/weightwatcher/"
-                           "weightwatcher-" version ".tar.gz"))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/astromatic/weightwatcher")
+             (commit version)))
        (sha256
-        (base32 "1zaqd8d9rpgcwjsp92q3lkfaa22i20gppb91dz34ym54swisjc2p"))))
+        (base32
+         "0701z6bdqq32jv7ga3n6jh27q684ni0hbfjm1mak7rh0qqx089gi"))
+       (file-name (git-file-name name version))))
     (build-system gnu-build-system)
+    (arguments
+     (list
+      #:configure-flags
+      #~(list
+         ;; Address this link error:
+         ;; ld: ... multiple definition of ... first defined here
+         "CFLAGS=-O2 -g -fcommon")))
     (home-page "https://www.astromatic.net/software/weightwatcher")
     (synopsis "Weight-map/flag-map multiplexer and rasteriser")
     (description
-- 
2.40.1





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

* [bug#64287] [PATCH 2/9] gnu: swarp: Update to 2.41.2, fix build.
  2023-06-25 21:26 [bug#64287] [PATCH 0/9]: gnu: Monthly astronomy packages update II Sharlatan Hellseher
  2023-06-25 21:28 ` [bug#64287] [PATCH 1/9] gnu: weightwatcher: Fix build Sharlatan Hellseher
@ 2023-06-25 21:28 ` Sharlatan Hellseher
  2023-06-25 21:28 ` [bug#64287] [PATCH 3/9] gnu: eye: Fix build Sharlatan Hellseher
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Sharlatan Hellseher @ 2023-06-25 21:28 UTC (permalink / raw)
  To: 64287; +Cc: Sharlatan Hellseher, Andreas Enge, Efraim Flashner, Eric Bavier

* gnu/packages/astronomy.scm (swarp): Update to 2.41.2, fix build.
[source]: Swap to 'git-fetch.
[native-inputs]: Add automake, autoconf, libtool, pkg-config.
[inputs]: Add cfitsio.
---
 gnu/packages/astronomy.scm | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index a7faa2c425..17bc4ed7d7 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1073,15 +1073,28 @@ (define-public stuff
 (define-public swarp
   (package
     (name "swarp")
-    (version "2.38.0")
+    (version "2.41.2")
     (source
      (origin
-       (method url-fetch)
-       (uri (string-append "https://www.astromatic.net/download/swarp/"
-                           "swarp-" version ".tar.gz"))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/astromatic/swarp")
+             (commit (string-append "v" version))))
        (sha256
-        (base32 "1i670waqp54vin1cn08mqckcggm9zqd69nk7yya2vvqpdizn6jpm"))))
+        (base32 "1ycdk5h77mflw3hnmkczj1m2603aks9vq6555f3vc5vj1shx2d4m"))
+       (file-name (git-file-name name version))))
     (build-system gnu-build-system)
+    (arguments
+     (list
+      #:configure-flags
+      #~(list
+         ;; Address this link error:
+         ;; ld: ... multiple definition of ... first defined here
+         "CFLAGS=-O2 -g -fcommon")))
+    (native-inputs
+     (list automake autoconf libtool pkg-config))
+    (inputs
+     (list cfitsio))
     (home-page "https://www.astromatic.net/software/swarp")
     (synopsis "FITS image resampling and co-addition")
     (description
-- 
2.40.1





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

* [bug#64287] [PATCH 3/9] gnu: eye: Fix build.
  2023-06-25 21:26 [bug#64287] [PATCH 0/9]: gnu: Monthly astronomy packages update II Sharlatan Hellseher
  2023-06-25 21:28 ` [bug#64287] [PATCH 1/9] gnu: weightwatcher: Fix build Sharlatan Hellseher
  2023-06-25 21:28 ` [bug#64287] [PATCH 2/9] gnu: swarp: Update to 2.41.2, fix build Sharlatan Hellseher
@ 2023-06-25 21:28 ` Sharlatan Hellseher
  2023-06-25 21:28 ` [bug#64287] [PATCH 4/9] gnu: missfits: " Sharlatan Hellseher
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Sharlatan Hellseher @ 2023-06-25 21:28 UTC (permalink / raw)
  To: 64287; +Cc: Sharlatan Hellseher, Andreas Enge, Efraim Flashner, Eric Bavier

* gnu/packages/astronomy.scm (eye): Fix build.
[source]: Swap to 'git-fetch
[arguments]: Add CPPFLAGS to pass build with GCC 10.
---
 gnu/packages/astronomy.scm | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 17bc4ed7d7..326a9a170e 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -579,12 +579,21 @@ (define-public eye
     (version "1.4.1")
     (source
      (origin
-       (method url-fetch)
-       (uri (string-append "https://www.astromatic.net/download/eye/"
-                           "eye-" version ".tar.gz"))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/astromatic/eye")
+             (commit version)))
        (sha256
-        (base32 "092qhzcbrkcfidbx4bv9wz42w297n80jk7a6kwyi9a3fjfz81d7k"))))
+        (base32 "1j8rpgz3fjp6fw0qmxgfqycf3n01fzxds4w12vgyrhbnk658ia41"))
+       (file-name (git-file-name name version))))
     (build-system gnu-build-system)
+    (arguments
+     (list
+      #:configure-flags
+      #~(list
+         ;; Address this link error:
+         ;; ld: ... multiple definition of ... first defined here
+         "CPPFLAGS=-O2 -g -fcommon")))
     (home-page "https://www.astromatic.net/software/eye")
     (synopsis "Small image feature detector using machine learning")
     (description
-- 
2.40.1





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

* [bug#64287] [PATCH 4/9] gnu: missfits: Fix build.
  2023-06-25 21:26 [bug#64287] [PATCH 0/9]: gnu: Monthly astronomy packages update II Sharlatan Hellseher
                   ` (2 preceding siblings ...)
  2023-06-25 21:28 ` [bug#64287] [PATCH 3/9] gnu: eye: Fix build Sharlatan Hellseher
@ 2023-06-25 21:28 ` Sharlatan Hellseher
  2023-06-25 21:28 ` [bug#64287] [PATCH 5/9] gnu: skymaker: Update to 3.10.5-0.1a69c47, fix build Sharlatan Hellseher
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Sharlatan Hellseher @ 2023-06-25 21:28 UTC (permalink / raw)
  To: 64287; +Cc: Sharlatan Hellseher, Andreas Enge, Efraim Flashner, Eric Bavier

* gnu/packages/astronomy.scm (missfits): Fix build.
[source]: Swap to 'git-fetch.
[arguments]: Add CPPFLAGS to pass build with GCC 10.
---
 gnu/packages/astronomy.scm | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 326a9a170e..4c869fc295 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2653,12 +2653,21 @@ (define-public missfits
     (version "2.8.0")
     (source
      (origin
-       (method url-fetch)
-       (uri (string-append "https://www.astromatic.net/download/missfits/"
-                           "missfits-" version ".tar.gz"))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/astromatic/missfits")
+             (commit version)))
        (sha256
-        (base32 "04jrd7fsvzr14vdmwgj2f6v97gdcfyjyz6jppml3ghr9xh12jxv5"))))
+        (base32 "12ndvrr3l5j7ph2i5f3qf0wqmv5ymsyjzxnnypqajsvliw72iprh"))
+       (file-name (git-file-name name version))))
     (build-system gnu-build-system)
+    (arguments
+     (list
+      #:configure-flags
+      #~(list
+         ;; Address this link error:
+         ;; ld: ... multiple definition of ... first defined here
+         "CPPFLAGS=-O2 -g -fcommon")))
     (home-page "https://www.astromatic.net/software/missfits")
     (synopsis "FITS files Maintenance program")
     (description
-- 
2.40.1





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

* [bug#64287] [PATCH 5/9] gnu: skymaker: Update to 3.10.5-0.1a69c47, fix build.
  2023-06-25 21:26 [bug#64287] [PATCH 0/9]: gnu: Monthly astronomy packages update II Sharlatan Hellseher
                   ` (3 preceding siblings ...)
  2023-06-25 21:28 ` [bug#64287] [PATCH 4/9] gnu: missfits: " Sharlatan Hellseher
@ 2023-06-25 21:28 ` Sharlatan Hellseher
  2023-06-25 21:28 ` [bug#64287] [PATCH 6/9] gnu: stuff: Update to 1.26.0-0.9008dc0, " Sharlatan Hellseher
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Sharlatan Hellseher @ 2023-06-25 21:28 UTC (permalink / raw)
  To: 64287; +Cc: Sharlatan Hellseher, Andreas Enge, Efraim Flashner, Eric Bavier

* gnu/packages/astronomy.scm (skymaker): Update to 3.10.5-0.1a69c47, fix
build.
[source]: Swap to 'git-checkout and pin to the latest commit as upstream
version tag is not available.
[arguments]: Use G-expressions. #:configure-flags add CPPFLAGS to pass
build on GCC 10.
[native-inputs]: Add automake, autoconf, libtool, pkg-config.
---
 gnu/packages/astronomy.scm | 57 ++++++++++++++++++++++----------------
 1 file changed, 33 insertions(+), 24 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 4c869fc295..b5d96c932f 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -900,34 +900,43 @@ (define-public splash
     (license license:gpl2+)))
 
 (define-public skymaker
-  (package
-    (name "skymaker")
-    (version "3.10.5")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (string-append "https://www.astromatic.net/download/skymaker/"
-                           "skymaker-" version ".tar.gz"))
-       (sha256
-        (base32 "03zvx7c89plp9559niqv5532r233kza3ir992rg3nxjksqmrqvx1"))))
-    (build-system gnu-build-system)
-    (arguments
-     `(#:configure-flags
+  ;; XXX: No version tag availalbe in GitHub.
+  ;; See: https://github.com/astromatic/skymaker/issues/3
+  (let ((commit "1a69c4716bdc9b5c6d4a917b0bc2dbd47635c459")
+        (revision "0"))
+    (package
+      (name "skymaker")
+      (version (git-version "3.10.5" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/astromatic/skymaker")
+               (commit commit)))
+         (sha256
+          (base32 "1vin4vgvcmqmwjdchsxnap374559rksz55xmaliawnl3qpzxn1nk"))
+         (file-name (git-file-name name version))))
+      (build-system gnu-build-system)
+      (arguments
        (list
-        (string-append
-         "--with-fftw-libdir=" (assoc-ref %build-inputs "fftw") "/lib")
-        (string-append
-         "--with-fftw-incdir=" (assoc-ref %build-inputs "fftw") "/include"))))
-    (inputs
-     `(("fftw" ,fftwf)))
-    (home-page "https://www.astromatic.net/software/skymaker")
-    (synopsis "Astronomical image simulator")
-    (description
-     "SkyMaker is a program that simulates astronomical images.  It accepts
+        #:configure-flags
+        #~(list
+           "CPPFLAGS=-O2 -g -fcommon"
+           (string-append
+            "--with-fftw-libdir=" #$(this-package-input "fftwf") "/lib")
+           (string-append
+            "--with-fftw-incdir=" #$(this-package-input "fftwf") "/include"))))
+      (native-inputs
+       (list automake autoconf libtool pkg-config))
+      (inputs (list fftwf))
+      (home-page "https://www.astromatic.net/software/skymaker")
+      (synopsis "Astronomical image simulator")
+      (description
+       "SkyMaker is a program that simulates astronomical images.  It accepts
 object lists in ASCII generated by the Stuff program to produce realistic
 astronomical fields.  SkyMaker is part of the EFIGI
 (@url{https://www.astromatic.net/projects/efigi}) development project.")
-    (license license:gpl3+)))
+      (license license:gpl3+))))
 
 (define-public stackistry
   (package
-- 
2.40.1





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

* [bug#64287] [PATCH 6/9] gnu: stuff: Update to 1.26.0-0.9008dc0, fix build.
  2023-06-25 21:26 [bug#64287] [PATCH 0/9]: gnu: Monthly astronomy packages update II Sharlatan Hellseher
                   ` (4 preceding siblings ...)
  2023-06-25 21:28 ` [bug#64287] [PATCH 5/9] gnu: skymaker: Update to 3.10.5-0.1a69c47, fix build Sharlatan Hellseher
@ 2023-06-25 21:28 ` Sharlatan Hellseher
  2023-06-25 21:28 ` [bug#64287] [PATCH 7/9] gnu: xplanet: Use G-expressions Sharlatan Hellseher
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Sharlatan Hellseher @ 2023-06-25 21:28 UTC (permalink / raw)
  To: 64287; +Cc: Sharlatan Hellseher, Andreas Enge, Efraim Flashner, Eric Bavier

* gnu/packages/astronomy.scm (stuff): Update to 1.26.0-0.9008dc0, fix build.
[source]: Swap to 'git-checkout.
[native-inputs]: Add automake, autoconf, libtool, pkg-config.
---
 gnu/packages/astronomy.scm | 40 +++++++++++++++++++++++---------------
 1 file changed, 24 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index b5d96c932f..310a6340f5 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1068,25 +1068,33 @@ (define-public stellarium
     (license license:gpl2+)))
 
 (define-public stuff
-  (package
-    (name "stuff")
-    (version "1.26.0")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (string-append "https://www.astromatic.net/download/stuff/"
-                           "stuff-" version ".tar.gz"))
-       (sha256
-        (base32 "1syibi3b86z9pikhicvkkmgxm916j732fdiw0agw0lq6z13fdcjm"))))
-    (build-system gnu-build-system)
-    (home-page "https://www.astromatic.net/software/stuff")
-    (synopsis "Astronomical catalogue simulation")
-    (description
-     "Stuff is a program that simulates \"perfect\" astronomical catalogues.
+  ;; XXX: No version tag availalbe in GitHub.
+  ;; See: https://github.com/astromatic/stuff/issues/6
+  (let ((commit "9008dc022ef53331092da248cf0a794abd6783bf")
+        (revision "0"))
+    (package
+      (name "stuff")
+      (version (git-version "1.26.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/astromatic/stuff")
+               (commit commit)))
+         (sha256
+          (base32 "004sry5lqqm7s9x4l3agysp3n63y3ga35x1rwwda4m6dc6zvla6b"))
+         (file-name (git-file-name name version))))
+      (build-system gnu-build-system)
+      (native-inputs
+       (list automake autoconf libtool pkg-config))
+      (home-page "https://www.astromatic.net/software/stuff")
+      (synopsis "Astronomical catalogue simulation")
+      (description
+       "Stuff is a program that simulates \"perfect\" astronomical catalogues.
 It generates object lists in ASCII which can read by the SkyMaker program to
 produce realistic astronomical fields.  Stuff is part of the EFIGI development
 project.")
-    (license license:gpl3+)))
+      (license license:gpl3+))))
 
 (define-public swarp
   (package
-- 
2.40.1





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

* [bug#64287] [PATCH 7/9] gnu: xplanet: Use G-expressions.
  2023-06-25 21:26 [bug#64287] [PATCH 0/9]: gnu: Monthly astronomy packages update II Sharlatan Hellseher
                   ` (5 preceding siblings ...)
  2023-06-25 21:28 ` [bug#64287] [PATCH 6/9] gnu: stuff: Update to 1.26.0-0.9008dc0, " Sharlatan Hellseher
@ 2023-06-25 21:28 ` Sharlatan Hellseher
  2023-06-25 21:28 ` [bug#64287] [PATCH 8/9] gnu: celestia: Update to 1.6.3 Sharlatan Hellseher
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Sharlatan Hellseher @ 2023-06-25 21:28 UTC (permalink / raw)
  To: 64287; +Cc: Sharlatan Hellseher, Andreas Enge, Efraim Flashner, Eric Bavier

* gnu/packages/astronomy.scm (xplanet): Use G-expressions, improve
package style.
[inputs]: Remove labels.
---
 gnu/packages/astronomy.scm | 39 +++++++++++++++++++-------------------
 1 file changed, 20 insertions(+), 19 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 310a6340f5..b212f4614f 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2720,28 +2720,29 @@ (define-public xplanet
          "xplanet-1.3.1-libimage_gif.c.patch"
          "xplanet-1.3.1-xpUtil-Add2017LeapSecond.cpp.patch"))))
     (build-system gnu-build-system)
+    (arguments
+     (list
+      #:configure-flags
+      #~(list
+         ;; no nasa jpl cspice support
+         "--without-cspice"
+         ;; Give correct path for pnm.h header to configure script
+         (string-append
+          "CPPFLAGS=-I" #$(this-package-input "netpbm") "/include/netpbm"))))
     (native-inputs
      (list pkg-config))
     (inputs
-     `(("libx11" ,libx11)
-       ("libxscrnsaver" ,libxscrnsaver)
-       ("libice" ,libice)
-       ("freetype" ,freetype)
-       ("pango" ,pango)
-       ("giflib" ,giflib)
-       ("libjpeg" ,libjpeg-turbo)
-       ("libpng" ,libpng)
-       ("libtiff" ,libtiff)
-       ("netpbm" ,netpbm)
-       ("zlib" ,zlib)))
-    (arguments
-     `(#:configure-flags
-       (let ((netpbm (assoc-ref %build-inputs "netpbm")))
-         (append (list
-                  ;; Give correct path for pnm.h header to configure script
-                  (string-append "CPPFLAGS=-I" netpbm "/include/netpbm")
-                  ;; no nasa jpl cspice support
-                  "--without-cspice" )))))
+     (list libx11
+           freetype
+           giflib
+           libice
+           libjpeg-turbo
+           libpng
+           libtiff
+           libxscrnsaver
+           netpbm
+           pango
+           zlib))
     (home-page "https://xplanet.sourceforge.net/")
     (synopsis "Planetary body renderer")
     (description
-- 
2.40.1





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

* [bug#64287] [PATCH 8/9] gnu: celestia: Update to 1.6.3.
  2023-06-25 21:26 [bug#64287] [PATCH 0/9]: gnu: Monthly astronomy packages update II Sharlatan Hellseher
                   ` (6 preceding siblings ...)
  2023-06-25 21:28 ` [bug#64287] [PATCH 7/9] gnu: xplanet: Use G-expressions Sharlatan Hellseher
@ 2023-06-25 21:28 ` Sharlatan Hellseher
  2023-06-25 21:28 ` [bug#64287] [PATCH 9/9] gnu: celestia-gtk: Fix build Sharlatan Hellseher
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Sharlatan Hellseher @ 2023-06-25 21:28 UTC (permalink / raw)
  To: 64287; +Cc: Sharlatan Hellseher, Andreas Enge, Efraim Flashner, Eric Bavier

* gnu/packages/astronomy.scm (celestia): Update to 1.6.3, improve
package style.
[build-system]: Swap to 'gnu-build-system as versioned tag does not
contain Cmake build files.
[arguments]: Use G-expressions, update configure-flags to be compatible
with autoconf.
[native-inputs]: Remove labels. Add autoconf, automake.
[inputs]: Remove labels. Remove eigen, fmt-7, glew.
---
 gnu/packages/astronomy.scm | 91 ++++++++++++++++++++------------------
 1 file changed, 48 insertions(+), 43 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index b212f4614f..af75d493f6 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1129,54 +1129,59 @@ (define-public swarp
     (license license:gpl3+)))
 
 (define-public celestia
-  (let ((commit "9dbdf29c4ac3d20afb2d9a80d3dff241ecf81dce"))
-    (package
-      (name "celestia")
-      (version (git-version "1.6.1" "815" commit))
-      (source (origin
-                (method git-fetch)
-                (uri (git-reference
-                      (url "https://github.com/celestiaproject/celestia")
-                      (commit commit)))
-                (file-name (git-file-name name version))
-                (sha256
-                 (base32
-                  "00xibg87l1arzifakgj7s828x9pszcgx7x7ij88a561ig49ryh78"))))
-      (build-system cmake-build-system)
-      (native-inputs
-       `(("perl" ,perl)
-         ("libgit2" ,libgit2)
-         ("pkg-config" ,pkg-config)
-         ("libtool" ,libtool)
-         ("gettext" ,gettext-minimal)))
-      (inputs
-       `(("glu" ,glu)
-         ("glew" ,glew)
-         ("libtheora" ,libtheora)
-         ("libjpeg" ,libjpeg-turbo)
-         ("libpng" ,libpng)
-         ;; maybe required?
-         ("mesa" ,mesa)
-         ;; optional: fmtlib, Eigen3;
-         ("fmt" ,fmt-7)
-         ("eigen" ,eigen)
-         ;; glut: for glut interface
-         ("freeglut" ,freeglut)))
-      (propagated-inputs
-       (list lua))
-      (arguments
-       `(#:configure-flags '("-DENABLE_GLUT=ON" "-DENABLE_QT=OFF")
-         #:tests? #f))                            ;no tests
-      (home-page "https://celestia.space/")
-      (synopsis "Real-time 3D visualization of space")
-      (description
-       "This simulation program lets you explore our universe in three
+  (package
+    (name "celestia")
+    (version "1.6.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/celestiaproject/celestia")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0dzci5n7gcnm1vq916gsn9zddkhbzhbsakqxrpnmvzibsqznn6c8"))
+       (modules '((guix build utils)))
+       (snippet
+        #~(begin
+            ;; Make sure it detects the Lua's version packed in Guix.
+            ;; Review this part to support current default version of Lua in Guix.
+            (substitute* "configure.ac"
+                    (("lua5.3") "lua-5.3"))))))
+    (build-system gnu-build-system)
+    (arguments
+     (list
+      #:configure-flags
+      #~(list "--with-glut"
+              (string-append "--with-lua=" #$(this-package-input "lua")))))
+    (native-inputs
+     (list autoconf
+           automake
+           gettext-minimal
+           libgit2
+           libtool
+           perl
+           pkg-config))
+    (inputs
+     (list freeglut
+           glu
+           libjpeg-turbo
+           libpng
+           libtheora
+           mesa))
+    (propagated-inputs
+     (list lua))
+    (home-page "https://celestia.space/")
+    (synopsis "Real-time 3D visualization of space")
+    (description
+     "This simulation program lets you explore our universe in three
 dimensions.  Celestia simulates many different types of celestial objects.
 From planets and moons to star clusters and galaxies, you can visit every
 object in the expandable database and view it from any point in space and
 time.  The position and movement of solar system objects is calculated
 accurately in real time at any rate desired.")
-      (license license:gpl2+))))
+    (license license:gpl2+)))
+
 
 (define-public celestia-gtk
   (package
-- 
2.40.1





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

* [bug#64287] [PATCH 9/9] gnu: celestia-gtk: Fix build.
  2023-06-25 21:26 [bug#64287] [PATCH 0/9]: gnu: Monthly astronomy packages update II Sharlatan Hellseher
                   ` (7 preceding siblings ...)
  2023-06-25 21:28 ` [bug#64287] [PATCH 8/9] gnu: celestia: Update to 1.6.3 Sharlatan Hellseher
@ 2023-06-25 21:28 ` Sharlatan Hellseher
  2023-07-04 13:07 ` [bug#64287] Sharlatan Hellseher
  2023-07-09  8:30 ` bug#64287: Sharlatan Hellseher
  10 siblings, 0 replies; 15+ messages in thread
From: Sharlatan Hellseher @ 2023-06-25 21:28 UTC (permalink / raw)
  To: 64287; +Cc: Sharlatan Hellseher, Andreas Enge, Efraim Flashner, Eric Bavier

* gnu/packages/astronomy.scm (celestia-gtk): Fix build.
Use (package/inherit ...) over (inherit ...), see
https://issues.guix.gnu.org/issue/61674/raw/11.
[arguments]: Use G-expressions.
[inputs]: Swap to (modify-inputs ...) procedure. Add cairo, libxmu,
libtheora, pango-1.42.
---
 gnu/packages/astronomy.scm | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index af75d493f6..ca32ad8950 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1182,18 +1182,21 @@ (define-public celestia
 accurately in real time at any rate desired.")
     (license license:gpl2+)))
 
-
 (define-public celestia-gtk
-  (package
-    (inherit celestia)
+  (package/inherit celestia
     (name "celestia-gtk")
-    (inputs
-     (append (alist-delete "freeglut" (package-inputs celestia))
-             `(("gtk2" ,gtk+-2)
-               ("gtkglext" ,gtkglext))))
     (arguments
-     `(#:configure-flags '("-DENABLE_GTK=ON" "-DENABLE_QT=OFF")
-       #:tests? #f))))
+     (list
+      #:configure-flags
+      #~(list "--enable-cairo"
+              "--enable-theora"
+              "--with-gtk"
+              (string-append "--with-lua=" #$(this-package-input "lua")))))
+    (inputs
+     (modify-inputs (package-inputs celestia)
+       (replace "freeglut" gtk+-2)
+       (prepend cairo gtkglext libxmu libtheora pango-1.42)))
+    (synopsis "GTK+ build for the Celestia package.")))
 
 (define-public python-astropy
   (package
-- 
2.40.1





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

* [bug#64287]
  2023-06-25 21:26 [bug#64287] [PATCH 0/9]: gnu: Monthly astronomy packages update II Sharlatan Hellseher
                   ` (8 preceding siblings ...)
  2023-06-25 21:28 ` [bug#64287] [PATCH 9/9] gnu: celestia-gtk: Fix build Sharlatan Hellseher
@ 2023-07-04 13:07 ` Sharlatan Hellseher
  2023-07-08 18:56   ` [bug#64287] Sharlatan Hellseher
  2023-07-09  8:30 ` bug#64287: Sharlatan Hellseher
  10 siblings, 1 reply; 15+ messages in thread
From: Sharlatan Hellseher @ 2023-07-04 13:07 UTC (permalink / raw)
  To: 64287; +Cc: efraim, Maxim Cournoyer

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

Hi Guix team!

A gentle ping on this and related issue.

Regards,
Oleg

[-- Attachment #2: Type: text/html, Size: 206 bytes --]

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

* [bug#64287]
  2023-07-04 13:07 ` [bug#64287] Sharlatan Hellseher
@ 2023-07-08 18:56   ` Sharlatan Hellseher
  2023-07-08 19:19     ` [bug#64287] Tobias Geerinckx-Rice via Guix-patches via
  2023-07-09  8:41     ` [bug#64287] Sharlatan Hellseher
  0 siblings, 2 replies; 15+ messages in thread
From: Sharlatan Hellseher @ 2023-07-08 18:56 UTC (permalink / raw)
  To: 64287; +Cc: me

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

Hi Tobias,

I see you merged updates to wcslib in (gnu packages astronomy), if you have
a chance to take a look at these 2 sets of patches which have updates and
build fix for the same module.

Thanks,
Oleg

On Tue, 4 Jul 2023, 14:07 Sharlatan Hellseher, <sharlatanus@gmail.com>
wrote:

> Hi Guix team!
>
> A gentle ping on this and related issue.
>
> Regards,
> Oleg
>

[-- Attachment #2: Type: text/html, Size: 870 bytes --]

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

* [bug#64287]
  2023-07-08 18:56   ` [bug#64287] Sharlatan Hellseher
@ 2023-07-08 19:19     ` Tobias Geerinckx-Rice via Guix-patches via
  2023-07-09  8:41     ` [bug#64287] Sharlatan Hellseher
  1 sibling, 0 replies; 15+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2023-07-08 19:19 UTC (permalink / raw)
  To: Sharlatan Hellseher; +Cc: 64287

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

Oleg,

Sure!

Kind regards,

T G-R

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

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

* bug#64287:
  2023-06-25 21:26 [bug#64287] [PATCH 0/9]: gnu: Monthly astronomy packages update II Sharlatan Hellseher
                   ` (9 preceding siblings ...)
  2023-07-04 13:07 ` [bug#64287] Sharlatan Hellseher
@ 2023-07-09  8:30 ` Sharlatan Hellseher
  10 siblings, 0 replies; 15+ messages in thread
From: Sharlatan Hellseher @ 2023-07-09  8:30 UTC (permalink / raw)
  To: 64287-done

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



[-- Attachment #2: Type: text/html, Size: 23 bytes --]

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

* [bug#64287]
  2023-07-08 18:56   ` [bug#64287] Sharlatan Hellseher
  2023-07-08 19:19     ` [bug#64287] Tobias Geerinckx-Rice via Guix-patches via
@ 2023-07-09  8:41     ` Sharlatan Hellseher
  1 sibling, 0 replies; 15+ messages in thread
From: Sharlatan Hellseher @ 2023-07-09  8:41 UTC (permalink / raw)
  To: 64287; +Cc: Tobias Geerinckx-Rice

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

Oops,

I sent close request too early, not all of the patches are merged yet.



On Sat, 8 Jul 2023, 19:56 Sharlatan Hellseher, <sharlatanus@gmail.com>
wrote:

> Hi Tobias,
>
> I see you merged updates to wcslib in (gnu packages astronomy), if you
> have a chance to take a look at these 2 sets of patches which have updates
> and build fix for the same module.
>
> Thanks,
> Oleg
>
> On Tue, 4 Jul 2023, 14:07 Sharlatan Hellseher, <sharlatanus@gmail.com>
> wrote:
>
>> Hi Guix team!
>>
>> A gentle ping on this and related issue.
>>
>> Regards,
>> Oleg
>>
>

[-- Attachment #2: Type: text/html, Size: 1422 bytes --]

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

end of thread, other threads:[~2023-07-09  8:42 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-25 21:26 [bug#64287] [PATCH 0/9]: gnu: Monthly astronomy packages update II Sharlatan Hellseher
2023-06-25 21:28 ` [bug#64287] [PATCH 1/9] gnu: weightwatcher: Fix build Sharlatan Hellseher
2023-06-25 21:28 ` [bug#64287] [PATCH 2/9] gnu: swarp: Update to 2.41.2, fix build Sharlatan Hellseher
2023-06-25 21:28 ` [bug#64287] [PATCH 3/9] gnu: eye: Fix build Sharlatan Hellseher
2023-06-25 21:28 ` [bug#64287] [PATCH 4/9] gnu: missfits: " Sharlatan Hellseher
2023-06-25 21:28 ` [bug#64287] [PATCH 5/9] gnu: skymaker: Update to 3.10.5-0.1a69c47, fix build Sharlatan Hellseher
2023-06-25 21:28 ` [bug#64287] [PATCH 6/9] gnu: stuff: Update to 1.26.0-0.9008dc0, " Sharlatan Hellseher
2023-06-25 21:28 ` [bug#64287] [PATCH 7/9] gnu: xplanet: Use G-expressions Sharlatan Hellseher
2023-06-25 21:28 ` [bug#64287] [PATCH 8/9] gnu: celestia: Update to 1.6.3 Sharlatan Hellseher
2023-06-25 21:28 ` [bug#64287] [PATCH 9/9] gnu: celestia-gtk: Fix build Sharlatan Hellseher
2023-07-04 13:07 ` [bug#64287] Sharlatan Hellseher
2023-07-08 18:56   ` [bug#64287] Sharlatan Hellseher
2023-07-08 19:19     ` [bug#64287] Tobias Geerinckx-Rice via Guix-patches via
2023-07-09  8:41     ` [bug#64287] Sharlatan Hellseher
2023-07-09  8:30 ` bug#64287: Sharlatan Hellseher

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).