Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1965975

Summary: libreoffice: FTBFS in Fedora rawhide
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: libreofficeAssignee: Stephan Bergmann <sbergman>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rawhideCC: caolanm, dtardon, erack, mhroncok, mizdebsk, orion, sbergman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/libreoffice
Whiteboard:
Fixed In Version: libreoffice-7.1.3.2-3.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-01 04:15:51 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:
Bug Depends On:    
Bug Blocks: 1890881, 1927309    

Description Tomáš Hrnčiar 2021-05-31 09:52:16 UTC
Description of problem:
Package libreoffice fails to build from source in Fedora rawhide.

Version-Release number of selected component (if applicable):
7.1.3.2-1.fc35

Steps to Reproduce:
koji build --scratch f35 libreoffice-7.1.3.2-1.fc35.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/libreoffice

Comment 1 Miro Hrončok 2021-05-31 11:06:32 UTC
We planned to do the Python 3.10 rebuild this week and without a successful libreoffice build, we cannot merge the side tag if we want to avoid a broken compose.

Hence, marking as urgent. Please have a look at this as soon as possible, ideally this week.

Looks like the build failure is broken by hamcrest that was upgraded from version 1 to version 2: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/EIU7CNABRKL5EFZNCFIWQIK2AHIEKWBB/

Comment 2 Caolan McNamara 2021-05-31 12:11:10 UTC
*** Bug 1965974 has been marked as a duplicate of this bug. ***

Comment 3 Orion Poplawski 2021-05-31 18:50:45 UTC
The naive thing to try is to point to the new jar location: --with-hamcrest=%{_javadir}/hamcrest/hamcrest.jar

Hopefully there aren't any other API incompatibilities.

Comment 4 Stephan Bergmann 2021-05-31 19:56:07 UTC
(In reply to Orion Poplawski from comment #3)
> The naive thing to try is to point to the new jar location:
> --with-hamcrest=%{_javadir}/hamcrest/hamcrest.jar

ah, right, that would have been even easier than <https://src.fedoraproject.org/rpms/libreoffice/blob/71a4281675c2ce631083448149f00969deae55d4/f/0001-Adapt-to-hamcrest-2.2-3.fc35.noarch.rpm.patch>

> Hopefully there aren't any other API incompatibilities.

looks like that was the only issue indeed

Comment 5 Orion Poplawski 2021-05-31 20:29:33 UTC
Well, your patch is probably more flexible at handling different situations so it's all good :)

Comment 6 Fedora Update System 2021-06-01 04:05:27 UTC
FEDORA-2021-2a9891e7b5 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-2a9891e7b5

Comment 7 Fedora Update System 2021-06-01 04:15:51 UTC
FEDORA-2021-2a9891e7b5 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Miro Hrončok 2021-06-01 07:54:39 UTC
Thanks for the super fast fix!