pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

devel/glib2 test failure on Darwin



% uname -rsm
Darwin 22.5.0 arm64

===> Building for glib2-2.76.4nb1

[...]

[919/1479] Generating gio/tests/plugin-resources.c with a custom command (wrapped by meson to set env)
FAILED: gio/tests/plugin-resources.c
env LC_ALL=en_US.UTF-8 DYLD_FALLBACK_LIBRARY_PATH=/Users/ffaubert/pkgsrc/devel/glib2/work/glib-2.76.4/output/glib:/Users/ffaubert/pkgsrc/devel/glib2/work/glib-2.76.4/output/gio:/Users/ffaubert/pkgsrc/devel/glib2/work/glib-2.76.4/output/go bject:/Users/ffaubert/pkgsrc/devel/glib2/work/glib-2.76.4/output/gmodule /Users/ffaubert/pkgsrc/devel/glib2/work/glib-2.76.4/output/gio/glib-compile-resources --compiler=clang --target=gio/tests/plugin-resources.c --sourcedir=/Users/ffaub ert/pkgsrc/devel/glib2/work/glib-2.76.4/gio/tests --internal --generate-source --c-name _g_plugin ../gio/tests/test4.gresource.xml
dyld[3058]: Symbol not found: _g_string_free_and_steal
Referenced from: <3E235118-5F9B-386D-98CA-F631C6A6AB13> /Users/ffaubert/pkgsrc/devel/glib2/work/glib-2.76.4/output/gio/glib-compile-resources Expected in: <BE623799-5CD9-3C1C-87DE-7FB89D24C852> /Users/ffaubert/pkg/lib/libglib-2.0.0.dylib
Abort trap

This workaround fixes the failure:
--------8<--------8<--------8<--------8<--------8<--------8<--------8<----------
--- Makefile    14 Aug 2023 05:24:08 -0000      1.294
+++ Makefile    21 Aug 2023 12:34:29 -0000
@@ -15,6 +15,9 @@
 .if ${OPSYS} == "FreeBSD"
 MESON_ARGS+=   -Db_lundef=false
 .endif
+.if ${OPSYS} == "Darwin"
+MESON_ARGS+=   -Dtests=false
+.endif

MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/output/gio:${WRKSRC}/output/glib:${WRKSRC}/output/gobject:${WRKSRC}/output/gmodule
 # For Darwin
--------8<--------8<--------8<--------8<--------8<--------8<--------8<----------

Any idea to address this issue?

Fred


Home | Main Index | Thread Index | Old Index