On Wed, May 29, 2019 at 06:49:29PM +0200, 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
> 
> Regards,
> 
> -- 
> Kusalananda
> Sweden

I just noticed that the update to Meson 0.52.0 on the 8th of November
seems to have brought back the issue with the libexecinfo referred to
above.

I haven't written a new patch as I saw that
patch-mesonbuild_compilers_compilers_py had been delete from the port
some four months ago.

I honestly don't know whether the fact that I've haven't had any issues
with Meson and the libexecinfo library for months before the update was
due to the patch (or some package patch on the OpenBSD side), something
Meson did, or whether it was due to some fix in the project I'm trying
to build (the ksh93 shell from its GitHub repo) but that stopped working
with the updated Meson.

Regards,
Kusalananda

> 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',


-- 
Andreas (Kusalananda) Kähäri
SciLifeLab, NBIS, ICM
Uppsala University, Sweden

Reply via email to