Bug 1066844

Summary: gnome docs depend on libreoffice (was: libreoffice installed for Client without @office-suite being selected)
Product: Red Hat Enterprise Linux 7 Reporter: Jens Petersen <petersen>
Component: libreofficeAssignee: Caolan McNamara <caolanm>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: bgollahe, caolanm, csoriano, debarshir, dking, fmuellner, jkoten, jstodola, lsmid, mboisver, mclasen, mkrajnak, nobody+bgollahe, otaylor, petersen, salmy, tpelka, vpavlin
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libreoffice-5.3.6.1-21.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-06 12:54:20 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:
Attachments:
Description Flags
anaconda.log
none
anaconda.packaging.log none

Description Jens Petersen 2014-02-19 08:36:10 UTC
Description of problem:
libreoffice seems to get installed even if optional Office group not
selected in anaconda.  I think this was also the case in F19 but
was fixed in F20 at least, if it is related.

Version-Release number of selected component (if applicable):
anaconda-19.31.58-1.el7

How reproducible:
every time I guess

Steps to Reproduce:
1. install RHEL7 Client
2. standard gnome install without optional office-suite group checked

Actual results:
libreoffice is installed

Expected results:
libreoffice not installed

Additional info:
Same thing happened in F19 I think.

Comment 2 David Shea 2014-02-19 14:33:07 UTC
Please attach the log files from /tmp (or from /var/log/anaconda in the installed system), in particular anaconda.log and packaging.log

Comment 3 Jens Petersen 2014-02-20 02:26:14 UTC
Created attachment 865319 [details]
anaconda.log

Comment 4 Jens Petersen 2014-02-20 02:27:55 UTC
Created attachment 865321 [details]
anaconda.packaging.log

Comment 5 Brian Lane 2014-02-20 15:12:25 UTC
It is being installed for unoconv, which is a mandatory part of GNOME in comps.

Comment 6 Bill Nottingham 2014-02-20 15:30:59 UTC
This is part of gnome-documents' requirement chain.

Comment 7 RHEL Program Management 2014-03-24 05:47:59 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 8 Steve Almy 2017-08-01 19:42:39 UTC
(In reply to Brian Lane from comment #5)
> It is being installed for unoconv, which is a mandatory part of GNOME in
> comps.

Hi Brian,

if you can remember this from 3 years ago ;) , should this be closed/NOTABUG?

Thanks

Comment 14 Caolan McNamara 2018-03-27 16:04:00 UTC
The situation is changed from 2014 in that unoconv should be out of the picture and libreofficekit is in the picture instead. But the same outcome.

libreofficekit (subpackage in the libreoffice.spec) has manual dependencies added for libreoffice-core and libreoffice-filters

If those dependencies were removed then it should be possible to install libreofficekit without pulling in libreoffice (as it dlopens and dlsyms its runtime requirements). Though, obviously it won't work unless libreoffice happens to be installed already.

So, it probably would be possible to provide libreofficekit without libreoffice dependencies. The unknown is if libreofficekit, and/or its users (gnome-documents primarily) are ready to safely handle the runtime failures in case of libreoffice missing.

Comment 15 Ray Strode [halfline] 2018-03-29 14:17:05 UTC
can we split the parts of libreoffice that libreofficekit doesn't need to a separate subpackage ?  Is that just the desktop files?  or more?

Comment 16 Caolan McNamara 2018-03-29 15:38:37 UTC
There isn't a way to get libreofficekit installed and have it able to load/render documents without the current requires. We can't e.g. further finely split out the import filters without bringing along the core applications.

But it is possible for us to drop those requires and then if libreoffice is installed gnome-documents will be able to render them, and if its not installed, libreofficekit should be ok with that and just return inability to load/render.

Let me test locally if gnome-documents would survive with libreofficekit installed and without libreoffice

Comment 17 Caolan McNamara 2018-03-29 16:16:46 UTC
Yeah, testing locally it seems that gnome-documents will just not open the documents if libreofficekit is installed and libreoffice it not. No crashes, no indications at all actually. So that option is available to us if we want to pursue it.

Comment 18 Ray Strode [halfline] 2018-03-29 17:00:43 UTC
So there are a few options I can think of:

1) keep status quo, libreoffice gets installed by default
2) install libreoffice by default but don't install the desktop files. so it's installed but you don't see it in the menus, you can view libreoffice documents via gnome-documents, but you can't open libreoffice via nautilus
3) do what's proposed in comment 16, make gnome-documents silently fail when double clicking on office documents until the user manually install libreoffice
4) add some packagekit-foo to libreofficekit to make it install libreoffice on demand when the user double clicks if they so desire?

Do those sound about right?  Caolan, is your preference 1, 2, 3 or 4 ?

Comment 19 Tomas Pelka 2018-03-29 18:12:38 UTC
(In reply to Ray Strode [halfline] from comment #18)
> So there are a few options I can think of:
> 
> 1) keep status quo, libreoffice gets installed by default
> 2) install libreoffice by default but don't install the desktop files. so
> it's installed but you don't see it in the menus, you can view libreoffice
> documents via gnome-documents, but you can't open libreoffice via nautilus
> 3) do what's proposed in comment 16, make gnome-documents silently fail when
> double clicking on office documents until the user manually install
> libreoffice
> 4) add some packagekit-foo to libreofficekit to make it install libreoffice
> on demand when the user double clicks if they so desire?
> 
> Do those sound about right?  Caolan, is your preference 1, 2, 3 or 4 ?

I would add 
5) remove LO and gnome-documents from Client variant

Btw there is at least one bug regarding 3). @mkrajnak please link it here.

Comment 21 Martin Krajnak 2018-04-17 10:53:18 UTC
I think behaviour of these two are pretty related to 3) note that both cases affects only documents which are password protected.

bug 959384 - gnome documents are unable to print password protected documents
bug 959359 - gnome documents are unable to open/render password protected documents

Comment 22 Martin Krajnak 2018-04-17 11:13:37 UTC
adding:

bug 1466164 - office documents are not rendering because of missing dependencies from libreoffice

Comment 24 Caolan McNamara 2019-02-20 21:25:18 UTC
I'd go with comment #16, just dropping the requirement of libreofficekit on libreoffice. I did that in fedora since Mar 29 2018 without any complaint there. Stuff won't work without libreoffice installed, but somethings got to give somewhere

Comment 29 errata-xmlrpc 2019-08-06 12:54:20 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-2019:2130