Skip to content

bump(x11/gimp): 3.0.2#24053

Merged
twaik merged 1 commit intomasterfrom
gimp-3.0.2
Apr 5, 2025
Merged

bump(x11/gimp): 3.0.2#24053
twaik merged 1 commit intomasterfrom
gimp-3.0.2

Conversation

@twaik
Copy link
Copy Markdown
Member

@twaik twaik commented Mar 31, 2025

GIMP dropped autotools support.
Also now it requires host-building.

Need some help with this, I am officially tired porting it.
Also I am not so sure what to do with gimp-lqr-plugin package since I am not sure how to test it.

@twaik
Copy link
Copy Markdown
Member Author

twaik commented Mar 31, 2025

Seems it needs a few adjustments for working inside our docker container, already on it.

@twaik
Copy link
Copy Markdown
Member Author

twaik commented Mar 31, 2025

Seems like gimp now requires gtk-encode-symbolic-svg which is available only in libgtk3-bin package of ubuntu so I am removing all dependency cross-compiling and replacing it with downloading ubuntu packages.

@twaik
Copy link
Copy Markdown
Member Author

twaik commented Apr 1, 2025

It is already annoying.
I tried to use cross-compiled gimp+python during building with proot (to avoid downloading ubuntu packages), but for some reason nm called with python's subprocess.getstatusoutput (which is a wrapper of regular Popen) fails with

linker: CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/libexec/binutils/nm": "/usr/lib/x86_64-linux-gnu/libc.so" has bad ELF magic

And I have no idea why. Termux's nm DOES NOT HAVE ANY REFERENCES TO UBUNTU HOST'S LIBC!

@twaik twaik force-pushed the gimp-3.0.2 branch 2 times, most recently from 810f646 to b8a74b0 Compare April 1, 2025 11:43
@twaik
Copy link
Copy Markdown
Member Author

twaik commented Apr 1, 2025

OK, now I have only this, and I have no idea how to win.

Full log
[3672/3672] Generating gimp-data/images/gimp-splash.png with a custom command (wrapped by meson to set env, to feed input)
FAILED: gimp-data/images/gimp-splash.png 
/usr/bin/python3.12 /home/builder/.termux-build/_cache/meson-1.6.1/meson.py --internal exe --unpickle /home/builder/.termux-build/gimp/build/meson-private/meson_exe_in-build-gimp.sh_82289c36f9fdb85726a70de5b31b1196b9abb8c7.dat
while executing ['/home/builder/.termux-build/gimp/src/tools/in-build-gimp.sh', '-nidfs', '../src/gimp-data/images/gimp-splash.xcf.xz', '--batch-interpreter', 'python-fu-eval', '-b', '-', '--quit']
--- stdout ---
INFO: temporary GIMP configuration directory: /home/builder/.termux-build/gimp/build/.GIMP3-build-config-IMmXSA
RUNNING: cat /dev/stdin | /home/builder/.termux-build/gimp/build/app/gimp-console-3.0 -nidfs ../src/gimp-data/images/gimp-splash.xcf.xz --batch-interpreter python-fu-eval -b - --quit

--- stderr ---
GIMP-Warning: Illegal variable name in environment file /home/builder/.termux-build/gimp/src/data/environ/meson.build: 

GIMP-Warning: Illegal variable name in environment file /home/builder/.termux-build/gimp/src/data/environ/meson.build:  environ_config.set('BIN_PATH', 'PATH

shmget() failed: No such file or directory
Disabling shared memory tile transportFailed to parse tag cache: No such file or directory
Traceback (most recent call last):
  File "/home/builder/.termux-build/gimp/build/plug-ins/python/spyro-plus/spyro-plus.py", line 19, in <module>
    gi.require_version('Gimp', '3.0')
  File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gimp not available
/home/builder/.termux-build/gimp/build/app/gimp-console-3.0: LibGimpBase-WARNING: gimp-console-3.0: gimp_wire_read(): unexpected EOF
Traceback (most recent call last):
  File "/home/builder/.termux-build/gimp/build/plug-ins/python/python-eval/python-eval.py", line 24, in <module>
    gi.require_version('Gimp', '3.0')
  File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gimp not available
/home/builder/.termux-build/gimp/build/app/gimp-console-3.0: LibGimpBase-WARNING: gimp-console-3.0: gimp_wire_read(): unexpected EOF
Traceback (most recent call last):
  File "/home/builder/.termux-build/gimp/build/plug-ins/python/palette-to-gradient/palette-to-gradient.py", line 17, in <module>
    gi.require_version('Gimp', '3.0')
  File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gimp not available
/home/builder/.termux-build/gimp/build/app/gimp-console-3.0: LibGimpBase-WARNING: gimp-console-3.0: gimp_wire_read(): unexpected EOF
Traceback (most recent call last):
  File "/home/builder/.termux-build/gimp/build/plug-ins/python/palette-sort/palette-sort.py", line 30, in <module>
    gi.require_version('Gimp', '3.0')
  File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gimp not available
/home/builder/.termux-build/gimp/build/app/gimp-console-3.0: LibGimpBase-WARNING: gimp-console-3.0: gimp_wire_read(): unexpected EOF
Traceback (most recent call last):
  File "/home/builder/.termux-build/gimp/build/plug-ins/python/palette-offset/palette-offset.py", line 17, in <module>
    gi.require_version('Gimp', '3.0')
  File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gimp not available
/home/builder/.termux-build/gimp/build/app/gimp-console-3.0: LibGimpBase-WARNING: gimp-console-3.0: gimp_wire_read(): unexpected EOF
Traceback (most recent call last):
  File "/home/builder/.termux-build/gimp/build/plug-ins/python/histogram-export/histogram-export.py", line 43, in <module>
    gi.require_version('Gimp', '3.0')
  File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gimp not available
/home/builder/.termux-build/gimp/build/app/gimp-console-3.0: LibGimpBase-WARNING: gimp-console-3.0: gimp_wire_read(): unexpected EOF
Traceback (most recent call last):
  File "/home/builder/.termux-build/gimp/build/plug-ins/python/gradients-save-as-css/gradients-save-as-css.py", line 26, in <module>
    gi.require_version('Gimp', '3.0')
  File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gimp not available
/home/builder/.termux-build/gimp/build/app/gimp-console-3.0: LibGimpBase-WARNING: gimp-console-3.0: gimp_wire_read(): unexpected EOF
Traceback (most recent call last):
  File "/home/builder/.termux-build/gimp/build/plug-ins/python/foggify/foggify.py", line 18, in <module>
    gi.require_version('Gimp', '3.0')
  File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gimp not available
/home/builder/.termux-build/gimp/build/app/gimp-console-3.0: LibGimpBase-WARNING: gimp-console-3.0: gimp_wire_read(): unexpected EOF
Traceback (most recent call last):
  File "/home/builder/.termux-build/gimp/build/plug-ins/python/file-openraster/file-openraster.py", line 17, in <module>
    gi.require_version('Gimp', '3.0')
  File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gimp not available
/home/builder/.termux-build/gimp/build/app/gimp-console-3.0: LibGimpBase-WARNING: gimp-console-3.0: gimp_wire_read(): unexpected EOF
Traceback (most recent call last):
  File "/home/builder/.termux-build/gimp/build/plug-ins/python/colorxhtml/colorxhtml.py", line 25, in <module>
    gi.require_version('Gimp', '3.0')
  File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gimp not available
/home/builder/.termux-build/gimp/build/app/gimp-console-3.0: LibGimpBase-WARNING: gimp-console-3.0: gimp_wire_read(): unexpected EOF
Traceback (most recent call last):
  File "/home/builder/.termux-build/gimp/build/plug-ins/python/python-console/python-console.py", line 20, in <module>
    gi.require_version('Gimp', '3.0')
  File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gimp not available
/home/builder/.termux-build/gimp/build/app/gimp-console-3.0: LibGimpBase-WARNING: gimp-console-3.0: gimp_wire_read(): unexpected EOF
GIMP-Warning: Welcome to GIMP 3.0.2!

GIMP-Warning: No batch interpreters are available. Batch mode disabled.

INFO: a stray image seems to have been left around by a plug-in: "gimp-splash.xcf.xz"
ninja: build stopped: subcommand failed.
/home/builder/.termux-build/gimp/build/app/gimp-console-3.0: LibGimpBase-WARNING: gimp-console-3.0: gimp_wire_read(): unexpected EOF
Traceback (most recent call last):
  File "/home/builder/.termux-build/gimp/build/plug-ins/python/python-eval/python-eval.py", line 24, in <module>
    gi.require_version('Gimp', '3.0')
  File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gimp not available

@twaik twaik force-pushed the gimp-3.0.2 branch 5 times, most recently from 76e3cbf to af989d3 Compare April 2, 2025 10:49
@twaik
Copy link
Copy Markdown
Member Author

twaik commented Apr 2, 2025

I opened two cross-compiling related issues in GIMP tracker.
https://gitlab.gnome.org/GNOME/gimp/-/issues/13527
https://gitlab.gnome.org/GNOME/gimp/-/issues/13528
Let's wait for some answers.

@twaik twaik force-pushed the gimp-3.0.2 branch 2 times, most recently from c00c612 to b4f3b5f Compare April 2, 2025 16:02
@twaik
Copy link
Copy Markdown
Member Author

twaik commented Apr 2, 2025

Well, I had a lot of doubts but seems like it worked. I will test it a bit later. Managing to build it took way too long.

@robertkirkman
Copy link
Copy Markdown
Member

Very good job this is very amazing! I was going to try to help but then you already finished it.

Comment thread x11-packages/gimp/build.sh Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the version of the host binary .AppImage use TERMUX_PKG_VERSION instead of being hardcoded?

Copy link
Copy Markdown
Member Author

@twaik twaik Apr 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure we need appimage at all. Cross-compiled gimp had problems but I want to switch to using cross-compiled gimp during building like was implemented in ebc25377 . This build failed due to https://gitlab.gnome.org/GNOME/gimp/-/issues/13528. Actually I am planning to switch it once it will be resolved.

Comment thread x11-packages/gimp/build.sh Outdated
Comment thread x11-packages/gimp/build.sh Outdated
@twaik
Copy link
Copy Markdown
Member Author

twaik commented Apr 3, 2025

For some reason it did not show any splash screen before starting. Is it fine?

@twaik
Copy link
Copy Markdown
Member Author

twaik commented Apr 3, 2025

Oh, I see, the generated file is corrupted for some reason.

@twaik
Copy link
Copy Markdown
Member Author

twaik commented Apr 3, 2025

Well, I found a reason and reported it as a bug.
https://gitlab.gnome.org/GNOME/gimp/-/issues/13537
Currently I will replace generating splash with extracting it from appimage.

@twaik
Copy link
Copy Markdown
Member Author

twaik commented Apr 3, 2025

Seems like now it starts well. I am intending to merge it in 72 hours if nobody minds or after it gets 2+ approves.

@twaik twaik merged commit bea20c0 into master Apr 5, 2025
11 checks passed
@twaik twaik deleted the gimp-3.0.2 branch April 5, 2025 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants