Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Does libreoffice-bin REALLY depend on qtbase?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
paraw
Apprentice
Apprentice


Joined: 07 Jan 2005
Posts: 167
Location: Coventry (UK)

PostPosted: Sat Dec 28, 2024 6:31 pm    Post subject: Does libreoffice-bin REALLY depend on qtbase? Reply with quote

Hi all, I have an old system, on which I do not want to install any Qt package, and on which I have installed libreoffice-bin. However, it seems that the latest version in portage depends on qtbase. My question is: is this dependency "real", meaning is it actually needed to run the libreoffice components, or is it a mistake in the ebuild? Note that libreoffice (the non-binary version) only depends on the Qt libraries if the kde USE flag is used, so I would have assumed the same to hold for the binary. Any idea/information about it?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31365
Location: here

PostPosted: Sat Dec 28, 2024 7:16 pm    Post subject: Reply with quote

No, in libreoffice the qt package is installed if you enable qt5 or qt6 use flag.
So another user may want only qt and not gtk.
If you install a binary in gentoo you have to compromise with the use flags enabled.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22885

PostPosted: Sat Dec 28, 2024 7:23 pm    Post subject: Reply with quote

To expand on fedeliallalinea's answer, although libreoffice may support being built without Qt[1], if libreoffice-bin was built with a dependency on Qt, then yes, it needs Qt. This is easy enough to test: use emerge --nodeps to force libreoffice-bin to install without satisfying any dependencies. Try to use it. If it does require qt and you do not have qt, then you will get an error trying to open anything that needs qt. As always, when you override the dependency checker, beware that you are assuring Portage that you have handled all the truly required dependencies already. If your assurance is wrong, things may break.

[1]: I have not inspected any of the relevant ebuilds, and am taking on faith OP's claim that setting USE=-kde avoids the qt dependency in libreoffice.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20538

PostPosted: Sat Dec 28, 2024 7:53 pm    Post subject: Reply with quote

Hu wrote:
[1]: I have not inspected any of the relevant ebuilds, and am taking on faith OP's claim that setting USE=-kde avoids the qt dependency in libreoffice.
There is COMMON_DEPEND, of which the last line is dev-qt/qtbase:6[gui,widgets]. Then there is RDEPEND="${COMMON_DEPEND}, so I think qt is required (if either gui or widgets is enabled -- or is that forcing those flags on qt)?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22885

PostPosted: Sat Dec 28, 2024 8:47 pm    Post subject: Reply with quote

The latter: qtbase:6 is hard required, and qtbase:6 satisfies the dependency only if qtbase:6 has both USE=gui and USE=widgets enabled. If the ebuild were conditionally dependent on qtbase:6 as a function of the ebuild's own USE, it would have been written as gui? ( dev-qt/qtbase:6 ) widgets? ( dev-qt/qtbase:6 ).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum