Suddenly the latest version of cinnamon-screensaver depends on net-libs/webkit-gtk:3, which is not cool from my pov. So I decided to create a patch that makes webkit-gtk optional (thus removing possibility to run webkit-based screensavers). Reproducible: Always
Created attachment 412170 [details] Ebuild with optional webkit Added webkit flag and patch support.
Created attachment 412172 [details, diff] Patch for making webkit-gtk optional Patches configure.ac, enables flag --disable-webkit, skips webkit checks.
Created attachment 412926 [details, diff] Patch for making webkit-gtk optional 2.0 This is an updated patch which skips installing the webkit screensaver files when webkit support is disabled. This is my first foray into autotools, so correctness or completeness isn't guaranteed :)
Could you forward this to upstream to let them check the patch? https://github.com/linuxmint/cinnamon-screensaver/issues Thanks
Created attachment 459856 [details, diff] 3.2.13-r1 ebuild patch Add webkit useflag and make webkit-gtk optional for cinnamon-screensaver-3.2.13-r1
Created attachment 459858 [details, diff] Ugly patch to disable webkit build
Upstream closed previous bug. Above patches brutally disable webkit-gtk by disable build of cinnamon-screensaver-webkit-plugin as suggested by upstream.
(In reply to Cănărău Constantin from comment #7) > Upstream closed previous bug. > Above patches brutally disable webkit-gtk by disable build of > cinnamon-screensaver-webkit-plugin as suggested by upstream. Got any reference to such discussion? and why is it done non-optionally depending on USE flag?
(In reply to Kristian Fiskerstrand from comment #8) > (In reply to Cănărău Constantin from comment #7) > > Upstream closed previous bug. > > Above patches brutally disable webkit-gtk by disable build of > > cinnamon-screensaver-webkit-plugin as suggested by upstream. > > Got any reference to such discussion? and why is it done non-optionally > depending on USE flag? Missed the ebuild... the patch shouldn't be applied optionally, the patch should be applied in any case and other mechanisms used to determine whether it applies. Why mixing in a python 3.5 switch into this?
Here is the closed bug: https://github.com/linuxmint/cinnamon-screensaver/issues/125 The rest of errors are due to lack of experience from my part. I am not Gentoo developer. I am sorry. Of course, python part can be ignored. configure does not accept something like disable-webkit or disable webkit-gtk so that's why the ugly patch: --- cinnamon-screensaver-3.2.13-r1.ebuild.orig 2017-01-13 16:01:33.727348270 +0200 +++ cinnamon-screensaver-3.2.13-r1.ebuild 2017-01-13 12:12:07.000000000 +0200 @@ -13,7 +13,7 @@ LICENSE="GPL-2+" SLOT="0" -IUSE="debug doc pam systemd" +IUSE="debug doc pam systemd webkit" KEYWORDS="~amd64 ~x86" COMMON_DEPEND=" @@ -24,7 +24,7 @@ >=gnome-base/libgnomekbd-3.6 >=dev-libs/dbus-glib-0.78 - net-libs/webkit-gtk:4[introspection] + webkit? ( net-libs/webkit-gtk:4[introspection] ) sys-apps/dbus x11-libs/libxklavier @@ -69,6 +69,7 @@ } src_prepare() { + use webkit || epatch "${FILESDIR}/no-webkit.patch" python_fix_shebang screensavers eautoreconf gnome2_src_prepare Please feel free to improve the patches.
(In reply to Cănărău Constantin from comment #10) > Here is the closed bug: > https://github.com/linuxmint/cinnamon-screensaver/issues/125 > The rest of errors are due to lack of experience from my part. I am not > Gentoo developer. That is fine :) Thank you for trying to work with this, however lets get it correct before introducing the patch. > I am sorry. Of course, python part can be ignored. Lets fix that in a later version of the patch > > configure does not accept something like disable-webkit or disable > webkit-gtk so that's why the ugly patch: Then we can add it. I can recommend reading flameeyes book (a fellow gentoo developer): https://autotools.io/index.html You want to look at configure.ac and Makefile.am
Created attachment 460440 [details] cinnamon-screensaver-3.2.13-r2 optional webkit Is using pkg_preinst a faux pas? There is no build system dependency on webkit, so it is entirely runtime.
Created attachment 511432 [details] Update for cinnamon-screensaver-3.6.1
Created attachment 558114 [details] Update for cinnamon 4.0.0 Update for cinnamon 4.0.0. Can we also get the component changed back to Current? This is an ongoing ask applicable to the current cinnamon versions.
Created attachment 558124 [details] Drop webkit dependency. So, *minor* update... cinnamon-screensaver 4.0.0 removed support for plugins (i.e. webkit and xscreensaver). I guess this goes to show how often I actually see my screensaver. I didn't even notice my xscreensaver hack no longer being loaded... So the webkit dependency can now be dropped entirely.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b37d7d0b09b5921135cdc38c63a0605662d60cf commit 2b37d7d0b09b5921135cdc38c63a0605662d60cf Author: Matthew Turnbull <sparky@bluefang-logic.com> AuthorDate: 2020-05-13 02:21:46 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2020-05-29 00:10:45 +0000 gnome-extra/cinnamon-screensaver: 4.4.1 version bump Update cinnamon-screensaver to 4.4.1. Python 3.7/3.8 support and fix shebangs. Cleanup dependencies. Upstream dropped webkit and xscreensaver support. Bug: https://bugs.gentoo.org/718316 Bug: https://bugs.gentoo.org/704532 Closes: https://bugs.gentoo.org/560764 Closes: https://bugs.gentoo.org/613736 Closes: https://bugs.gentoo.org/720152 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Matthew S. Turnbull <sparky@bluefang-logic.com> Signed-off-by: Matt Turner <mattst88@gentoo.org> gnome-extra/cinnamon-screensaver/Manifest | 1 + .../cinnamon-screensaver-4.4.1.ebuild | 67 ++++++++++++++++++++++ gnome-extra/cinnamon-screensaver/metadata.xml | 8 +++ 3 files changed, 76 insertions(+)