Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Question about use flags on a -bin ebuild
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
JohnTheCoolingFan
n00b
n00b


Joined: 24 Jan 2024
Posts: 23

PostPosted: Sun Sep 08, 2024 6:02 am    Post subject: Question about use flags on a -bin ebuild Reply with quote

I have a package from a gentoo-zh overlay, sys-boot/ventoy-bin. The package provides multiple binaries, and as I recently found out, it didn't specify all the runtime dependencies, which caused me to have preserved libraries that couldn't be fixed by a rebuild of sys-boot/ventoy-bin, because the executable files are precompiled. I've submitted a fix for that, specifying the qt dependencies, but I was wondering if maybe it would be ok to conditionally not install the qt5 gui executable based on use flags. I've consulted the Gentoo Development Guide on this: https://devmanual.gentoo.org/general-concepts/use-flags/index.html but I couldn't come to a concrete conclusion. The qt5 GUI excutable comes dynamically linked to qt5 executables. And as far as I can see, there are options for other GUI choices, gtk3 in particular.

So, would it be ok to add such USE flags (qt5, maybe gtk) to this ebuild? Here is the ebuild file: https://github.com/microcai/gentoo-zh/blob/master/sys-boot/ventoy-bin/ventoy-bin-1.0.99.ebuild

The motivation to do this is to allow the user to opt out of runtime dependencies, but it doesn't change how the executables are compiled (since they are pre-compiled and downloaded as source), only which ones are included or not.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2201

PostPosted: Sun Sep 08, 2024 6:18 am    Post subject: Reply with quote

Some time ago chromium ebuild was deleting a library prior to instal if qt flag was not enabled(no qt5/qt6 were present back then), I guess it's OK to do the same.

Best Regards,
Georgi
Back to top
View user's profile Send private message
JohnTheCoolingFan
n00b
n00b


Joined: 24 Jan 2024
Posts: 23

PostPosted: Fri Sep 13, 2024 8:27 pm    Post subject: Reply with quote

Thanks logrusx! I've submitted the changes to remove the qt5/gtk3 binaries based on use flags, and it was approved. Now I can happily have the program without the qt dependencies I would never use. Nothing personal about qt besides it just feeling less nice, I just have a GNOME system and gtk is preferred. Happy to improve the software I use!
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