GNU bug report logs -
#55495
emacs-haskell-mode build fails
Previous Next
Reported by: Taiju HIGASHI <higashi <at> taiju.info>
Date: Wed, 18 May 2022 08:31:01 UTC
Severity: normal
Done: Taiju HIGASHI <higashi <at> taiju.info>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
* gnu/packages/emacs-xyz.scm (emacs-haskell-mode): Fix build.
---
gnu/packages/emacs-xyz.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index ae81f4e395..7af083da02 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -1594,6 +1594,16 @@ (define-public emacs-haskell-mode
(guix build emacs-utils))
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-build-and-tests
+ (lambda _
+ ;; This causes the byte-compilation before unit-tests to fail.
+ (substitute* "Makefile"
+ (("--eval '\\(setq byte-compile-error-on-warn t\\)'") ""))
+ ;; Suppresses problems with git commands being called and tests
+ ;; failing.
+ (substitute* "tests/haskell-mode-tests.el"
+ (("\\(require 'haskell-test-utils\\)" all)
+ (string-append all " (setq vc-handled-backends nil)")))))
(delete 'configure)
(add-before 'build 'pre-build
(lambda* (#:key inputs #:allow-other-keys)
--
2.36.0
This bug report was last modified 3 years and 28 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.