guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: java-hamcrest-all: Add java-hamcrest-core to inputs.


From: Ricardo Wurmus
Subject: 01/01: gnu: java-hamcrest-all: Add java-hamcrest-core to inputs.
Date: Mon, 2 Jul 2018 10:48:12 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 2cc63e6fcfea85117ab6b39fc3b076cfb64118cd
Author: Ricardo Wurmus <address@hidden>
Date:   Mon Jul 2 16:24:26 2018 +0200

    gnu: java-hamcrest-all: Add java-hamcrest-core to inputs.
    
    Fixes <https://debbugs.gnu.org/31390>, probably.
    
    * gnu/packages/java.scm (java-hamcrest-all)[inputs]: Add java-hamcrest-core.
    [arguments]: Add java-hamcrest-core to the build-time classpath.
---
 gnu/packages/java.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 1b4cc4d..f2f7078 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -3871,11 +3871,20 @@ The jMock library
                               (find-files (assoc-ref inputs "java-junit") 
"\\.jar$")
                               (find-files (assoc-ref inputs "java-jmock") 
"\\.jar$")
                               (find-files (assoc-ref inputs "java-easymock") 
"\\.jar$")))
-                       ";")))
+                       ";"))
+                     (("build/hamcrest-core-\\$\\{version\\}\\.jar")
+                      (string-append (assoc-ref inputs "java-hamcrest-core")
+                                     "/share/java/hamcrest-core.jar")))
                    #t)))))))
     (inputs
      `(("java-junit" ,java-junit)
        ("java-jmock" ,java-jmock-1)
+       ;; This is necessary because of what seems to be a race condition.
+       ;; This package would sometimes fail to build because hamcrest-core.jar
+       ;; could not be found, even though it is built as part of this package.
+       ;; Adding java-hamcrest-core appears to fix this problem.  See
+       ;; https://debbugs.gnu.org/31390 for more information.
+       ("java-hamcrest-core" ,java-hamcrest-core)
        ("java-easymock" ,java-easymock)
        ,@(package-inputs java-hamcrest-core)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]