Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gimp: Testing dev version with Meson #67576

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft

Conversation

jtojnar
Copy link
Contributor

@jtojnar jtojnar commented Aug 27, 2019

Trying to see if we need any changes on Darwin.

Depends on #73833

@jtojnar jtojnar added the 2.status: wait-for-upstream Waiting for upstream fix (or their other action). label Sep 9, 2019
@jtojnar jtojnar mentioned this pull request Oct 31, 2019
1 task
@jtojnar
Copy link
Contributor Author

jtojnar commented Nov 5, 2019

The gjs failure will require #72805

];

buildInputs = [
python3
Copy link
Contributor

@worldofpeace worldofpeace Nov 5, 2019

Choose a reason for hiding this comment

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

Think this won't work if it ends up in a shebang for darwin (because wrappers).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bah. Hoping for C wrappers before GIMP 3 is released.

Copy link
Member

Choose a reason for hiding this comment

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

Good news! makeBinaryWrapper is a thing now: #124556

@jtojnar
Copy link
Contributor Author

jtojnar commented Dec 13, 2019

@GrahamcOfBorg eval

@L-as
Copy link
Member

L-as commented Sep 27, 2023

Can we maybe just remove the old GIMP? I know 3.0 isn't released, but it seems better than the old one in every respect at the state it currently is.

@chayleaf
Copy link
Contributor

chayleaf commented Oct 7, 2023

Gimp 2.99 crashes for me without ${gnome-icon-theme}/share or ${gnome.adwaita-icon-theme}/share in XDG_DATA_DIRS because of missing icons (see https://gitlab.gnome.org/GNOME/gimp/-/issues/2029). Notably, some themes work, and some don't (papirus-icon-theme doesn't)

Gtk:ERROR:../gtk/gtkiconhelper.c:495:ensure_surface_for_gicon: assertion failed (error == NULL): Icon 'image-missing' not present in theme Symbolic (gtk-icon-theme-error-quark, 0)
Bail out! Gtk:ERROR:../gtk/gtkiconhelper.c:495:ensure_surface_for_gicon: assertion failed (error == NULL): Icon 'image-missing' not present in theme Symbolic (gtk-icon-theme-error-quark, 0)
gimp: fatal error: Aborted

@luzpaz
Copy link
Contributor

luzpaz commented Nov 13, 2023

Any progress ?

@TuringTestTwister
Copy link

How can one build this properly? I've tried several commits on this thread, and they call come back with something like

meson.build:323:0: ERROR: Dependency "babl" not found, tried pkgconfig

@9p4
Copy link
Contributor

9p4 commented Dec 11, 2023

ghagl added a commit to ghagl/nix-pkgs that referenced this pull request Jan 1, 2024
@cab404
Copy link
Member

cab404 commented Feb 22, 2024

Given that GIMP is finalizing their stuff before 3.0 release, I guess now is the best time to rebase? <3
https://www.gimp.org/news/2024/02/21/gimp-2-99-18-released/
@jtojnar

@9p4
Copy link
Contributor

9p4 commented Feb 22, 2024

There are a few changes that need to be made for 2.99.18 (adjust a patch file, disable an image format that's not packaged)

I have 2.99.18 tested and running here https://git.sr.ht/~fd/nix-configs/tree/main/item/pkgs/gimp-devel/default.nix

@ndom91
Copy link

ndom91 commented Mar 9, 2024

Using the latest commit as of 09.03 (d7b47ef7a8c35beafd256037df5936c6282d3090), it built successfully, but then crashed upon launching.

The little GIMP loader popup appears, runs through fully, and then when gimp is supposed to actually appear, it crashes with the following dump:

Full Dump
GNU Image Manipulation Program version 2.99.15
git-describe: GIMP_2.99.?-gad7a2e53eb
Build: unknown rev 0 for linux
# C compiler #
gcc-12.3.0
# Libraries #
using babl version 0.1.106 (compiled against version 0.1.106)
using GEGL version 0.4.46 (compiled against version 0.4.46)
using GLib version 2.78.4 (compiled against version 2.78.4)
using GdkPixbuf version 2.42.10 (compiled against version 2.42.10)
using GTK+ version 3.24.41 (compiled against version 3.24.41)
using Pango version 1.51.0 (compiled against version 1.51.0)
using Fontconfig version 2.14.2 (compiled against version 2.14.2)
using Cairo version 1.18.0 (compiled against version 1.18.0)

fatal error: Aborted

Stack trace:

/nix/store/h9mccrkcj8b5r8gy42br181045azyxb3-gimp-2_99_14+date=2023-03-17/lib/libgimpbase-3.0.so.0(gimp_stack_trace_print+0x408)[0x7f094b454928]
gimp-2.99[0x4bc655]
gimp-2.99[0x4bca68]
gimp-2.99[0x4bf6d9]
/nix/store/xmprbk52mlcdsljz66m8yf7cf0xf36n1-glibc-2.38-44/lib/libc.so.6(+0x3da70)[0x7f094991fa70]
/nix/store/xmprbk52mlcdsljz66m8yf7cf0xf36n1-glibc-2.38-44/lib/libc.so.6(+0x8cddc)[0x7f094996eddc]
/nix/store/xmprbk52mlcdsljz66m8yf7cf0xf36n1-glibc-2.38-44/lib/libc.so.6(raise+0x16)[0x7f094991f9c6]
/nix/store/xmprbk52mlcdsljz66m8yf7cf0xf36n1-glibc-2.38-44/lib/libc.so.6(abort+0xd7)[0x7f09499088fa]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libglib-2.0.so.0(+0x22fdb)[0x7f094ab19fdb]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libglib-2.0.so.0(g_assertion_message_error+0xb1)[0x7f094ab816f1]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x1cb198)[0x7f094a1cb198]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x1cb99e)[0x7f094a1cb99e]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x1dfa8d)[0x7f094a1dfa8d]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x12da63)[0x7f094a12da63]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x132df8)[0x7f094a132df8]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x1e0213)[0x7f094a1e0213]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x2a39f5)[0x7f094a2a39f5]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(gtk_widget_get_preferred_width+0x7e)[0x7f094a2a43ae]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0xd9c7f)[0x7f094a0d9c7f]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x12da63)[0x7f094a12da63]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x132df8)[0x7f094a132df8]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0xd9123)[0x7f094a0d9123]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x2a39f5)[0x7f094a2a39f5]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(gtk_widget_get_preferred_width+0x7e)[0x7f094a2a43ae]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x2a39f5)[0x7f094a2a39f5]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(gtk_widget_get_preferred_width+0x7e)[0x7f094a2a43ae]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0xd43a1)[0x7f094a0d43a1]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x27f806)[0x7f094a27f806]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x2a39f5)[0x7f094a2a39f5]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(gtk_widget_get_preferred_width+0x7e)[0x7f094a2a43ae]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x12da63)[0x7f094a12da63]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x132df8)[0x7f094a132df8]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x1fa6e7)[0x7f094a1fa6e7]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x2a39f5)[0x7f094a2a39f5]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(gtk_widget_get_preferred_width+0x7e)[0x7f094a2a43ae]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x1fa3fa)[0x7f094a1fa3fa]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x12da63)[0x7f094a12da63]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x132df8)[0x7f094a132df8]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x1fa580)[0x7f094a1fa580]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x12da63)[0x7f094a12da63]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x132df8)[0x7f094a132df8]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x1fa68a)[0x7f094a1fa68a]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x2a3de6)[0x7f094a2a3de6]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(gtk_widget_get_preferred_height+0x81)[0x7f094a2a3731]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x34d707)[0x7f094a34d707]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x34dc2f)[0x7f094a34dc2f]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(+0x1c8ad)[0x7f094ac5c8ad]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_object_set_valist+0x28c)[0x7f094ac5f9dc]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_object_set+0xec)[0x7f094ac6054c]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(gtk_scrolled_window_set_hadjustment+0x163)[0x7f094a28d9b3]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(+0x1c986)[0x7f094ac5c986]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(+0x1d188)[0x7f094ac5d188]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_object_newv+0x32c)[0x7f094ac5ebac]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0xe16e4)[0x7f094a0e16e4]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0xe2cf5)[0x7f094a0e2cf5]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0xe3c00)[0x7f094a0e3c00]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libglib-2.0.so.0(+0x619a0)[0x7f094ab589a0]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libglib-2.0.so.0(g_markup_parse_context_parse+0x12d5)[0x7f094ab59ed5]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0xe4c43)[0x7f094a0e4c43]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(gtk_builder_extend_with_template+0x194)[0x7f094a0df784]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(gtk_widget_init_template+0xde)[0x7f094a364abe]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x196a60)[0x7f094a196a60]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_type_create_instance+0x211)[0x7f094ac79991]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(+0x1d0d0)[0x7f094ac5d0d0]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_object_newv+0x32c)[0x7f094ac5ebac]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0xe16e4)[0x7f094a0e16e4]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0xe2cf5)[0x7f094a0e2cf5]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0xe3c00)[0x7f094a0e3c00]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libglib-2.0.so.0(+0x619a0)[0x7f094ab589a0]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libglib-2.0.so.0(g_markup_parse_context_parse+0x12d5)[0x7f094ab59ed5]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0xe4c43)[0x7f094a0e4c43]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(gtk_builder_extend_with_template+0x194)[0x7f094a0df784]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(gtk_widget_init_template+0xde)[0x7f094a364abe]
/nix/store/isr05s98lahxzss24g219jhvpy4f3qbr-gtk+3-3.24.41/lib/libgtk-3.so.0(+0x18e6ce)[0x7f094a18e6ce]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_type_create_instance+0x1d3)[0x7f094ac79953]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(+0x1d0d0)[0x7f094ac5d0d0]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_object_new_valist+0x1b3)[0x7f094ac5edb3]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_object_new+0x99)[0x7f094ac5f409]
/nix/store/h9mccrkcj8b5r8gy42br181045azyxb3-gimp-2_99_14+date=2023-03-17/lib/libgimpwidgets-3.0.so.0(gimp_color_profile_chooser_dialog_new+0x2d6)[0x7f094b02d8c6]
gimp-2.99[0x832dea]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_type_create_instance+0x211)[0x7f094ac79991]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(+0x1d0d0)[0x7f094ac5d0d0]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_object_new_with_properties+0x2fc)[0x7f094ac5e82c]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_object_new+0xc1)[0x7f094ac5f431]
gimp-2.99[0x828ee4]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(+0x1d1a6)[0x7f094ac5d1a6]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_object_new_valist+0x1b3)[0x7f094ac5edb3]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_object_new+0x99)[0x7f094ac5f409]
gimp-2.99(gimp_display_shell_new+0x10f)[0x82685f]
gimp-2.99(gimp_display_new+0x197)[0x813047]
gimp-2.99[0x4d4f4c]
gimp-2.99[0x4ce7e3]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_closure_invoke+0x160)[0x7f094ac574f0]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(+0x2a84f)[0x7f094ac6a84f]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(+0x2bb8c)[0x7f094ac6bb8c]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x32)[0x7f094ac71832]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_signal_emit+0x8f)[0x7f094ac718df]
gimp-2.99(gimp_restore+0xfd)[0x5f476d]
gimp-2.99[0x4bb9b9]
/nix/store/f3v1vx92y1cvhbhvm2yi28y9pqxfwlwp-glib-2.78.4/lib/libgobject-2.0.so.0(g_closure_invoke+0x160)[0x7f094ac574f0]

@wegank wegank added 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 2.status: merge conflict labels Mar 19, 2024
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 20, 2024
@414owen
Copy link
Contributor

414owen commented Apr 28, 2024

I've updated @jtojnar's derivation to 2.99.18, and packaged the missing image format libraries (libilbm + libiff) @9p4 mentioned.

I've created a PR to @jtojnar's branch here

Gimp starts up fine. Tests are currently disabled in the derivation because of a missing icon error.

jtojnar and others added 6 commits May 1, 2024 17:18
Co-Authored-By: Linus Heckemann <git@sphalerite.org>
https://www.gimp.org/news/2022/08/27/gimp-2-99-12-released/
GNOME/gimp@256b2d9...a791151

Introduces `gimp-script-fu-interpreter-3.0` as interpreter invoked by shebang of some plug-ins. Let’s ensure it is on `PATH`.
GNOME GitLab instance fails with “fatal: the remote end hung up unexpectedly”
This is already part of gimp master but that does not build yet.
@jtojnar
Copy link
Contributor Author

jtojnar commented May 2, 2024

I rebased to resolve the conflicts, skimmed the upstream changes and merged the update but for some reason that does not build.

The previous GIMP revision still builds fine if I apply https://gitlab.gnome.org/GNOME/gimp/-/commit/a4f02398188bc36d1808ef802082b3856cc73741 as a patch but the latest one does not. I reverted for that for now.

It appears to fail at running GIMP at build time (https://gitlab.gnome.org/GNOME/gimp/-/commit/354970c0ebb5b2af706b6b5aea16d4a19b2dd0ea makes that failure visible) and at test time.

I tried to bisect it but did not succeed. It resulted in a translation commit that obviously cannot be causing the issue:

Bisection log
# bad: [254d4270e6084f6794e737c561d9a5460df9df4c] Updated Italian translation
# good: [ad7a2e53eb72ef471566fa2d0ce9faeec929fbcf] Update Slovenian translation
git bisect start '254d4270e6084f6794e737c561d9a5460df9df4c' 'ad7a2e53eb72ef471566fa2d0ce9faeec929fbcf'
# bad: [220362bf056ed71f2994cb99c5cbc6d370ae8c50] Update Basque translation
git bisect bad 220362bf056ed71f2994cb99c5cbc6d370ae8c50
# bad: [b43a7f5635ad575f63b59e4b2c4d9183df9f529d] Update Slovenian translation
git bisect bad b43a7f5635ad575f63b59e4b2c4d9183df9f529d
# bad: [b43a7f5635ad575f63b59e4b2c4d9183df9f529d] Update Slovenian translation
git bisect bad b43a7f5635ad575f63b59e4b2c4d9183df9f529d
# bad: [521a8613d65138ddff116dc26e82c7095e452798] Update Slovenian translation
git bisect bad 521a8613d65138ddff116dc26e82c7095e452798
# bad: [ed8a4f74105e0db17615873760ce0c4100c3ed76] app: fix a segfault which may happen randomly.
git bisect bad ed8a4f74105e0db17615873760ce0c4100c3ed76
# bad: [91d2d416f19b85dddf0033c48acacf2ce15fbe55] Update Basque translation
git bisect bad 91d2d416f19b85dddf0033c48acacf2ce15fbe55
# bad: [4d56ad943c781b6e0786c2f11a449f58fc0768a7] Revert "Update Persian translation"
git bisect bad 4d56ad943c781b6e0786c2f11a449f58fc0768a7
# bad: [e7695c2b57244d673f1e8db76104c7d92f415e60] plug-ins: Port file-tga widgets to use...
git bisect bad e7695c2b57244d673f1e8db76104c7d92f415e60
# good: [ad2aca633f71e4283a12a609c6356f416dbd9c6c] Update Ukrainian translation
git bisect good ad2aca633f71e4283a12a609c6356f416dbd9c6c
# bad: [be026d4cbafc40965eda9924eedf0fbdcafc7c68] Update Georgian translation
git bisect bad be026d4cbafc40965eda9924eedf0fbdcafc7c68
# bad: [51a511279391010d0381d26a2464c1d7e7ccfe46] Update Slovenian translation
git bisect bad 51a511279391010d0381d26a2464c1d7e7ccfe46
# bad: [d3560e1eb89fea2bbd8471ddceec55bdbbaf7996] Update Georgian translation
git bisect bad d3560e1eb89fea2bbd8471ddceec55bdbbaf7996
# first bad commit: [d3560e1eb89fea2bbd8471ddceec55bdbbaf7996] Update Georgian translation
Patch to facilitate bisection
diff --git a/pkgs/applications/graphics/gimp/default.nix b/pkgs/applications/graphics/gimp/default.nix
index ffb40331d952..ff8229def450 100644
--- a/pkgs/applications/graphics/gimp/default.nix
+++ b/pkgs/applications/graphics/gimp/default.nix
@@ -89,15 +89,16 @@ in stdenv.mkDerivation (finalAttrs: {
   # We should not use fetchFromGitLab because the build system
   # will complain and mark the build as unsupported when it cannot find
   # .git directory but downloading the whole repo is jus too much.
-  src = fetchFromGitHub rec {
-    name = "gimp-dev-${rev}"; # to make sure the hash is updated
-    owner = "GNOME";
-    repo = "gimp";
-    rev = "254d4270e6084f6794e737c561d9a5460df9df4c";
-    hash = "sha256-dCddCFCRDTT4iY+kepKKu413ezWOMEQ1m4hxBptBCfU=";
-    # For gimp-data containing assets.
-    fetchSubmodules = true;
-  };
+  # src = fetchFromGitHub rec {
+  #   name = "gimp-dev-${rev}"; # to make sure the hash is updated
+  #   owner = "GNOME";
+  #   repo = "gimp";
+  #   rev = "254d4270e6084f6794e737c561d9a5460df9df4c";
+  #   hash = "sha256-dCddCFCRDTT4iY+kepKKu413ezWOMEQ1m4hxBptBCfU=";
+  #   # For gimp-data containing assets.
+  #   fetchSubmodules = true;
+  # };
+  src = /home/jtojnar/Projects/gimp;
 
   patches = [
     # to remove compiler from the runtime closure, reference was retained via
@@ -226,7 +227,7 @@ in stdenv.mkDerivation (finalAttrs: {
     # Requires neweer appstreamcli and not necessary
     "-Dappdata-test=disabled"
     # Not yet packaged.
-    "-Dilbm=disabled"
+    # "-Dilbm=disabled"
   ] ++ lib.optionals stdenv.isDarwin [
     "-Dalsa=disabled"
     "-Djavascript=false"
@@ -250,11 +251,22 @@ in stdenv.mkDerivation (finalAttrs: {
       app/tests/create_test_env.sh \
       tools/gimp-mkenums
 
+    export NIX_CFLAGS_COMPILE=$(echo "$NIX_CFLAGS_COMPILE" | sed "s/ -Wno-incompatible-function-pointer-types//g")
+    echo "====$NIX_CFLAGS_COMPILE"
+
     # Bypass the need for downloading git archive.
-    substitute app/git-version.h.in git-version.h \
-      --subst-var-by GIMP_GIT_VERSION "GIMP_2.99.?-g${builtins.substring 0 10 finalAttrs.src.rev}" \
-      --subst-var-by GIMP_GIT_VERSION_ABBREV "${builtins.substring 0 10 finalAttrs.src.rev}" \
-      --subst-var-by GIMP_GIT_LAST_COMMIT_YEAR "${builtins.head (builtins.match ".+\-unstable-([0-9]{4})-[0-9]{2}-[0-9]{2}" finalAttrs.version)}"
+  '';
+    # substitute app/git-version.h.in git-version.h \
+    #   --subst-var-by GIMP_GIT_VERSION "GIMP_2.99.?-g${builtins.substring 0 10 finalAttrs.src.rev}" \
+    #   --subst-var-by GIMP_GIT_VERSION_ABBREV "${builtins.substring 0 10 finalAttrs.src.rev}" \
+    #   --subst-var-by GIMP_GIT_LAST_COMMIT_YEAR "${builtins.head (builtins.match ".+\-unstable-([0-9]{4})-[0-9]{2}-[0-9]{2}" finalAttrs.version)}"
+
+  preBuild = ''
+    # Generating gimp-data/images/gimp-splash.png using tools/in-build-gimp.sh appears to run gimp, which complains:
+    # Failed to create the data directory '/homeless-shelter/.local/share': Permission denied
+    export HOME="$(mktemp -d)"
+
+    templaterc="$out/etc/gimp/3.0/templaterc"
   '';
 
   preCheck = ''
diff --git a/pkgs/applications/graphics/gimp/hardcode-plugin-interpreters.patch b/pkgs/applications/graphics/gimp/hardcode-plugin-interpreters.patch
index 13e37da3bd24..6cb261d84ff0 100644
--- a/pkgs/applications/graphics/gimp/hardcode-plugin-interpreters.patch
+++ b/pkgs/applications/graphics/gimp/hardcode-plugin-interpreters.patch
@@ -1,8 +1,8 @@
 --- a/plug-ins/python/pygimp.interp.in
 +++ b/plug-ins/python/pygimp.interp.in
 @@ -2,4 +2,4 @@ python=@PYTHON_PATH@
- python3=@PYTHON_PATH@python.exe
- /usr/bin/python=@PYTHON_PATH@python.exe
- /usr/bin/python3=@PYTHON_PATH@python.exe
+ python3=@PYTHON_PATH@
+ /usr/bin/python=@PYTHON_PATH@
+ /usr/bin/python3=@PYTHON_PATH@
 -:Python:E::py::python3:
 +:Python:E::py::@python_interpreter@:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet