View previous topic :: View next topic |
Author |
Message |
paraw Apprentice
Joined: 07 Jan 2005 Posts: 167 Location: Coventry (UK)
|
Posted: Sat Dec 28, 2024 6:31 pm Post subject: Does libreoffice-bin REALLY depend on qtbase? |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31365 Location: here
|
Posted: Sat Dec 28, 2024 7:16 pm Post subject: |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22885
|
Posted: Sat Dec 28, 2024 7:23 pm Post subject: |
|
|
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20538
|
Posted: Sat Dec 28, 2024 7:53 pm Post subject: |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22885
|
Posted: Sat Dec 28, 2024 8:47 pm Post subject: |
|
|
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 |
|
|
|