Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 831139

Summary: media-gfx/krita-5.0.2 should build and install included GMic plugin
Product: Gentoo Linux Reporter: Frank Krömmelbein <kroemmelbein>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: UNCONFIRMED ---    
Severity: enhancement CC: dronx.wow+gentoo, jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Frank Krömmelbein 2022-01-13 16:37:05 UTC
Since version 5.0.0 of krita external G`Mic plugin provided via media-gfx/gmic with +krita useflag did not work anymore. See:
https://gmic.eu/download.html
Note: Krita 5 comes with its own integrated version of the G'MIC-Qt plug-in. The versions provided here won't work for Krita 5.

Also:
https://krita.org/en/krita-5-0-release-notes/
Pluginification of G’MIC (MR 581)
G’MIC has been moved to a build-in plugin again, which should improve the G’MIC situation on MacOS.

I then have disabled krita useflag of media-gfx/gmic, and tried the available  useflags for krita
[ebuild   R   ~] media-gfx/krita-5.0.2:5::gentoo  USE="color-management fftw gif gsl jpeg mypaint-brush-engine openexr pdf qtmedia raw vc webp -debug -heif -test" PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10" 0 KiB

But when I try to open the plugin I always get this error message:
The GMic plugin is not installed or could not be loaded.
Comment 1 Andreas Sturmlechner gentoo-dev 2022-01-13 17:09:46 UTC
I didn't want anything to do with gmic in the past, and I don't really want now either. Looking at krita build system, it uses ExternalProject_Add( ext_gmic ...) inside 3rdparty/CMakeLists.txt as well as 3rdparty_plugins/ext_gmic/CMakeLists.txt to fetch something during cmake. It is unclear to me how either directory is being used from elsewhere inside the build system. That tells me that krita upstream is not really interested in having distributions package it for krita at all.
Comment 2 Andreas Sturmlechner gentoo-dev 2022-01-13 17:19:44 UTC
To make that clear: any solution to build gmic as part of krita should be contributed to upstream krita before we will use it downstream. I am not going to carry patches forever to workaround upstream's appimage distribution bias.

Interestingly enough, going to https://krita.org/en/download/krita-desktop/ they show Gentoo as distributing 5.0.2 - and make you download an appimage file for gmic.
Comment 3 Frank Krömmelbein 2022-01-14 18:10:20 UTC
Thanks for the information.
My hope was that the whole thing would have been relatively easy to implement.
But unfortunately that's not the case.
Comment 4 Andreas Sturmlechner gentoo-dev 2022-01-14 19:43:51 UTC
Does their gmic appimage do anything for you?
Comment 5 Frank Krömmelbein 2022-01-15 19:14:17 UTC
(In reply to Andreas Sturmlechner from comment #4)
> Does their gmic appimage do anything for you?

That doesn't seem to exist anymore for the current version, the linked file doesn't exist.
https://download.kde.org/stable/krita/5.0.2/gmic_krita_qt-x86_64.appimage
-> 404 The requested URL was not found on this server.

For the older version 4.4.8 there is a corresponding file:
https://download.kde.org/stable/krita/4.4.8/gmic_krita_qt-x86_64.appimage

But what works really good, is the complete image of Krita with GMIC.
https://download.kde.org/stable/krita/5.0.2/krita-5.0.2-x86_64.appimage
But I don't like this solution, I'm not a fan of appimage, snap & co...