[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#57050] [PATCH v3 12/14] gnu: chez-scheme-for-racket: Suport all sys
From: |
Philip McGrath |
Subject: |
[bug#57050] [PATCH v3 12/14] gnu: chez-scheme-for-racket: Suport all systems. |
Date: |
Thu, 25 Aug 2022 16:17:14 -0400 |
User-agent: |
Cyrus-JMAP/3.7.0-alpha0-841-g7899e99a45-fm-20220811.002-g7899e99a |
On Thu, Aug 25, 2022, at 6:50 AM, Efraim Flashner wrote:
> On Thu, Aug 25, 2022 at 11:24:31AM +0200, Liliana Marie Prikler wrote:
>> Should be "Support all systems".
>>
Thanks.
>> Am Donnerstag, dem 25.08.2022 um 04:54 -0400 schrieb Philip McGrath:
>> > +(define* (nix-system->pbarch-machine-type #:optional
>> > + (system
>> > + (or (%current-target-
>> > system)
>> > + (%current-system)))
>> > + #:key (threads? #t))
>> > + "Return a string naming the pseudo–machine type used by Racket's
>> > variant of
>> > +Chez Scheme to represent the appropriate ``pbarch'' backend for
>> > SYSTEM: that
>> > +is, the ``portable bytecode'' backend specialized for SYSTEM's word
>> > size and
>> > +endianness. The result will name the threaded machine type unless
>> > THREADS? is
>> > +provided and is #f."
>> > + (string-append (if threads?
>> > + "t"
>> > + "")
>> > + "pb"
>> > + (if (target-64bit? system)
>> > + "64"
>> > + "32")
>> > + ;; missing (guix utils) predicate target-little-
>> > endian?
>> > + (if (target-ppc32? system)
>> > + "b"
>> > + "l")))
>> > +
>> Don't we already have a function that does something similar? Can't we
>> add a #:portable-bytecode? keyword to that one?
>
> I'm not aware of a function that checks for endianness. The only other
> place I know of is (guix build-system meson), but there the logic is
> hand-written.
>
I also don't know of any function we could readily adapt. Thanks for the
pointer to (guix build-system meson): I see 'target-ppc32?' is the only
big-endian case there as well.
>> > @@ -543,10 +577,7 @@ (define-public chez-scheme-for-racket
>> > (add-after 'unpack 'chdir
>> > (lambda args
>> > (chdir "racket/src/ChezScheme"))))))))
>> > - ;; TODO: How to build pbarch/pbchunks for other systems?
>> > - ;; See https://racket.discourse.group/t/950
>> > - (supported-systems (filter racket-cs-native-supported-system?
>> > - %supported-systems))
>> > + (supported-systems %supported-systems)
>> I don't think this needs to be specified, does it?
>>
>> See the definition in guix/packages.scm:
>> (supported-systems package-supported-systems ; list of strings
>> (default %supported-systems))
>
> Unless this package inherits from somewhere else then by default
> supported-systems is all systems. (Regardless if all dependencies are
> supported. To see more look at the difference between
> (package-supported-systems "pandoc") and
> (package-transitive-supported-systems "pandoc"))
>
>
'chez-scheme-for-racket' and 'chez-scheme-for-racket-bootstrap-bootfiles'
inherit from
'chez-scheme' and 'chez-scheme-bootstrap-bootfiles', respectively, so we need
to override the inherited value.
-Philip
- [bug#57050] [PATCH v3 07/14] gnu: Add Zuo., (continued)
- [bug#57050] [PATCH v3 07/14] gnu: Add Zuo., Liliana Marie Prikler, 2022/08/27
- [bug#57050] [PATCH v3 06/14] gnu: chez-scheme: Fix use of "/bin/sh"., Philip McGrath, 2022/08/25
- [bug#57050] [PATCH v3 08/14] gnu: racket: Update to 8.6., Philip McGrath, 2022/08/25
- [bug#57050] [PATCH v3 08/14] gnu: racket: Update to 8.6., Liliana Marie Prikler, 2022/08/25
- [bug#57050] [PATCH v3 08/14] gnu: racket: Update to 8.6., Efraim Flashner, 2022/08/25
- [bug#57050] [PATCH v3 11/14] gnu: racket: Support cross-compiling the VM packages., Philip McGrath, 2022/08/25
- [bug#57050] [PATCH v3 09/14] gnu: chez-scheme: Make bootfiles regular inputs., Philip McGrath, 2022/08/25
- [bug#57050] [PATCH v3 12/14] gnu: chez-scheme-for-racket: Suport all systems., Philip McGrath, 2022/08/25
- [bug#57050] [PATCH v3 12/14] gnu: chez-scheme-for-racket: Suport all systems., Liliana Marie Prikler, 2022/08/25
- [bug#57050] [PATCH v3 12/14] gnu: chez-scheme-for-racket: Suport all systems., Efraim Flashner, 2022/08/25
- [bug#57050] [PATCH v3 12/14] gnu: chez-scheme-for-racket: Suport all systems.,
Philip McGrath <=
- [bug#57050] [PATCH v3 13/14] gnu: racket-vm-bc: Add workaround for ppc64le., Philip McGrath, 2022/08/25
- [bug#57050] [PATCH v3 10/14] gnu: chez-scheme-for-racket: Support cross-compilation., Philip McGrath, 2022/08/25
- [bug#57050] [PATCH v3 14/14] gnu: racket: Use Racket CS on all systems., Philip McGrath, 2022/08/25
- [bug#57050] [PATCH v3 14/14] gnu: racket: Use Racket CS on all systems., Liliana Marie Prikler, 2022/08/25
- [bug#57050] [PATCH v3 00/14] gnu: Update Racket to 8.6. Add Zuo., Thiago Jung Bauermann, 2022/08/26
- [bug#57050] [PATCH v4 00/14] gnu: Update Racket to 8.6. Add Zuo., Philip McGrath, 2022/08/27
- [bug#57050] [PATCH v4 02/14] gnu: stex: Fix read-only gifs and math directories., Philip McGrath, 2022/08/27
- [bug#57050] [PATCH v4 05/14] gnu: racket: Adjust patch for "/bin/sh" in rktio., Philip McGrath, 2022/08/27
- [bug#57050] [PATCH v4 06/14] gnu: chez-scheme: Fix use of "/bin/sh"., Philip McGrath, 2022/08/27
- [bug#57050] [PATCH v4 01/14] gnu: stex: Update to 1.2.2-2.afa6075., Philip McGrath, 2022/08/27