app-misc/geoclue is not actually required at run-time. my use case: on one website i use, with webkit-gtk compiled with USE=-geolocation, i cannot log in, while with webkit-gtk compiled with USE=geolocation and geoclue not installed, i can log in.
Created attachment 785945 [details, diff] webkit-gtk-2.36.1 ebuild patch removes app-misc/geoclue dependency. adds pkg_postinst message about optional use of app-misc/geoclue.
Interesting. I'd suggest a few changes to the patch: 1) Remove the dependency on geoclue, as you've done, but use optfeature.eclass for the messages 2) Remove the IUSE=geolocation flag entirely and always enabled the functionality in webkit-gtk, since it doesn't add any dependencies. 3) Attach a git am'able patch (the output of `git format-patch`) with an appropriate Signed-off-by tag (a real name would be preferable). Thanks!
(In reply to Matt Turner from comment #2) > 2) Remove the IUSE=geolocation flag entirely and always enabled the > functionality in webkit-gtk, since it doesn't add any dependencies. the ebuild currently has "geolocation? ( dev-util/gdbus-codegen )" in BDEPEND . would this change the decision to keep/remove IUSE=geolocation ? if removing IUSE=geolocation , should the ENABLE_GEOLOCATION line in src_configure also be removed? it seems that ENABLE_GEOLOCATION defaults to ON if not specified. Source/cmake/WebKitFeatures.cmake: [...] macro(WEBKIT_OPTION_DEFINE _name _description _public _initial_value) [...] WEBKIT_OPTION_DEFINE(ENABLE_GEOLOCATION "Toggle Geolocation support" PRIVATE ON) [...]
I would set it explicitly to ON.
Created attachment 786101 [details, diff] webkit-gtk-2.36.1 ebuild patch
Created attachment 786371 [details, diff] webkit-gtk-2.36.1 ebuild patch incorporates bug 851027 commit: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e37a5481cdd16598433ce2da152471837f46ee2 which i only noticed today
Created attachment 786374 [details, diff] webkit-gtk-2.36.3 ebuild patch analogous patch for webkit-gtk-2.36.3
Thanks. That looks good to me. I'll plan to apply it to the next webkit-gtk version, so as to avoid causing people a rebuild of such a large package.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee464019c9d81b327ec31a2d6da30f20fb8166f9 commit ee464019c9d81b327ec31a2d6da30f20fb8166f9 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2022-07-05 16:34:43 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2022-07-05 16:38:41 +0000 net-libs/webkit-gtk: Version bump to 2.36.4 * Apply patch from ayuayuayu@aaathats3as.com to remove IUSE=geolocation (bug #852752) Bug: https://bugs.gentoo.org/856445 Closes: https://bugs.gentoo.org/852752 Signed-off-by: Matt Turner <mattst88@gentoo.org> net-libs/webkit-gtk/Manifest | 1 + net-libs/webkit-gtk/webkit-gtk-2.36.4.ebuild | 250 +++++++++++++++++++++++++++ 2 files changed, 251 insertions(+)