Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: Sergei Trofimovich <slyfox@g.o>
Cc: Gentoo Dev <gentoo-dev@l.g.o>, William Hubbs <williamh@g.o>
Subject: [gentoo-dev] Re: [PATCH] meson.eclass: override 'nm' tool with tuple-prefixed one
Date: Fri, 12 Jun 2020 19:20:41
Message-Id: CAJ0EP431wuCi5um6-dPDt3n4BAhpC9Ga6hTphvV0GyZmUcNJgg@mail.gmail.com
In Reply to: [gentoo-dev] [PATCH] meson.eclass: override 'nm' tool with tuple-prefixed one by Sergei Trofimovich
1 On Fri, Jun 12, 2020 at 2:37 PM Sergei Trofimovich <slyfox@g.o> wrote:
2 >
3 > x11-libs/libdrm and media-libs/libglvnd fail to find 'nm'
4 > tool on sys-devel/binutils-config[-native-symlinks] system as:
5 > `meson.build:40:0: ERROR: Program(s) ['nm'] not found or not executable`
6 >
7 > It's caused by the code that locates the tool as:
8 > `prog_nm = find_program('nm')`.
9 >
10 > The change adds 'nm' tool along with other binutils tools.
11 >
12 > CC: William Hubbs <williamh@g.o>
13 > CC: Mike Gilbert <floppym@g.o>
14 > Closes: https://bugs.gentoo.org/720886
15 > Signed-off-by: Sergei Trofimovich <slyfox@g.o>
16 > ---
17 > eclass/meson.eclass | 2 ++
18 > 1 file changed, 2 insertions(+)
19 >
20 > diff --git a/eclass/meson.eclass b/eclass/meson.eclass
21 > index e79faa1beea..20f74a29b83 100644
22 > --- a/eclass/meson.eclass
23 > +++ b/eclass/meson.eclass
24 > @@ -178,6 +178,7 @@ _meson_create_cross_file() {
25 > cpp = $(_meson_env_array "$(tc-getCXX)")
26 > fortran = $(_meson_env_array "$(tc-getFC)")
27 > llvm-config = '$(tc-getPROG LLVM_CONFIG llvm-config)'
28 > + nm = $(_meson_env_array "$(tc-getNM nm)")
29 > objc = $(_meson_env_array "$(tc-getPROG OBJC cc)")
30 > objcpp = $(_meson_env_array "$(tc-getPROG OBJCXX c++)")
31 > pkgconfig = '$(tc-getPKG_CONFIG)'
32 > @@ -228,6 +229,7 @@ _meson_create_native_file() {
33 > cpp = $(_meson_env_array "$(tc-getBUILD_CXX)")
34 > fortran = $(_meson_env_array "$(tc-getBUILD_PROG FC gfortran)")
35 > llvm-config = '$(tc-getBUILD_PROG LLVM_CONFIG llvm-config)'
36 > + nm = $(_meson_env_array "$(tc-getBUILD_NM nm)")
37 > objc = $(_meson_env_array "$(tc-getBUILD_PROG OBJC cc)")
38 > objcpp = $(_meson_env_array "$(tc-getBUILD_PROG OBJCXX c++)")
39 > pkgconfig = '$(tc-getBUILD_PKG_CONFIG)'
40
41 You are passing an extraneous "nm" to tc-getNM and tc-getBUILD_NM.

Replies