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

Bug 915799

Summary: media-gfx/krita-9999 needs immer
Product: Gentoo Linux Reporter: Luke A. Guest <laguest>
Component: OverlaysAssignee: Gentoo KDE team <kde>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 913518    
Bug Blocks:    

Description Luke A. Guest 2023-10-15 08:44:56 UTC
CMake Error at CMakeLists.txt:817 (find_package):
  By not providing "FindImmer.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Immer", but
  CMake did not find one.

  Could not find a package configuration file provided by "Immer" with any of
  the following names:

    ImmerConfig.cmake
    immer-config.cmake

  Add the installation prefix of "Immer" to CMAKE_PREFIX_PATH or set
  "Immer_DIR" to a directory containing one of the above files.  If "Immer"
  provides a separate development package or SDK, be sure it has been
  installed.


Reproducible: Always

Steps to Reproduce:
1. build it
2.
3.
Actual Results:  
see above

Expected Results:  
merge

libimmer is not in gentoo.
Comment 2 latex 2023-10-15 14:09:25 UTC
I actually tried fixing this in my local overlay, but even after adding ebuilds for immer, lager, and zug, fftw3 seems to be broken.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-15 14:14:39 UTC
Can you show me the error for fftw? I have a suspicion.
Comment 4 latex 2023-10-15 15:30:45 UTC
Yeah I found the relevant bug #913518
As long as FFTW3LibraryDepends.cmake won't be installed, Krita 5.2.0 will not build. The current fix I did is to manually cmake -Bbuild and edit the FFTW3LibraryDepends.cmake file to point to the .so in /usr/lib64 and then install this file into /usr/lib/cmake/fftw/FFTW3LibraryDepends.cmake manually.
Comment 5 latex 2023-10-15 17:38:17 UTC
Oh and another thing, Krita 5.2.0 seem to #include <openjpeg.h>, but obviously, gentoo doesn't store openjpeg.h directly in /usr/include. Instead, it's stored in /usr/include/openjpeg-2.5/openjpeg.h, so in order to build Krita 5.2.0, you must ln -s /usr/include/openjpeg-2.5/openjpeg.h /usr/include/openjpeg.h, or figure out how to add /usr/include/openjpeg-2.5 to CMAKE_INCLUDE_PATH or CMAKE_SYSTEM_INCLUDE_PATH in the ebuild, and I'm not sure how to do that
Comment 6 Sebastian Parborg 2023-11-25 15:53:38 UTC
I had a go at updating the krita ebuild to be able to build krita 5.2.1:
https://projects.blender.org/ZedDB/blender-studio-overlay/commit/a37bfde86b694a6f3f1a671147eb0aa1de19d950

To get fftw and openjpeg to build, I had to change 1-3 lines of the respective "FindX.cmake" file.

As krita is already using the pkgconf files if it can't find the .cmake files for the library, I only had to commend the respective "findpackage" commands.

It seems to build and run correctly to me.

I know this is a report for the live ebuild, but the same fix should also apply there.

How do I go about getting these changes merged? Is there any special procedure in place for the KDE related packages?
Comment 7 Sebastian Parborg 2024-01-10 15:58:29 UTC
I've created a new PR from krita 5.2.2 with the immer,lager, and zug ebuild:
https://github.com/gentoo/gentoo/pull/34736
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-10 15:59:33 UTC
(In reply to Sebastian Parborg from comment #6)
> I know this is a report for the live ebuild, but the same fix should also
> apply there.
> 
> How do I go about getting these changes merged? Is there any special
> procedure in place for the KDE related packages?

Sorry, I'd missed this at the time. Changes go to ::kde first if possible.