meson: add explanatory comment to the meson-native wrapper script
PATCH 1/3 meson: add explanatory comment to the meson-native wrapper script
Add a clarification comment because it's not immediately obvious that meson-native is used in eSDKs (whereas nativesdk-meson is used in a SDK).
--- meta/recipes-devtools/meson/meson/meson-wrapper | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-devtools/meson/meson/meson-wrapper +2 -0
@@ -1,5 +1,7 @@ #!/bin/sh +# If this wrapper script is being ran in a normal build environment and not an +# eSDK, then just call the real script directly. if [ -z "$OECORE_NATIVE_SYSROOT" ]; then exec "meson.real" "$@" fi
Signature · 1 line
2.43.0
PATCH 2/3 meson: remove obsolete environment unsets
We no longer need to remove environment variables because their behaviour was fixed in meson 0.54.0[1]. The corresponding cleanup was done in meson.bbclass some time ago[2] but was not done here.
[1] https://mesonbuild.com/Release-notes-for-0-54-0.html#environment-variables-with-cross-builds
[2] oe-core 20a5af2583d ("meson: use native-file instead of environment variables")
--- meta/recipes-devtools/meson/meson/meson-wrapper | 5 ----- 1 file changed, 5 deletions(-)
meta/recipes-devtools/meson/meson/meson-wrapper +0 -5
@@ -10,11 +10,6 @@ if [ -z "$SSL_CERT_DIR" ]; then export SSL_CERT_DIR="$OECORE_NATIVE_SYSROOT/etc/ssl/certs/" fi -# If these are set to a cross-compile path, meson will get confused and try to -# use them as native tools. Unset them to prevent this, as all the cross-compile -# config is already in meson.cross. -unset CC CXX CPP LD AR NM STRIP - case "$1" in setup|configure|dist|install|introspect|init|test|wrap|subprojects|rewrite|compile|devenv|env2mfile|help) MESON_CMD="$1"
Signature · 1 line
2.43.0
PATCH 3/3 meson: remove obsolete SSL_CERT_DIR assignment in the wrapper script
In reply to Ross BurtonThe wrapper script no longer needs to set SSL_CERT_DIR to what it hopes is the right path, as openssl now does this when initialising the SDK[1].
[1] oe-core d6b15d1e70b ("openssl: export necessary env vars in SDK")
--- meta/recipes-devtools/meson/meson/meson-wrapper | 4 ---- 1 file changed, 4 deletions(-)
meta/recipes-devtools/meson/meson/meson-wrapper +0 -4
@@ -6,10 +6,6 @@ if [ -z "$OECORE_NATIVE_SYSROOT" ]; then exec "meson.real" "$@" fi -if [ -z "$SSL_CERT_DIR" ]; then - export SSL_CERT_DIR="$OECORE_NATIVE_SYSROOT/etc/ssl/certs/" -fi - case "$1" in setup|configure|dist|install|introspect|init|test|wrap|subprojects|rewrite|compile|devenv|env2mfile|help) MESON_CMD="$1"
Signature · 1 line
2.43.0