Gentoo Archives: gentoo-dev

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