>=x11-libs/libXmu-1.1.4 is in depend even with -X USE flag. The meson dependencies treats Xmu as grouped X dependencies and gimp builds and runs without Xmu. Reproducible: Always Steps to Reproduce: 1. ensure libxmu is not installed: emerge -pv x11-libs/libXmu 2. check packages pulled in by gimp 3: USE=-X emerge -pv gimp:0/3 Actual Results: x11-libs/libXmu gets pulled in Expected Results: gimp builds and runs without Xmu.
Sorry for delay. I tried to remove `x11-libs/libXmu` and tried to run early installed gimp-2.99.18-r1 - it's launched ok. But then I tried to compile offered in pull request (https://github.com/gentoo/gentoo/pull/39132) media-gfx/gimp-2.99.180-r2 (I made revision bump) and got an error: > USE="-X" emerge -1av gimp > > These are the packages that would be merged, in order: > [ebuild U *] media-gfx/gimp-2.99.18-r2:0/3::local [2.99.18-r1:0/3::gentoo] USE="aalib alsa doc gnome heif jpeg2k jpegxl lua mng openexr openmp postscript python udev unwind vala vector-icons webp wmf xpm -X* -fits -javascript -test" LUA_SINGLE_TARGET="luajit" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11" > > ... > > Run-time dependency appstream-glib found: YES 0.8.2 > Run-time dependency libarchive found: YES 3.7.6 > Run-time dependency libunwind found: YES 1.8.1 > Run-time dependency x11 found: YES 1.8.10 > Found CMake: /usr/bin/cmake (3.30.5) > Run-time dependency xmu found: NO (tried pkgconfig and cmake) > > meson.build:608:21: ERROR: Dependency "xmu" not found, tried pkgconfig and cmake
As I mentined in PR actually the current USE="X" within the ebuild switch on only xcursor support and x11-libs/libXmu is mandatory build/runtime dependency. The x11-libs/libXmu isn't the optional dependency but "X" use-flag realy could mislead as it doesn't switch on xorg-x11 support. Maybe it should be renamed to "xcursor" to become local use-flag.
> Run-time dependency x11 found: YES 1.8.10 That's why it complains about libXmu. On a system without X11, gimp builds and runs perfectly fine without libXmu. There is probably some automatic detection of X11 that should be disabled with X flag. I'll try to find a way to do that.
Thanks for notice. I will try to switch wayland session, remove x11 and some other deps and then will try to rebuild. Some other changes in the ebuild will be required, e.g. ">=x11-libs/gtk+-3.24.16:3[introspection,X?]" etc. The revision bump anyway should be done too with update of gimp-9999. Also gimp-3.0.0_rc1 appears and I will prepare it with new changes.
Created attachment 908082 [details] gegl and babl bumps Was messing around gimp-3.0 today and whilst I don't think my gimp bump is suitable for the masses, these dependency bumps might save you some time to use or act as a second machine test.
(In reply to Michel Ganguin from comment #3) > > Run-time dependency x11 found: YES 1.8.10 > > That's why it complains about libXmu. On a system without X11, gimp builds > and runs perfectly fine without libXmu. There is probably some automatic > detection of X11 that should be disabled with X flag. I'll try to find a way > to do that. Could you please check the 'media-gfx/gimp/gimp-2.99.18-r2.ebuild' from my PR ( https://github.com/gentoo/gentoo/pull/39237 ) in your system with USE="-X" ("xpm" depens on "X" use-flag now too). The 'media-gfx/gimp: 3.0.0_rc1' (with 'media-libs/babl-0.1.110' and 'media-libs/gegl-0.4.50') is also available there.
(In reply to immolo from comment #5) > Created attachment 908082 [details] > gegl and babl bumps > > Was messing around gimp-3.0 today and whilst I don't think my gimp bump is > suitable for the masses, these dependency bumps might save you some time to > use or act as a second machine test. I add 'gimp-3.0.0_rc1.ebuild' in my PR ( https://github.com/gentoo/gentoo/pull/39237 ) could you please test it?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9309da14bd6d1f721f81c92a251190473c3e6b27 commit 9309da14bd6d1f721f81c92a251190473c3e6b27 Author: Sergey Torokhov <torokhov-s-a@yandex.ru> AuthorDate: 2024-11-07 23:15:32 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2024-11-08 13:26:05 +0000 media-gfx/gimp: 2.99.18-r2 revbump, fix USE="X" dependencies Closes: https://bugs.gentoo.org/942358 Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru> Signed-off-by: Joonas Niilola <juippis@gentoo.org> media-gfx/gimp/gimp-2.99.18-r2.ebuild | 275 ++++++++++++++++++++++++++++++++++ 1 file changed, 275 insertions(+)