Bug 1601372

Summary: [fix available] libreoffice fails to build with --nocheck
Product: Red Hat Enterprise Linux 7 Reporter: Kamil Dudka <kdudka>
Component: libreofficeAssignee: Caolan McNamara <caolanm>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6CC: bsanford, caolanm, jkoten, kdudka
Target Milestone: rcKeywords: EasyFix
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libreoffice-5.3.6.1-23.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1601882 (view as bug list) Environment:
Last Closed: 2020-03-31 20:06:45 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: 1601882    
Bug Blocks:    

Description Kamil Dudka 2018-07-16 08:31:09 UTC
Version-Release number of selected component (if applicable):
libreoffice-5.3.6.1-16.el7


Steps to Reproduce:
1. rpmbuild --nocheck --rebuild libreoffice-5.3.6.1-16.el7.src.rpm


Actual results:
[...]
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/libreoffice-5.3.6.1-10.el7.x86_64
error: Installed (but unpackaged) file(s) found:
   /usr/lib64/libreoffice/program/classes/smoketest.jar


Expected results:
Successful build.


Additional info:
This bug prevents the package from being automatically analyzed by Covscan.

The following patch fixes it:

--- a/libreoffice.spec
+++ b/libreoffice.spec
@@ -1485,12 +1485,6 @@ for jar in %{buildroot}%{baseinstdir}/program/classes/*.jar; do
     esac
 done

-%check
-unset WITH_LANG
-# work around flawed accessibility check
-export JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY="1"
-export OOO_TEST_SOFFICE=path:%{buildroot}%{baseinstdir}/program/soffice
-# timeout -k 2m 2h make smoketest.subsequentcheck
 # we don't need this anymore
 rm -f %{buildroot}%{baseinstdir}/program/classes/smoketest.jar

Comment 8 errata-xmlrpc 2020-03-31 20:06:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:1151