[Buildroot] [PATCH 1/1] toolchain: handle white spaces in sysroot path
Lang Daniel
d.lang at abatec.at
Tue May 17 10:32:12 UTC 2022
When changing permissions on all directories in the staging directory,
after copying sysroot, paths that contain spaces break the call to chmod.
With -print0 for find and -0 for xargs white spaces are correctly interpreted.
Signed-off-by: Daniel Lang <d.lang at abatec.at>
---
Backport to: 2022.02.x
---
toolchain/helpers.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/toolchain/helpers.mk b/toolchain/helpers.mk
index ef8e9a5f64..eec46d44c6 100644
--- a/toolchain/helpers.mk
+++ b/toolchain/helpers.mk
@@ -150,7 +150,7 @@ copy_toolchain_sysroot = \
if test -n "$${SUPPORT_LIB_DIR}" ; then \
cp -a $${SUPPORT_LIB_DIR}/* $(STAGING_DIR)/lib/ ; \
fi ; \
- find $(STAGING_DIR) -type d | xargs chmod 755
+ find $(STAGING_DIR) -type d -print0 | xargs -0 chmod 755
#
# Check the specified kernel headers version actually matches the
--
2.25.1
More information about the buildroot
mailing list