pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/glib2 devel/glib2: Fix build failure on Darwin
details: https://anonhg.NetBSD.org/pkgsrc/rev/041c1fddc20c
branches: trunk
changeset: 409893:041c1fddc20c
user: minskim <minskim%pkgsrc.org@localhost>
date: Wed Jan 22 17:09:44 2020 +0000
description:
devel/glib2: Fix build failure on Darwin
The new patch sets LD_LIBRARY_PATH so that uninstalled
glib-compile-resources can find libraries. This fixes the following
error during build:
[651/1015] Generating plugin-resources.c with a custom command.
FAILED: gio/tests/plugin-resources.c
/Users/pbulk/pkgsrc/work/devel/glib2/work/glib-2.62.4/output/gio/glib-compile-resources --target=gio/tests/plugin-resources.c
--sourcedir=/Users/pbulk/pkgsrc/work/devel/glib2/work/glib-2.62.4/gio/tests --generate-source --c-name _g_plugin ../gio/tests/test4.gresource.xml
dyld: Library not loaded: @rpath/libgio-2.0.0.dylib
Referenced from: /Users/pbulk/pkgsrc/work/devel/glib2/work/glib-2.62.4/output/gio/glib-compile-resources
Reason: image not found
diffstat:
devel/glib2/distinfo | 3 +-
devel/glib2/patches/patch-gio_tests_meson.build | 83 +++++++++++++++++++++++++
2 files changed, 85 insertions(+), 1 deletions(-)
diffs (104 lines):
diff -r 619fa4664ad0 -r 041c1fddc20c devel/glib2/distinfo
--- a/devel/glib2/distinfo Wed Jan 22 14:06:08 2020 +0000
+++ b/devel/glib2/distinfo Wed Jan 22 17:09:44 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.264 2019/12/29 19:58:47 triaxx Exp $
+$NetBSD: distinfo,v 1.265 2020/01/22 17:09:44 minskim Exp $
SHA1 (glib-2.62.4.tar.xz) = f9a493c86f98482f13c6ed742c19487e6fa8f34b
RMD160 (glib-2.62.4.tar.xz) = 4cac1bc54a690b007c859db2e9d65c33dc97395c
@@ -13,6 +13,7 @@
SHA1 (patch-gio_inotify_inotify-kernel.c) = 78544b4c32ef3b44e8721b1c07407f46a9e8c8a4
SHA1 (patch-gio_meson.build) = c2bda4943f8580706ec45760604ed1bdf63d1c6f
SHA1 (patch-gio_tests_gdbus-export.c) = 59d85ca079d02b52e33153c7d2ac1cc48c26707a
+SHA1 (patch-gio_tests_meson.build) = 38fbe56f310545163623c5dbd9ba1f8a25e4d928
SHA1 (patch-glib_gatomic.c) = 875ad9c828dcf2add356d4988d14fb4f1985aef8
SHA1 (patch-glib_gatomic.h) = 21294cac483c3379198283c54fe6e24af3e630b1
SHA1 (patch-glib_genviron.c) = 7182f5ef2ebc7f17d8d4fb892e946c52c8c0ad1d
diff -r 619fa4664ad0 -r 041c1fddc20c devel/glib2/patches/patch-gio_tests_meson.build
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/glib2/patches/patch-gio_tests_meson.build Wed Jan 22 17:09:44 2020 +0000
@@ -0,0 +1,83 @@
+$NetBSD: patch-gio_tests_meson.build,v 1.1 2020/01/22 17:09:44 minskim Exp $
+
+Darwin: Set LD_LIBRARY_PATH to run uninstalled executable with @rpath.
+
+--- gio/tests/meson.build.orig 2019-12-19 16:33:15.000000000 +0000
++++ gio/tests/meson.build
+@@ -470,7 +470,9 @@ if not meson.is_cross_build() or meson.h
+ plugin_resources_c = custom_target('plugin-resources.c',
+ input : 'test4.gresource.xml',
+ output : 'plugin-resources.c',
+- command : [glib_compile_resources,
++ command : [env_program.path(),
++ 'LD_LIBRARY_PATH=gio:glib:gmodule:gobject',
++ glib_compile_resources,
+ '--target=@OUTPUT@',
+ '--sourcedir=' + meson.current_source_dir(),
+ '--generate-source',
+@@ -494,7 +496,9 @@ if not meson.is_cross_build() or meson.h
+ test_gresource = custom_target('test.gresource',
+ input : 'test.gresource.xml',
+ output : 'test.gresource',
+- command : [glib_compile_resources,
++ command : [env_program.path(),
++ 'LD_LIBRARY_PATH=gio:glib:gmodule:gobject',
++ glib_compile_resources,
+ '--target=@OUTPUT@',
+ '--sourcedir=' + meson.current_source_dir(),
+ '--sourcedir=' + meson.current_build_dir(),
+@@ -505,7 +509,9 @@ if not meson.is_cross_build() or meson.h
+ test_resources2_c = custom_target('test_resources2.c',
+ input : 'test3.gresource.xml',
+ output : 'test_resources2.c',
+- command : [glib_compile_resources,
++ command : [env_program.path(),
++ 'LD_LIBRARY_PATH=gio:glib:gmodule:gobject',
++ glib_compile_resources,
+ '--target=@OUTPUT@',
+ '--sourcedir=' + meson.current_source_dir(),
+ '--generate',
+@@ -516,7 +522,9 @@ if not meson.is_cross_build() or meson.h
+ test_resources2_h = custom_target('test_resources2.h',
+ input : 'test3.gresource.xml',
+ output : 'test_resources2.h',
+- command : [glib_compile_resources,
++ command : [env_program.path(),
++ 'LD_LIBRARY_PATH=gio:glib:gmodule:gobject',
++ glib_compile_resources,
+ '--target=@OUTPUT@',
+ '--sourcedir=' + meson.current_source_dir(),
+ '--generate',
+@@ -528,7 +536,9 @@ if not meson.is_cross_build() or meson.h
+ input : 'test2.gresource.xml',
+ depends : big_test_resource,
+ output : 'test_resources.c',
+- command : [glib_compile_resources,
++ command : [env_program.path(),
++ 'LD_LIBRARY_PATH=gio:glib:gmodule:gobject',
++ glib_compile_resources,
+ '--target=@OUTPUT@',
+ '--sourcedir=' + meson.current_source_dir(),
+ '--sourcedir=' + meson.current_build_dir(),
+@@ -539,7 +549,9 @@ if not meson.is_cross_build() or meson.h
+ digit_test_resources_c = custom_target('digit_test_resources.c',
+ input : '111_digit_test.gresource.xml',
+ output : 'digit_test_resources.c',
+- command : [glib_compile_resources,
++ command : [env_program.path(),
++ 'LD_LIBRARY_PATH=gio:glib:gmodule:gobject',
++ glib_compile_resources,
+ '--target=@OUTPUT@',
+ '--sourcedir=' + meson.current_source_dir(),
+ '--sourcedir=' + meson.current_build_dir(),
+@@ -550,7 +562,9 @@ if not meson.is_cross_build() or meson.h
+ digit_test_resources_h = custom_target('digit_test_resources.h',
+ input : '111_digit_test.gresource.xml',
+ output : 'digit_test_resources.h',
+- command : [glib_compile_resources,
++ command : [env_program.path(),
++ 'LD_LIBRARY_PATH=gio:glib:gmodule:gobject',
++ glib_compile_resources,
+ '--target=@OUTPUT@',
+ '--sourcedir=' + meson.current_source_dir(),
+ '--generate',
Home |
Main Index |
Thread Index |
Old Index