Skip to contentSkip to conversation

meson: remove TMPDIR workaround

PATCH New [email protected] 1 participant 1 message Feb 9, 2024 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: remove TMPDIR workaround

From: Ross Burton <[email protected]>

We had to export TMPDIR because Meson was writing temporary files into /tmp and then trying to run them, but some systems had /tmp mounted noexec.

This is now solved upstream as of meson commit 1e182b5 (which was part of Meson 0.52.0), and these temporary files are written to the build tree instead.

---
 meta/classes-recipe/meson.bbclass | 3 ---
 1 file changed, 3 deletions(-)
meta/classes-recipe/meson.bbclass +0 -3
index 33043231b48..a849e872976 100644
@@ -152,9 +152,6 @@ meson_do_configure() {
     # https://github.com/mesonbuild/meson/commit/ef9aeb188ea2bc7353e59916c18901cde90fa2b3
     unset LD
 
-    # Work around "Meson fails if /tmp is mounted with noexec #2972"
-    mkdir -p "${B}/meson-private/tmp"
-    export TMPDIR="${B}/meson-private/tmp"
     bbnote Executing meson ${EXTRA_OEMESON}...
     if ! meson setup ${MESONOPTS} "${MESON_SOURCEPATH}" "${B}" ${MESON_CROSS_FILE} ${EXTRA_OEMESON}; then
         bbfatal_log meson failed
Signature · 1 line
2.34.1