$NetBSD: patch-gio_tests_meson.build,v 1.11 2025/06/30 18:21:29 schmonz Exp $ Work around PR pkg/57399. + DYLD_LIBRARY_PATH for macOS --- gio/tests/meson.build.orig 2025-06-13 11:55:59.000000000 +0000 +++ gio/tests/meson.build @@ -845,6 +845,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@', @@ -878,6 +882,10 @@ if not meson.is_cross_build() input : 'test.gresource.xml', depends : [test_generated_txt, gspawn_helpers], 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@', @@ -893,6 +901,10 @@ if not meson.is_cross_build() input : 'test6.gresource.xml', depends : [gspawn_helpers], output : 'test6.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@', @@ -908,6 +920,10 @@ if not meson.is_cross_build() input : 'test3.gresource.xml', depends : [gspawn_helpers], 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@', @@ -922,6 +938,10 @@ if not meson.is_cross_build() input : 'test3.gresource.xml', depends : [gspawn_helpers], 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@', @@ -936,6 +956,10 @@ if not meson.is_cross_build() input : 'test2.gresource.xml', depends : [big_test_resource, gspawn_helpers], 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@', @@ -950,6 +974,10 @@ if not meson.is_cross_build() input : '111_digit_test.gresource.xml', depends : [gspawn_helpers], 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@', @@ -964,6 +992,10 @@ if not meson.is_cross_build() input : '111_digit_test.gresource.xml', depends : [gspawn_helpers], 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@',