View previous topic :: View next topic |
Author |
Message |
paraw Apprentice
Joined: 07 Jan 2005 Posts: 168 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: 31366 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: 20539
|
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 |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2530
|
Posted: Sun Dec 29, 2024 5:12 am Post subject: |
|
|
It looks like there are build config options --enable-qt5 and --enable-qt6 which makes it beyond me why libreoffice hard-depends on qt at all.
Also this is the corresponding line of the source based ebuild:
Code: | qt6? ( dev-qt/qtbase:6[gui,widgets] ) |
Maybe a bug could at least give some answers.
p.s. maybe it's not possible to strip qt functionality post build. Even the binhost does not provide qt-free libreoffice which I think is just a miss. If I want to disable qt functionality I need to build it myself. In the same time and don't see any mention of qt in libreoffice related bugs whatsoever, bin and non-bin.
Maybe time for a bug.
Best Regards,
Georgi |
|
Back to top |
|
|
paraw Apprentice
Joined: 07 Jan 2005 Posts: 168 Location: Coventry (UK)
|
Posted: Sun Dec 29, 2024 7:17 am Post subject: |
|
|
OK, so I guess the right thing to do would be asking those who make the binary to provide a qt-free version.
Could you point me to the right procedure to do so, please? In other words, do I file a bug in the Gentoo bugzilla, or do I write an email to someone (and to whom, in this case)? |
|
Back to top |
|
|
|