Kei Kebreau <kkebr...@posteo.net> writes:

> Danny Milosavljevic <dan...@scratchpost.org> writes:
>
>> Hi Kei,
>>
>> On Sat, 15 Dec 2018 13:51:43 -0500
>> Kei Kebreau <kkebr...@posteo.net> wrote:
>>
>>> Understood. Thanks to you and Ludovic for cleaning up my small mess.
>>
>> I think it's only a workaround.
>>
>> What happened to the MIT scheme C fallback?  I tried to fix it for
>> good but then
>> the armhf-linux build still didn't work:
>>
>
> I pull the following quote from "Stable Release 10.1" on
> https://www.gnu.org/software/mit-scheme/release.html:
>
> "The portable C version is not included in this release because we were
> unable to get it working in time."
>
> Based on the above quote I'm assuming the C fallback is coming back, so
> according to Mark's evaluation I shouldn't have removed armhf-linux from
> the supported-systems.
>
>> If there was once a architecture-independent MIT scheme, let's use that one 
>> to
>> bootstrap the newer version, if possible.
>>
>
> It is possible. The architecture-independent version is the C-based
> one. I'll look into your patch and follow changes upstream to see about
> repairing the situation ASAP.

This patch gives an error related to an attempt to subtract two
incompatible pointers. The MIT/GNU Scheme home page mentions that the
SVM build is for 64-bit unix systems, however.

From c3a7491dceb7cb81651a3c7a83cea0bb736c6738 Mon Sep 17 00:00:00 2001
From: Kei Kebreau <kkebr...@posteo.net>
Date: Mon, 17 Dec 2018 09:37:46 -0500
Subject: [PATCH] gnu: mit-scheme: Add SVM build.

* gnu/packages/scheme.scm (mit-scheme-source-directory): Adjust for the time
being.
* gnu/packages/scheme.scm (mit-scheme)[arguments]: Adjust 'build' phase
accordingly.
[inputs]: Adjust catch-all case in "source" input accordingly.
[supported-systems]: Add armhf-linux.
---
 gnu/packages/scheme.scm | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm
index 3c688e120..06812e2ef 100644
--- a/gnu/packages/scheme.scm
+++ b/gnu/packages/scheme.scm
@@ -74,7 +74,7 @@
                  (if (or (string-prefix? "x86_64" system)
                          (string-prefix? "i686" system))
                      ""
-                     "c-")
+                     "")
                  version))
 
 (define-public mit-scheme
@@ -113,8 +113,7 @@
                (if (or (string-prefix? "x86_64" system)
                        (string-prefix? "i686" system))
                    (invoke "make" "compile-microcode")
-                   (invoke "./etc/make-liarc.sh"
-                           (string-append "--prefix=" out)))
+                   (invoke "make"))
                #t)))
          (add-after 'configure 'configure-doc
            (lambda* (#:key outputs inputs #:allow-other-keys)
@@ -173,7 +172,7 @@
                                 ("i686-linux"
                                  (string-append version "-i386"))
                                 (_
-                                 (string-append "c-" version)))
+                                 (string-append version "-svm1")))
                               ".tar.gz"))
           (sha256
            (match (%current-system)
@@ -184,13 +183,11 @@
               (base32
                "05sjyz90xxfnmi87qv8x0yx0fcallnzl1dciygdafp317pn489is"))
              (_
-               (base32
-                ""))))))))
+              (base32
+               "0ka3l1m2jlyszm8kkv9pw33izmhw5j52rbfxx4zfqmwn7a5b3ays"))))))))
 
     ;; Fails to build on MIPS, see <http://bugs.gnu.org/18221>.
-    ;; Also, the portable C version of MIT/GNU Scheme did not work in time for
-    ;; release in version 10.1.
-    (supported-systems '("x86_64-linux" "i686-linux"))
+    (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux"))
 
     (home-page "https://www.gnu.org/software/mit-scheme/";)
     (synopsis "A Scheme implementation with integrated editor and debugger")
-- 
2.19.2

Attachment: signature.asc
Description: PGP signature

Reply via email to