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: 168
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: 31371
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: 22887

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: 20539

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: 22887

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
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2535

PostPosted: Sun Dec 29, 2024 5:12 am    Post subject: Reply with quote

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
View user's profile Send private message
paraw
Apprentice
Apprentice


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

PostPosted: Sun Dec 29, 2024 7:17 am    Post subject: Reply with quote

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
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2535

PostPosted: Sun Dec 29, 2024 8:38 am    Post subject: Reply with quote

Best way to file a bug.

Best Regards,
Georgi
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31371
Location: here

PostPosted: Sun Dec 29, 2024 8:44 am    Post subject: Reply with quote

paraw wrote:
OK, so I guess the right thing to do would be asking those who make the binary to provide a qt-free version.

You can do it but I doubt they will do it for the simple fact that it costs in resources to make several pre-compiled versions. Besides the fact that someone else might ask for just a qt6 version or just the version with postgres instead of mariadb etc...

paraw wrote:
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)?

I think opening a new bug is the right place.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2043

PostPosted: Sun Dec 29, 2024 9:28 am    Post subject: Reply with quote

libreoffice-bin is already on life-support and will go away when Portage has support to opt-in for binpkgs per-package via package.env. Adding variants to the official binhost for libreoffice (which already does have packages for libreoffice) would be doable, but we're not going to add variants for libreoffice-bin.
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