Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942358 - media-gfx/gimp-2.99.18-r1: x11-libs/libXmu pulled with -X USE flag
Summary: media-gfx/gimp-2.99.18-r1: x11-libs/libXmu pulled with -X USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sergey Torokhov
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-10-27 15:28 UTC by Michel Ganguin
Modified: 2024-11-08 13:27 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gegl and babl bumps (ebuilds.tar.xz,2.92 KB, application/x-xz)
2024-11-07 15:44 UTC, immolo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Ganguin 2024-10-27 15:28:38 UTC
>=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.
Comment 1 Sergey Torokhov 2024-10-31 18:22:33 UTC
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
Comment 2 Sergey Torokhov 2024-11-05 12:21:42 UTC
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.
Comment 3 Michel Ganguin 2024-11-05 19:16:47 UTC
> 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.
Comment 4 Sergey Torokhov 2024-11-06 04:52:11 UTC
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.
Comment 5 immolo 2024-11-07 15:44:43 UTC
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.
Comment 6 Sergey Torokhov 2024-11-07 23:33:50 UTC
(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.
Comment 7 Sergey Torokhov 2024-11-07 23:40:49 UTC
(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?
Comment 8 Larry the Git Cow gentoo-dev 2024-11-08 13:27:26 UTC
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(+)