From 884c87a1006a35e78f4db4eafd5b98d4b4328136 Mon Sep 17 00:00:00 2001 From: r0man Date: Sat, 16 Jul 2022 20:24:22 +0200 Subject: [PATCH] gnu: clojure-algo-generic: Fix test failing under AOT in Clojure 1.11.1. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/clojure.scm (clojure-algo-generic)[arguments]: Add 'fix-import' phase. Signed-off-by: Ludovic Courtès --- gnu/packages/clojure.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 @@ (define-public clojure-algo-generic (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