diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-27 17:24:40 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-28 18:38:02 +0100 |
commit | 3ab62518a83793b4154f8302058a1e25570a250b (patch) | |
tree | 00c273937739814e87f9ef3c001dd41bd5a28f98 /meta/classes | |
parent | 09cd7bddb49947318ab2d40a373be6a3fadda1d4 (diff) | |
download | poky-3ab62518a83793b4154f8302058a1e25570a250b.tar.gz |
Revert "meson.bblcass: Remove empty egg-info directories before running meson"
This reverts commit 47d9d90b4ec7d04d6f3f1a9b97c0ab7f1264a88e.
This is no longer needed with a patch to fix importlib in python.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/meson.bbclass | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass index 0bfe945811..b265e6659f 100644 --- a/meta/classes/meson.bbclass +++ b/meta/classes/meson.bbclass | |||
@@ -140,16 +140,6 @@ meson_do_configure() { | |||
140 | # https://github.com/mesonbuild/meson/commit/ef9aeb188ea2bc7353e59916c18901cde90fa2b3 | 140 | # https://github.com/mesonbuild/meson/commit/ef9aeb188ea2bc7353e59916c18901cde90fa2b3 |
141 | unset LD | 141 | unset LD |
142 | 142 | ||
143 | # sstate.bbclass no longer removes empty directories to avoid a race (see | ||
144 | # commit 4f94d929 "sstate/staging: Handle directory creation race issue"). | ||
145 | # Unfortunately Python apparently treats an empty egg-info directory as if | ||
146 | # the version it previously contained still exists and fails if a newer | ||
147 | # version is required, which Meson does. To avoid this, make sure there are | ||
148 | # no empty egg-info directories from previous versions left behind. Ignore | ||
149 | # all errors from rmdir since the egg-info may be a file rather than a | ||
150 | # directory. | ||
151 | rmdir ${STAGING_LIBDIR_NATIVE}/${PYTHON_DIR}/site-packages/*.egg-info 2>/dev/null || : | ||
152 | |||
153 | # Work around "Meson fails if /tmp is mounted with noexec #2972" | 143 | # Work around "Meson fails if /tmp is mounted with noexec #2972" |
154 | mkdir -p "${B}/meson-private/tmp" | 144 | mkdir -p "${B}/meson-private/tmp" |
155 | export TMPDIR="${B}/meson-private/tmp" | 145 | export TMPDIR="${B}/meson-private/tmp" |