All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] toolchain: handle white spaces in sysroot path
@ 2022-05-17 10:32 Lang Daniel via buildroot
  2022-07-26 21:31 ` Thomas Petazzoni via buildroot
  2022-08-29  6:22 ` Peter Korsgaard
  0 siblings, 2 replies; 6+ messages in thread
From: Lang Daniel via buildroot @ 2022-05-17 10:32 UTC (permalink / raw)
  To: buildroot

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@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
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-08-29  6:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-17 10:32 [Buildroot] [PATCH 1/1] toolchain: handle white spaces in sysroot path Lang Daniel via buildroot
2022-07-26 21:31 ` Thomas Petazzoni via buildroot
2022-07-27  6:36   ` Lang Daniel via buildroot
2022-07-27  7:13     ` Thomas Petazzoni via buildroot
2022-07-27  8:47       ` Arnout Vandecappelle
2022-08-29  6:22 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.