[gegl] gegl: reject paths containing .dSYM when looking for modules on OSX
- From: Øyvind "pippin" Kolås <ok src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gegl] gegl: reject paths containing .dSYM when looking for modules on OSX
 
- Date: Sun,  7 Jun 2020 18:41:52 +0000 (UTC)
 
commit e4bbf179b207c6e0420000f24828a61413d08584
Author: Øyvind Kolås <pippin gimp org>
Date:   Sun Jun 7 20:39:43 2020 +0200
    gegl: reject paths containing .dSYM when looking for modules on OSX
    
    This removes a lot of warnings when a debug build of gegl/ is run with
    GIMP, fixing issue #112.
 gegl/module/geglmoduledb.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gegl/module/geglmoduledb.c b/gegl/module/geglmoduledb.c
index 85e63197f..f9b654552 100644
--- a/gegl/module/geglmoduledb.c
+++ b/gegl/module/geglmoduledb.c
@@ -308,7 +308,8 @@ valid_module_name (const gchar *filename)
         }
     }
 #ifdef __APPLE__ /* G_MODULE_SUFFIX is defined to .so instead of .dylib */
-  if (! gegl_datafiles_check_extension (basename, ".dylib" ))
+  if (! gegl_datafiles_check_extension (basename, ".dylib" ) ||
+      strstr (filename, ".dSYM"))
 #else
   if (! gegl_datafiles_check_extension (basename, "." G_MODULE_SUFFIX))
 #endif
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]