guix-patches
[Top][All Lists]
Advanced

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

[bug#64287] [PATCH 4/9] gnu: missfits: Fix build.


From: Sharlatan Hellseher
Subject: [bug#64287] [PATCH 4/9] gnu: missfits: Fix build.
Date: Sun, 25 Jun 2023 22:28:16 +0100

* 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






reply via email to

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