Thursday, May 30, 2019

Re: [patch] devel/meson: enable detection of libexecinfo

On Wed, May 29, 2019 at 06:49:29PM +0200, Andreas Kusalananda Kähäri wrote:
> Since Meson updated from 0.50.0 to 0.50.1, the libexecinfo library, if
> installed, is not properly detected with Meson's find_library(). The
> attached patch (modification of an existing patch file that we already
> have) fixes this for OpenBSD.
>
> I have also opened an issue about this on the Meson Github pages.
> https://github.com/mesonbuild/meson/issues/5432

Thanks.
Let's see what upstream has to say about this first.


> Regards,
>
> --
> Kusalananda
> Sweden

> Index: patches/patch-mesonbuild_compilers_compilers_py
> ===================================================================
> RCS file: /extra/cvs/ports/devel/meson/patches/patch-mesonbuild_compilers_compilers_py,v
> retrieving revision 1.12
> diff -u -p -r1.12 patch-mesonbuild_compilers_compilers_py
> --- patches/patch-mesonbuild_compilers_compilers_py 18 Apr 2019 09:55:15 -0000 1.12
> +++ patches/patch-mesonbuild_compilers_compilers_py 29 May 2019 16:36:18 -0000
> @@ -13,6 +13,15 @@ Subject: [PATCH] Fix indent to please co
> Index: mesonbuild/compilers/compilers.py
> --- mesonbuild/compilers/compilers.py.orig
> +++ mesonbuild/compilers/compilers.py
> +@@ -82,7 +82,7 @@ cflags_mapping = {'c': 'CFLAGS',
> + 'rust': 'RUSTFLAGS'}
> +
> + # execinfo is a compiler lib on BSD
> +-unixy_compiler_internal_libs = ('m', 'c', 'pthread', 'dl', 'rt', 'execinfo')
> ++unixy_compiler_internal_libs = ('m', 'c', 'pthread', 'dl', 'rt')
> +
> + # All these are only for C-linkable languages; see `clink_langs` above.
> +
> @@ -1491,7 +1491,9 @@ class GnuLikeCompiler(abc.ABC):
> self.compiler_type = compiler_type
> self.base_options = ['b_pch', 'b_lto', 'b_pgo', 'b_sanitize', 'b_coverage',


--
Antoine

No comments:

Post a Comment