unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: Sharlatan Hellseher <sharlatanus@gmail.com>
Cc: 68641@debbugs.gnu.org, Andreas Enge <andreas@enge.fr>,
	Eric Bavier <bavier@posteo.net>
Subject: [bug#68641] [PATCH 17/19] gnu: libpasastro: Use G-Expressions.
Date: Wed, 24 Jan 2024 13:58:13 +0200	[thread overview]
Message-ID: <ZbD7VRXxpGTCDzfI@3900XT> (raw)
In-Reply-To: <cf8f755165383881d7a2b423568cb097670d0d40.1705854493.git.sharlatanus@gmail.com>

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

$ file /gnu/store/qb3jlcb068iv6fz1sqypr12zrcxgi6aq-libpasastro-1.4.2/lib/libpasgetdss.so.1.1
/gnu/store/qb3jlcb068iv6fz1sqypr12zrcxgi6aq-libpasastro-1.4.2/lib/libpasgetdss.so.1.1: ELF 64-bit LSB shared object, UCB RISC-V, RVC, double-float ABI, version 1 (SYSV), dynamically linked, stripped

This package compiles just fine for riscv64 so there's no reason to
limit it to only certain architectures.

On Sun, Jan 21, 2024 at 04:53:57PM +0000, Sharlatan Hellseher wrote:
> * gnu/packages/astronomy.scm (libpasastro):
> [supported-systems]: Add it.
> [arguments]: Rewrite using G-expressions.
> [description]; Remove trailing \n.
> 
> Change-Id: Ic0e79394be1110566f5481963fdd167985c1a770
> ---
>  gnu/packages/astronomy.scm | 41 ++++++++++++++++++++++----------------
>  1 file changed, 24 insertions(+), 17 deletions(-)
> 
> diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
> index dd7473df49..c049e6e67f 100644
> --- a/gnu/packages/astronomy.scm
> +++ b/gnu/packages/astronomy.scm
> @@ -3179,23 +3179,30 @@ (define-public libpasastro
>         (sha256
>          (base32 "1na3gyb3nzb5gdgccs1653j2gnz6w3v1mqzhyhkx3yqw8bs3q5x0"))))
>      (build-system gnu-build-system)
> +    (supported-systems '("i686-linux" "x86_64-linux"
> +                         "armhf-linux" "aarch64-linux"))
>      (arguments
> -     `(#:tests? #f
> -       #:make-flags
> -       (list
> -        ,(match (or (%current-target-system) (%current-system))
> -           ((or "aarch64-linux" "armhf-linux" "i686-linux" "x86_64-linux")
> -            "OS_TARGET=linux")
> -           (_ #f))
> -        ,(match (or (%current-target-system) (%current-system))
> -           ("i686-linux" "CPU_TARGET=i386")
> -           ("x86_64-linux" "CPU_TARGET=x86_64")
> -           ((or "armhf-linux" "aarch64-linux") "CPU_TARGET=armv7l")
> -           (_ #f))
> -        (string-append "PREFIX=" (assoc-ref %outputs "out")))
> -       #:phases
> -       (modify-phases %standard-phases
> -         (delete 'configure))))
> +     (list
> +      #:tests? #f ; no tests provided
> +      #:make-flags
> +      #~(list
> +         ;; Keep OS detection for the case when Hurd would be suitable to try.
> +         #$@(if (target-linux?) '("OS_TARGET=linux") '())
> +         ;; Enable buildtime CPU detection where supported,
> +         ;; and set a suitable CPU target variable.

(%current-target-system) returns i686-linux-gnu for the first one, so
it'd probably be better to use cond and (target-x86-32?) for the first
one.

I'm not actually convinced you need any of the flags for OS_TARGET or
CPU_TARGET (except perhaps for cross-compiling), does it make a
difference between compiled with or without?

> +         #$@(match (or (%current-target-system)
> +                       (%current-system))
> +              ("i686-linux"
> +               '("CPU_TARGET=i386"))
> +              ("x86_64-linux"
> +               '("CPU_TARGET=x86_64"))
> +              ((or "armhf-linux" "aarch64-linux")
> +               '("CPU_TARGET=armv7l"))
> +              (_ '()))
> +         (string-append "PREFIX=" #$output))
> +      #:phases
> +      #~(modify-phases %standard-phases
> +          (delete 'configure))))
>      (home-page "https://github.com/pchev/libpasastro")
>      (synopsis "Interface to astronomy library for use from Pascal program")
>      (description
> @@ -3207,7 +3214,7 @@ (define-public libpasastro
>  @item @code{libpasplan404.so}: Interface with Plan404 to compute planets position.
>  @item @code{libpaswcs.so}: Interface with libwcs to work with FITS WCS.
>  @item @code{libpasspice.so}: To work with NAIF/SPICE kernel.
> -@end itemize\n")
> +@end itemize")
>        (license license:gpl2+)))
>  
>  (define-public libxisf
> -- 
> 2.41.0
> 
> 
> 

-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

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

  reply	other threads:[~2024-01-24 11:59 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-21 16:51 [bug#68641] [PATCH 00/19] gnu: Astronomy 2024/01 updates Sharlatan Hellseher
2024-01-21 16:53 ` [bug#68641] [PATCH 01/19] gnu: stellarium: Update to 23.4 Sharlatan Hellseher
2024-01-21 16:53 ` [bug#68641] [PATCH 02/19] gnu: indi-2.0: Update to 2.0.5 Sharlatan Hellseher
2024-01-21 16:53 ` [bug#68641] [PATCH 03/19] gnu: gpredict: Update home-page and description Sharlatan Hellseher
2024-01-21 16:53 ` [bug#68641] [PATCH 04/19] gnu: libxisf: Update to 0.2.11 Sharlatan Hellseher
2024-01-21 16:53 ` [bug#68641] [PATCH 05/19] gnu: python-crds: Update to 11.17.14 Sharlatan Hellseher
2024-01-21 16:53 ` [bug#68641] [PATCH 06/19] gnu: python-drms: Update to 0.7.1 Sharlatan Hellseher
2024-01-21 16:53 ` [bug#68641] [PATCH 07/19] gnu: python-pyvo: Update to 1.5 Sharlatan Hellseher
2024-01-21 16:53 ` [bug#68641] [PATCH 08/19] gnu: python-stcal: Update to 1.5.2 Sharlatan Hellseher
2024-01-21 16:53 ` [bug#68641] [PATCH 09/19] gnu: python-sunpy: Update to 5.1.1 Sharlatan Hellseher
2024-01-21 16:53 ` [bug#68641] [PATCH 10/19] gnu: Add python-ndcube Sharlatan Hellseher
2024-01-21 16:53 ` [bug#68641] [PATCH 11/19] gnu: Add python-dust-extinction Sharlatan Hellseher
2024-01-21 16:53 ` [bug#68641] [PATCH 12/19] gnu: Add python-specutils Sharlatan Hellseher
2024-01-24 14:15   ` Maxim Cournoyer
2024-01-21 16:53 ` [bug#68641] [PATCH 13/19] gnu: python-synphot: Enable more options Sharlatan Hellseher
2024-01-24 14:16   ` Maxim Cournoyer
2024-01-21 16:53 ` [bug#68641] [PATCH 14/19] gnu: python-tweakwcs: Update to 0.8.6 Sharlatan Hellseher
2024-01-21 16:53 ` [bug#68641] [PATCH 15/19] gnu: python-skyfield: Update to 1.47 Sharlatan Hellseher
2024-01-21 16:53 ` [bug#68641] [PATCH 16/19] gnu: python-stsynphot: Fix build Sharlatan Hellseher
2024-01-21 16:53 ` [bug#68641] [PATCH 17/19] gnu: libpasastro: Use G-Expressions Sharlatan Hellseher
2024-01-24 11:58   ` Efraim Flashner [this message]
2024-01-21 16:53 ` [bug#68641] [PATCH 18/19] gnu: stackistry: " Sharlatan Hellseher
2024-01-21 16:53 ` [bug#68641] [PATCH 19/19] gnu: libnova: " Sharlatan Hellseher
2024-01-24 14:20 ` [bug#68641] [PATCH 00/19] gnu: Astronomy 2024/01 updates Maxim Cournoyer
2024-01-24 22:19 ` [bug#68641] [PATCH 17/19] gnu: libpasastro: Use G-Expressions Sharlatan Hellseher
2024-01-24 22:37 ` bug#68641: [PATCH 00/19] gnu: Astronomy 2024/01 updates Sharlatan Hellseher
2024-01-24 23:27 ` [bug#68641] " Sharlatan Hellseher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZbD7VRXxpGTCDzfI@3900XT \
    --to=efraim@flashner.co.il \
    --cc=68641@debbugs.gnu.org \
    --cc=andreas@enge.fr \
    --cc=bavier@posteo.net \
    --cc=sharlatanus@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).