New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad interaction with cross file and find_program() #3737
Comments
halstead
pushed a commit
to openembedded/openembedded-core
that referenced
this issue
Jun 16, 2018
There's a bug in Meson[1] where it find_program("foo") will fail if foo is defined in the cross file as a list. This is causing the Meson build of libdrm to fail, but for this instance we can work around the problem by only using lists in the cross file if there are arguments, and just using a string if there are not. [1] mesonbuild/meson#3737 Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
gbionescu
pushed a commit
to gbionescu/poky
that referenced
this issue
Jun 16, 2018
There's a bug in Meson[1] where it find_program("foo") will fail if foo is defined in the cross file as a list. This is causing the Meson build of libdrm to fail, but for this instance we can work around the problem by only using lists in the cross file if there are arguments, and just using a string if there are not. [1] mesonbuild/meson#3737 (From OE-Core rev: d50a50e3e09f02cb90fe5e80cd6233a84bf69f90) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
kraj
pushed a commit
to YoeDistro/poky-old
that referenced
this issue
Jun 16, 2018
There's a bug in Meson[1] where it find_program("foo") will fail if foo is defined in the cross file as a list. This is causing the Meson build of libdrm to fail, but for this instance we can work around the problem by only using lists in the cross file if there are arguments, and just using a string if there are not. [1] mesonbuild/meson#3737 (From OE-Core rev: d50a50e3e09f02cb90fe5e80cd6233a84bf69f90) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
halstead
pushed a commit
to openembedded/openembedded-core
that referenced
this issue
Jun 16, 2018
There's a bug in Meson[1] where it find_program("foo") will fail if foo is defined in the cross file as a list. This is causing the Meson build of libdrm to fail, but for this instance we can work around the problem by only using lists in the cross file if there are arguments, and just using a string if there are not. [1] mesonbuild/meson#3737 Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
gbionescu
pushed a commit
to gbionescu/poky
that referenced
this issue
Jun 16, 2018
There's a bug in Meson[1] where it find_program("foo") will fail if foo is defined in the cross file as a list. This is causing the Meson build of libdrm to fail, but for this instance we can work around the problem by only using lists in the cross file if there are arguments, and just using a string if there are not. [1] mesonbuild/meson#3737 (From OE-Core rev: 928a7e26f254eb2da20bd917e83ed5467323de13) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
gbionescu
pushed a commit
to gbionescu/poky
that referenced
this issue
Jun 17, 2018
There's a bug in Meson[1] where it find_program("foo") will fail if foo is defined in the cross file as a list. This is causing the Meson build of libdrm to fail, but for this instance we can work around the problem by only using lists in the cross file if there are arguments, and just using a string if there are not. [1] mesonbuild/meson#3737 (From OE-Core rev: 928a7e26f254eb2da20bd917e83ed5467323de13) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
gbionescu
pushed a commit
to gbionescu/poky
that referenced
this issue
Jun 17, 2018
There's a bug in Meson[1] where it find_program("foo") will fail if foo is defined in the cross file as a list. This is causing the Meson build of libdrm to fail, but for this instance we can work around the problem by only using lists in the cross file if there are arguments, and just using a string if there are not. [1] mesonbuild/meson#3737 (From OE-Core rev: 928a7e26f254eb2da20bd917e83ed5467323de13) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
gbionescu
pushed a commit
to gbionescu/poky
that referenced
this issue
Jun 17, 2018
There's a bug in Meson[1] where it find_program("foo") will fail if foo is defined in the cross file as a list. This is causing the Meson build of libdrm to fail, but for this instance we can work around the problem by only using lists in the cross file if there are arguments, and just using a string if there are not. [1] mesonbuild/meson#3737 (From OE-Core rev: 928a7e26f254eb2da20bd917e83ed5467323de13) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
halstead
pushed a commit
to openembedded/openembedded-core
that referenced
this issue
Jun 18, 2018
There's a bug in Meson[1] where it find_program("foo") will fail if foo is defined in the cross file as a list. This is causing the Meson build of libdrm to fail, but for this instance we can work around the problem by only using lists in the cross file if there are arguments, and just using a string if there are not. [1] mesonbuild/meson#3737 Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
gbionescu
pushed a commit
to gbionescu/poky
that referenced
this issue
Jun 18, 2018
There's a bug in Meson[1] where it find_program("foo") will fail if foo is defined in the cross file as a list. This is causing the Meson build of libdrm to fail, but for this instance we can work around the problem by only using lists in the cross file if there are arguments, and just using a string if there are not. [1] mesonbuild/meson#3737 (From OE-Core rev: 7fd8bc469c2caacc1c2021bd0aa83dd6da7fe1e7) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
jpuhlman
pushed a commit
to MontaVista-OpenSourceTechnology/poky
that referenced
this issue
Jun 19, 2018
Source: poky MR: 00000 Type: Integration Disposition: Merged from poky ChangeID: c76ca2c Description: There's a bug in Meson[1] where it find_program("foo") will fail if foo is defined in the cross file as a list. This is causing the Meson build of libdrm to fail, but for this instance we can work around the problem by only using lists in the cross file if there are arguments, and just using a string if there are not. [1] mesonbuild/meson#3737 (From OE-Core rev: 7fd8bc469c2caacc1c2021bd0aa83dd6da7fe1e7) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
nirbheek
added a commit
that referenced
this issue
Jun 29, 2018
This is accepted by all other binaries in the cross file. With this change, we also don't check whether the specified command exists at configure time, but that's probably a feature anyway. Fixes #3737
nirbheek
added a commit
that referenced
this issue
Jun 29, 2018
This is accepted by all other binaries in the cross file. With this change, we also don't check whether the specified command exists at configure time, but that's probably a feature anyway. Fixes #3737
nirbheek
added a commit
that referenced
this issue
Jun 29, 2018
This is accepted by all other binaries in the cross file. With this change, we also don't check whether the specified command exists at configure time, but that's probably a feature anyway. Fixes #3737
nirbheek
added a commit
that referenced
this issue
Jun 29, 2018
This is accepted by all other binaries in the cross file. With this change, we also don't check whether the specified command exists at configure time, but that's probably a feature anyway. Fixes #3737
nirbheek
added a commit
that referenced
this issue
Jul 1, 2018
This is accepted by all other binaries in the cross file. With this change, we also don't check whether the specified command exists at configure time, but that's probably a feature anyway. Fixes #3737
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because it's generated, my cross file often contains arguments to commands. To make things easier, all items are written as lists. For example:
I believe this is fine because we've done this for a while to pass CFLAGS and so on.
However if meson.build does find_program('nm').path(), you get a exception from inside posixpath.
Changing the cross to be nm = "my-nm" works fine, but I suspect this is a workaround and not a fix.
The text was updated successfully, but these errors were encountered: