summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorr0man <roman@burningswell.com>2022-07-16 20:24:22 +0200
committerLudovic Courtès <ludo@gnu.org>2022-07-23 00:39:57 +0200
commit884c87a1006a35e78f4db4eafd5b98d4b4328136 (patch)
tree197660cc4a8761459a0fdd0a8dc6d3740be046c2 /gnu
parentaf7dd521363ea9b8476b8e92a44782678b3b5a5e (diff)
downloadguix-884c87a1006a35e78f4db4eafd5b98d4b4328136.tar.gz
gnu: clojure-algo-generic: Fix test failing under AOT in Clojure 1.11.1.
* gnu/packages/clojure.scm (clojure-algo-generic)[arguments]: Add
'fix-import' phase.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/clojure.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm
index dfff54f8ee..840584b162 100644
--- a/gnu/packages/clojure.scm
+++ b/gnu/packages/clojure.scm
@@ -275,7 +275,15 @@ Clojure repl, use Clojure and Java libraries, and start Clojure programs.")
     (arguments
      '(#:source-dirs '("src/main/clojure/")
        #:test-dirs '("src/test/clojure/")
-       #:doc-dirs '()))
+       #:doc-dirs '()
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-import
+           (lambda _
+             (substitute*
+                 "src/main/clojure/clojure/algo/generic/math_functions.clj"
+               (("clojure.algo.generic.math-functions")
+                "clojure.algo.generic.math-functions\n(:refer-clojure :exclude [abs])")))))))
     (synopsis "Generic versions of common functions")
     (description
      "Generic versions of commonly used functions, implemented as multimethods