Bug 1185307

Summary: cannot build libreoffice in rawhide because it requiress a version of junit that exports hamcrest
Product: [Fedora] Fedora Reporter: Caolan McNamara <caolanm>
Component: junitAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: high    
Version: rawhideCC: java-sig-commits, krzysztof.daniel, mizdebsk, mkasik, msimacek, msrb, sbergman, tradej
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-23 13:52:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Caolan McNamara 2015-01-23 12:32:41 UTC
Description of problem:
http://koji.fedoraproject.org/koji/getfile?taskID=8705413&name=build.log&offset=-4000

checking for JUnit 4... /usr/share/java/junit.jar
checking for included Hamcrest... Not included
checking for standalone hamcrest jar.... configure: error: junit does not contain hamcrest; please use a junit jar that includes hamcrest, install a hamcrest jar in the default location (/usr/share/java),
                          specify its path with --with-hamcrest=..., or disable junit with --without-junit
RPM build errors:

It works before

    Export internal OSGi packages and mark them with x-internal
    - Resolves: rhbz#1184144

Version-Release number of selected component (if applicable):
junit-4.12-2.fc22

Comment 1 Mikolaj Izdebski 2015-01-23 13:52:27 UTC
Hamcrest used to be bundled in junit.jar, but it was unbundled starting from version 4.12.  Since bundling is not allowed in Fedora, I'm closing this as WONTFIX.

I tried building LibreOffice and it seems work if you pass it explicit Hamcrest location using --with-hamcrest=/usr/share/java/hamcrest/core.jar

Comment 2 Stephan Bergmann 2015-01-23 16:36:17 UTC
(LibreOffice finds it via <http://cgit.freedesktop.org/libreoffice/core/commit/?id=8419fa8c28dd9c5f64a72d28d561b3817d781232> "Related rhbz#1185307: One more location to look for Hamcrest jar" now)