]> code.ossystems Code Review - openembedded-core.git/commit
meson.bbclass: Fix build issues with /tmp mounted with noexec
authorMark Asselstine <mark.asselstine@windriver.com>
Wed, 10 Oct 2018 19:35:44 +0000 (15:35 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 Oct 2018 07:44:05 +0000 (08:44 +0100)
commit9800daf59d2235bc492d1aeb600e46ad62303510
tree6907fb09bcad4a4023922d6b6773551261b67640
parent35baffb28a4598f385a6ab7765427db683146c1b
meson.bbclass: Fix build issues with /tmp mounted with noexec

Since commit d297f7ebf3f6 [fribidi: use Meson instead of autotools]
build failures have been observed with this package. The immediate
issue was related to improperly named #defines per
https://github.com/fribidi/fribidi/commit/46f52d588ab5, however, the
root cause was FRIBIDI_SIZEOF_INT getting a value of "-1".

After searching the meson logs the following was found:

  Could not run: /tmp/tmp2fxe6ha1/output.exe (error: [Errno 13] Permission denied)
  Checking for size of "int": -1

Which pointed to the real root cause being /tmp mounted with noexec, a
common configuration on Redhat and other distros. This issues has been
raised in the meson community:
https://github.com/mesonbuild/meson/issues/2972 but is yet to be
addressed.

Using the discussion from issue#2972 and the fact that the underlying
code makes use of python 'tempfile' we can simply create a 'tmp'
directory and make use of TMPDIR to avoid this issue.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/meson.bbclass