[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: hdf-java: Look for jars in the right place.
From: |
guix-commits |
Subject: |
02/02: gnu: hdf-java: Look for jars in the right place. |
Date: |
Sat, 23 Oct 2021 19:33:11 -0400 (EDT) |
civodul pushed a commit to branch core-updates-frozen
in repository guix.
commit 22e753b9b1aedc74b50d79c048ac34037add8193
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sat Oct 23 23:19:02 2021 +0200
gnu: hdf-java: Look for jars in the right place.
* gnu/packages/maths.scm (hdf-java)[arguments]: Look for slf4j .jar
files in the right place rather than share/java.
---
gnu/packages/maths.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 9bfb7bc..3960870 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -1400,7 +1400,10 @@ extremely large and complex data collections.")
"hdf/hdf5lib/exceptions/Makefile.in"
"hdf/hdflib/Makefile.in")
(("\\$\\(TOP\\)/lib/slf4j-api-1\\.7\\.5\\.jar")
- (search-input-file inputs "/share/java/slf4j-api.jar")))
+ ;; 'slf4j-api-X.Y.Z.jar' is installed in a Maven-style
+ ;; directory, so use 'find-files' to find it.
+ (car (find-files (assoc-ref inputs "slf4j-api")
+ "^slf4j-api.*\\.jar$"))))
;; Replace outdated config.sub and config.guess:
(with-directory-excursion "config"
(for-each (lambda (file)
@@ -1428,8 +1431,9 @@ extremely large and complex data collections.")
(testjars
(append
(map (lambda (i)
- (string-append (assoc-ref inputs i)
- "/share/java/" i ".jar"))
+ (car (find-files (assoc-ref inputs i)
+ (string-append "^" i
+ ".*\\.jar$"))))
'("slf4j-api" "slf4j-simple"))
(list
(car (find-files (assoc-ref inputs "junit") "jar$"))