$NetBSD: patch-gio_tests_meson.build,v 1.8 2023/08/22 14:09:37 schmonz Exp $ Work around PR pkg/57399. + DYLD_LIBRARY_PATH for macOS --- gio/tests/meson.build.orig 2023-07-06 15:39:47.000000000 +0000 +++ gio/tests/meson.build @@ -756,6 +756,10 @@ if not meson.is_cross_build() plugin_resources_c = custom_target('plugin-resources.c', input : 'test4.gresource.xml', output : 'plugin-resources.c', + env : { + 'LC_ALL': 'en_US.UTF-8', + 'DYLD_LIBRARY_PATH': '@0@/glib:@0@/gio:@0@/gobject:@0@/gmodule'.replace('@0@', meson.project_build_root()) + }, command : [glib_compile_resources, compiler_type, '--target=@OUTPUT@', @@ -785,6 +789,10 @@ if not meson.is_cross_build() test_gresource = custom_target('test.gresource', input : 'test.gresource.xml', output : 'test.gresource', + env : { + 'LC_ALL': 'en_US.UTF-8', + 'DYLD_LIBRARY_PATH': '@0@/glib:@0@/gio:@0@/gobject:@0@/gmodule'.replace('@0@', meson.project_build_root()) + }, command : [glib_compile_resources, compiler_type, '--target=@OUTPUT@', @@ -799,6 +807,10 @@ if not meson.is_cross_build() test_resources2_c = custom_target('test_resources2.c', input : 'test3.gresource.xml', output : 'test_resources2.c', + env : { + 'LC_ALL': 'en_US.UTF-8', + 'DYLD_LIBRARY_PATH': '@0@/glib:@0@/gio:@0@/gobject:@0@/gmodule'.replace('@0@', meson.project_build_root()) + }, command : [glib_compile_resources, compiler_type, '--target=@OUTPUT@', @@ -812,6 +824,10 @@ if not meson.is_cross_build() test_resources2_h = custom_target('test_resources2.h', input : 'test3.gresource.xml', output : 'test_resources2.h', + env : { + 'LC_ALL': 'en_US.UTF-8', + 'DYLD_LIBRARY_PATH': '@0@/glib:@0@/gio:@0@/gobject:@0@/gmodule'.replace('@0@', meson.project_build_root()) + }, command : [glib_compile_resources, compiler_type, '--target=@OUTPUT@', @@ -826,6 +842,10 @@ if not meson.is_cross_build() input : 'test2.gresource.xml', depends : big_test_resource, output : 'test_resources.c', + env : { + 'LC_ALL': 'en_US.UTF-8', + 'DYLD_LIBRARY_PATH': '@0@/glib:@0@/gio:@0@/gobject:@0@/gmodule'.replace('@0@', meson.project_build_root()) + }, command : [glib_compile_resources, compiler_type, '--target=@OUTPUT@', @@ -839,6 +859,10 @@ if not meson.is_cross_build() digit_test_resources_c = custom_target('digit_test_resources.c', input : '111_digit_test.gresource.xml', output : 'digit_test_resources.c', + env : { + 'LC_ALL': 'en_US.UTF-8', + 'DYLD_LIBRARY_PATH': '@0@/glib:@0@/gio:@0@/gobject:@0@/gmodule'.replace('@0@', meson.project_build_root()) + }, command : [glib_compile_resources, compiler_type, '--target=@OUTPUT@', @@ -852,6 +876,10 @@ if not meson.is_cross_build() digit_test_resources_h = custom_target('digit_test_resources.h', input : '111_digit_test.gresource.xml', output : 'digit_test_resources.h', + env : { + 'LC_ALL': 'en_US.UTF-8', + 'DYLD_LIBRARY_PATH': '@0@/glib:@0@/gio:@0@/gobject:@0@/gmodule'.replace('@0@', meson.project_build_root()) + }, command : [glib_compile_resources, compiler_type, '--target=@OUTPUT@',