Created attachment 880234 [details] emerge --info for media-gfx/gimp I recently found an ebuild for "media-gfx/gmic" in the stefantalpalaru overlay. This ebuild currently is only for GIMP 2.10, and I use GIMP 2.99. I modified the ebuild slightly to respect GIMP 3 usage, but it is impossible to build, as it depends on a file called "gimpchoice.h". This file is called by `/usr/include/gimp-3.0/libgimpbase/gimpbase.h`, which includes it on line 27: "#include <libgimpbase/gimpchoice.h>". Therefore, I am filing this bug here and not on the ebuild's overlay, as it seems like the GIMP package from the gentoo repository doesn't install a file it should. This file exists in GIMP's source code, under https://gitlab.gnome.org/GNOME/gimp/-/blob/master/libgimpbase/gimpchoice.h, but isn't installed on the system. This issue does not appear on media-gfx/gimp-2.10.36-r1, as libgimpbase/gimpbase.h does not include gimpchoice.h. Since I use the LLVM 23.0 profile with LTO enabled, I tried rebuilding without LTO, and also with USE="test doc", where neither fix the issue. My emerge --info for media-gfx/gimp is attached.
Looks like it was reported but the issue wasn't noticed and was closed as NOTABUG. It appears to be case a where upstream forgot to add it to be installed when adding it. https://gitlab.gnome.org/GNOME/gimp/-/commit/7e6b01a4e5257030f7e4ceac67b44564759cd6a1 https://gitlab.gnome.org/GNOME/gimp/-/commit/4163a29af3457807730bc8e6b8616f6fad636fd1 https://gitlab.gnome.org/GNOME/gimp/-/issues/10132
A simple patch to include that header file in "libgimpbase/meson.build" fixes this issue until upstream figures it out, perhaps it should be reported there again more precisely. I will attach the patch I made, which adds a few missing headers. Note that I didn't add anything to libgimpbase/meson.build, as I couldn't get the program to compile after the changes, at least on my system.
Created attachment 880248 [details, diff] patch adding a few libgimpbase headers to be installed
Currently making a patch for gimp that I hope they would accept. Are gimpcompatenums.h and gimpwire.h required to be installed for you? They don't appear to have the same issue where they are included in other installed headers. I only saw one other header that had this issue and that was libgimpwidgets/gimplabelstringwidget.h
(In reply to Alfred Wingate from comment #4) > Currently making a patch for gimp that I hope they would accept. > > Are gimpcompatenums.h and gimpwire.h required to be installed for you? They > don't appear to have the same issue where they are included in other > installed headers. I only saw one other header that had this issue and that > was libgimpwidgets/gimplabelstringwidget.h Oh, actually, no they aren't. It's only gimpchoice.h which matters for me. I thought I'd include those as well to get a more complete install, in case others would need them, but I personally do not.
Fix merged upstream