From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#34203: scmutils fails to build Date: Fri, 25 Jan 2019 23:15:02 +0100 Message-ID: <87d0okv0yh.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:36053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gn9lb-0003Yo-E1 for bug-guix@gnu.org; Fri, 25 Jan 2019 17:16:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gn9la-00057Z-Ha for bug-guix@gnu.org; Fri, 25 Jan 2019 17:16:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46404) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gn9la-00057L-ED for bug-guix@gnu.org; Fri, 25 Jan 2019 17:16:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gn9la-0001jq-8Z for bug-guix@gnu.org; Fri, 25 Jan 2019 17:16:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:35791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gn9lH-0003MV-6p for bug-guix@gnu.org; Fri, 25 Jan 2019 17:15:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gn9lC-0004kY-F1 for bug-guix@gnu.org; Fri, 25 Jan 2019 17:15:39 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21048) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gn9l4-0004ZX-Vq for bug-guix@gnu.org; Fri, 25 Jan 2019 17:15:34 -0500 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 34203@debbugs.gnu.org scmutils fails to build with the current MIT Scheme. I first thought it might just be minor problems, so I applied some patches in build phases: --8<---------------cut here---------------start------------->8--- diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm index bcaccb452..bb2a9f9fb 100644 --- a/gnu/packages/scheme.scm +++ b/gnu/packages/scheme.scm @@ -680,8 +680,25 @@ threads.") "(disk-save \"edwin-mechanics.com\")'" "| mit-scheme"))) (with-directory-excursion "scmutils/scmutils" - (and (zero? (system "mit-scheme < compile.scm")) - (zero? (system make-img)))) + ;; Case seems to be important. + (substitute* "kernel/utils.scm" + (("#F") "#f")) + (substitute* "display/exdisplay.scm" + (("SPACE") "space")) + (substitute* "enclose/jinx-utils.scm" + (("Space") "space")) + ;; These files only contain comments, so don't compile = them + ;; or else we get an error. + (substitute* "mechanics/compile.scm" + (("\"Lagrangian-evolution\"") "") + (("\"Hamiltonian-evolution\"") "") + (("\"generating-functions\"") "")) + (substitute* "compile.scm" + (("\\(cf \"./patch\"\\)") "(display \"skipping\")")) + + (invoke "mit-scheme" "--load" "compile.scm") + (unless (zero? (system make-img)) + (error "could not build scmutils"))) #t))) (add-before 'install 'fix-directory-names ;; Correct directory names in the startup script. --8<---------------cut here---------------end--------------->8--- Unfortunately, this is not enough as some procedure bindings have disappeared, such as =E2=80=9Cguarantee-procedure-arity=E2=80=9D. The compilation results in a lot of warnings; I=E2=80=99m not sure if they = are harmless. There is no more recent release of scmutils. There is a port to Guile 2.0, but it is not obvious how to compile it: https://www.cs.rochester.edu/~gildea/guile-scmutils/ -- Ricardo