pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/glib2 Fix build on older Linux distros.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/766a444541ce
branches:  trunk
changeset: 409991:766a444541ce
user:      sevan <sevan%pkgsrc.org@localhost>
date:      Thu Jan 23 23:54:22 2020 +0000

description:
Fix build on older Linux distros.

diffstat:

 devel/glib2/distinfo                            |   4 ++--
 devel/glib2/patches/patch-gio_tests_meson.build |  20 +++++++++++++++++++-
 2 files changed, 21 insertions(+), 3 deletions(-)

diffs (51 lines):

diff -r 0fa7b8d11889 -r 766a444541ce devel/glib2/distinfo
--- a/devel/glib2/distinfo      Thu Jan 23 22:59:42 2020 +0000
+++ b/devel/glib2/distinfo      Thu Jan 23 23:54:22 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.265 2020/01/22 17:09:44 minskim Exp $
+$NetBSD: distinfo,v 1.266 2020/01/23 23:54:22 sevan Exp $
 
 SHA1 (glib-2.62.4.tar.xz) = f9a493c86f98482f13c6ed742c19487e6fa8f34b
 RMD160 (glib-2.62.4.tar.xz) = 4cac1bc54a690b007c859db2e9d65c33dc97395c
@@ -13,7 +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-gio_tests_meson.build) = aadb773caa5f120f47a4182ae364e9d257839e6c
 SHA1 (patch-glib_gatomic.c) = 875ad9c828dcf2add356d4988d14fb4f1985aef8
 SHA1 (patch-glib_gatomic.h) = 21294cac483c3379198283c54fe6e24af3e630b1
 SHA1 (patch-glib_genviron.c) = 7182f5ef2ebc7f17d8d4fb892e946c52c8c0ad1d
diff -r 0fa7b8d11889 -r 766a444541ce devel/glib2/patches/patch-gio_tests_meson.build
--- a/devel/glib2/patches/patch-gio_tests_meson.build   Thu Jan 23 22:59:42 2020 +0000
+++ b/devel/glib2/patches/patch-gio_tests_meson.build   Thu Jan 23 23:54:22 2020 +0000
@@ -1,6 +1,9 @@
-$NetBSD: patch-gio_tests_meson.build,v 1.1 2020/01/22 17:09:44 minskim Exp $
+$NetBSD: patch-gio_tests_meson.build,v 1.2 2020/01/23 23:54:22 sevan Exp $
 
 Darwin: Set LD_LIBRARY_PATH to run uninstalled executable with @rpath.
+Check objcopy(1) supports --add-symbol which may not be available on
+legacy systems.
+https://gitlab.gnome.org/GNOME/glib/commit/dac4a48d14461a118d8ad7825a39e224bf128807
 
 --- gio/tests/meson.build.orig 2019-12-19 16:33:15.000000000 +0000
 +++ gio/tests/meson.build
@@ -81,3 +84,18 @@
                 '--target=@OUTPUT@',
                 '--sourcedir=' + meson.current_source_dir(),
                 '--generate',
+@@ -577,9 +591,13 @@ if not meson.is_cross_build() or meson.h
+   # Support for --add-symbol was added to LLVM objcopy in 2019
+   # (https://reviews.llvm.org/D58234). FIXME: This test could be enabled for
+   # LLVM once that support is in a stable release.
++  objcopy_valid = false
+   objcopy = find_program('objcopy', required : false)
++  if objcopy.found()
++      objcopy_valid = run_command(objcopy, '--help').stdout().contains('--add-symbol')
++  endif
+ 
+-  if build_machine.system() == 'linux' and cc.get_id() == 'gcc' and objcopy.found()
++  if build_machine.system() == 'linux' and cc.get_id() == 'gcc' and objcopy.found() and objcopy_valid
+     test_gresource_binary = custom_target('test5.gresource',
+       input : 'test5.gresource.xml',
+       output : 'test5.gresource',



Home | Main Index | Thread Index | Old Index