GEGL trying to load debug information as modules on OSX
I found that GIMP, if compiled with debug, producing tonn of warnings like:
GEGL-Message: 00:26:59.922: Module './../Resources/lib/gegl-0.4/pixbuf.so.dSYM/Contents/Resources/DWARF/pixbuf.so' load error: dlopen(./../Resources/lib/gegl-0.4/pixbuf.so.dSYM/Contents/Resources/DWARF/pixbuf.so, 10): no suitable image found. Did find:
./../Resources/lib/gegl-0.4/pixbuf.so.dSYM/Contents/Resources/DWARF/pixbuf.so: mach-o, but wrong filetype
/Applications/GIMP-2.10.app/Contents/Resources/lib/gegl-0.4/pixbuf.so.dSYM/Contents/Resources/DWARF/pixbuf.so: mach-o, but wrong filetype
Investigation found that it is trying to load debug information and, of course, failing, as it is not a .so
module. I think that valid_module_name
from the https://gitlab.gnome.org/GNOME/gegl/blob/master/gegl/module/geglmoduledb.c#L299 needs to handle this case and ignore everything containing .dSYM/
in the path