Bug 1185307 - cannot build libreoffice in rawhide because it requiress a version of junit that exports hamcrest
Summary: cannot build libreoffice in rawhide because it requiress a version of junit t...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: junit
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: Mikolaj Izdebski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-23 12:32 UTC by Caolan McNamara
Modified: 2015-01-23 16:36 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-01-23 13:52:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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)


Note You need to log in before you can comment on or make changes to this bug.