]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
Revert "meson.bblcass: Remove empty egg-info directories before running meson"
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 May 2022 16:24:40 +0000 (17:24 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 28 May 2022 17:37:01 +0000 (18:37 +0100)
This reverts commit 47d9d90b4ec7d04d6f3f1a9b97c0ab7f1264a88e.

This is no longer needed with a patch to fix importlib in python.

meta/classes/meson.bbclass

index 0bfe9458118b4319a4a65c2363db549bd4e97c2a..b265e6659fed7ec0ff4b0a9ce55e1b8055261210 100644 (file)
@@ -140,16 +140,6 @@ meson_do_configure() {
     # https://github.com/mesonbuild/meson/commit/ef9aeb188ea2bc7353e59916c18901cde90fa2b3
     unset LD
 
-    # sstate.bbclass no longer removes empty directories to avoid a race (see
-    # commit 4f94d929 "sstate/staging: Handle directory creation race issue").
-    # Unfortunately Python apparently treats an empty egg-info directory as if
-    # the version it previously contained still exists and fails if a newer
-    # version is required, which Meson does. To avoid this, make sure there are
-    # no empty egg-info directories from previous versions left behind. Ignore
-    # all errors from rmdir since the egg-info may be a file rather than a
-    # directory.
-    rmdir ${STAGING_LIBDIR_NATIVE}/${PYTHON_DIR}/site-packages/*.egg-info 2>/dev/null || :
-
     # Work around "Meson fails if /tmp is mounted with noexec #2972"
     mkdir -p "${B}/meson-private/tmp"
     export TMPDIR="${B}/meson-private/tmp"