From 081808ce69e1fb02a0fa72b215dd535cc902de1c Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Sat, 9 Feb 2019 19:42:06 +0800 Subject: [PATCH] golang: Fix handling of filenames with spaces Closes #7127. Signed-off-by: Jeffery To --- lang/golang/golang-package.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lang/golang/golang-package.mk b/lang/golang/golang-package.mk index 1df4c3fec..4551d7b70 100644 --- a/lang/golang/golang-package.mk +++ b/lang/golang/golang-package.mk @@ -164,6 +164,8 @@ define GoPackage/Build/Configure files=$$$$(echo "$$$$files" | grep -v '^[[:space:]]*$$$$' | sort -u) ; \ fi ; \ \ + IFS=$$$$'\n' ; \ + \ echo "Copying files from $(PKG_BUILD_DIR) into $(GO_PKG_BUILD_DIR)/src/$(GO_PKG)" ; \ for file in $$$$files; do \ echo $$$$file ; \