GNU bug report logs - #34203
scmutils fails to build

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Ricardo Wurmus <rekado@HIDDEN>; dated Fri, 25 Jan 2019 22:16:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at submit <at>

Received: (at submit) by; 25 Jan 2019 22:15:51 +0000
From debbugs-submit-bounces <at> Fri Jan 25 17:15:51 2019
Received: from localhost ([]:45685
	by with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at>>)
	id 1gn9lP-0001jN-BW
	for submit <at>; Fri, 25 Jan 2019 17:15:51 -0500
Received: from ([]:53876)
 by with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1gn9lN-0001jB-Q2
 for submit <at>; Fri, 25 Jan 2019 17:15:50 -0500
Received: from ([]:55480)
 by with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <rekado@HIDDEN>) id 1gn9lI-0004rd-Bg
 for submit <at>; Fri, 25 Jan 2019 17:15:44 -0500
Received: from ([]:35791)
 by with esmtp (Exim 4.71)
 (envelope-from <rekado@HIDDEN>) id 1gn9lH-0003MV-6p
 for bug-guix@HIDDEN; Fri, 25 Jan 2019 17:15:44 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE
 autolearn=disabled version=3.3.2
Received: from Debian-exim by with spam-scanned (Exim 4.71)
 (envelope-from <rekado@HIDDEN>) id 1gn9lC-0004kY-F1
 for bug-guix@HIDDEN; Fri, 25 Jan 2019 17:15:39 -0500
Received: from ([]:21048)
 by with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <rekado@HIDDEN>) id 1gn9l4-0004ZX-Vq
 for bug-guix@HIDDEN; Fri, 25 Jan 2019 17:15:34 -0500
ARC-Seal: i=1; a=rsa-sha256; t=1548454512; cv=none;; s=zohoarc; 
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;;
 s=zohoarc; t=1548454512;
ARC-Authentication-Results: i=1;; dkim=pass;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1548454512; 
 s=zoho;; i=rekado@HIDDEN;
 l=1874; bh=QUeZ0pbBwBaZkKQGLhu3+cfhepvhrwCL9N6pwKIceoQ=;
Received: from localhost ( []) by with SMTPS id 1548454510217190.23160986776657;
 Fri, 25 Jan 2019 14:15:10 -0800 (PST)
User-agent: mu4e 1.0; emacs 26.1
From: Ricardo Wurmus <rekado@HIDDEN>
To: bug-guix@HIDDEN
Subject: scmutils fails to build
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Fri, 25 Jan 2019 23:15:02 +0100
Message-ID: <87d0okv0yh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-detected-operating-system: by GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by GNU/Linux 2.6.x
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at>
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <>
List-Unsubscribe: <>, 
 <mailto:debbugs-submit-request <at>>
List-Archive: <>
List-Post: <mailto:debbugs-submit <at>>
List-Help: <mailto:debbugs-submit-request <at>>
List-Subscribe: <>, 
 <mailto:debbugs-submit-request <at>>
Errors-To: debbugs-submit-bounces <at>
Sender: "Debbugs-submit" <debbugs-submit-bounces <at>>
X-Spam-Score: -0.0 (/)

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 \"\")'"
                                  "| 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 =
+                   ;; 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")))
            (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 =
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:


Acknowledgement sent to Ricardo Wurmus <rekado@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#34203; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 25 Jan 2019 22:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.