Gmic-qt plugin for digikam

I’ve had some packaging mishaps in the past with digikam under Manjaro but I’ve come across a curious one which, strangely enough, I was able to resolve with a “rubber bands and glue” approach.

The issue is that since several versions ago the Digikam package on Manjaro no longer includes the gmic qt plugin. It is not installable either (as opposed to the Krita version of the gmic qt plugin). Not afraid of some tinkering, I downloaded Cgilles’s gmic-qt plugin from GitHub but it failed to run the included bootstrap.linux file because it cannot find qtpaths6.

I found out Manjaro installs qtpaths6 but does so outside the $PATH at /usr/lib/qt6/bin so I symlinked that file to /usr/bin/qtpaths6 - hurdle one taken.

But now the bootstrap script complains about not finding /lib/libdigikamcore.so.8.6.0 which is not so strange as the installed version of digikam is 8.8.0 - it turns out the reference to the older libdigikamcore version comes from a few cmake files in /usr/lib/cmake/DigikamCore/ as imported locations:

  IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/lib/libdigikamcore.so.8.6.0"
  IMPORTED_SONAME_DEBUG "libdigikamcore.so.8.6.0"
  )

list(APPEND _cmake_import_check_targets Digikam::digikamcore )
list(APPEND _cmake_import_check_files_for_Digikam::digikamcore "${_IMPORT_PREFIX}/lib/libdigikamcore.so.8.6.0" )

and, after updating the 8.6.0 references to the 8.8.0 versions (I checked and they exist in the system, they’re actually the only libdigikamcore versions installed), the gimc qt6 plugin builds and installs without any further complaints.

I’m sure this is purely a packaging issue which may impact Manjaro (and potentially Arch) users on QT6 updated KDE Plasma systems. But finding these old v8.6.0 references in those cmake files which came with the Manjaro digikam-8.8.0 package threw me off for a while. I hope this might just help someone else.

[UPDATE]
Turned out that on my laptop qtpaths6 does live in /usr/bin, go figure (same majaro version different update history). On the other hand it had stale references to digikam 8.6.0 in more files in subdirectories of /usr/lib/cmake such as DigikamDatabase and DigikamGui in addition to DigikamCore.

Currently gmic-qt plugin is building on my laptop as well.