[oe-commits] [openembedded-core] 27/27: go, go-common: Add missing quotes in shell variable assignment

git at git.openembedded.org git at git.openembedded.org
Thu Jan 31 23:25:10 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 425627c046c2421135e79695bd0e74689c36118a
Author: Phil Blundell <pb at pbcl.net>
AuthorDate: Thu Jan 31 23:19:37 2019 +0000

    go, go-common: Add missing quotes in shell variable assignment
    
    Otherwise we will lose if ${BUILD_CC} happens to contain a space.
    
    Signed-off-by: Phil Blundell <pb at pbcl.net>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/go/go-common.inc | 2 +-
 meta/recipes-devtools/go/go_1.9.bb     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/go/go-common.inc b/meta/recipes-devtools/go/go-common.inc
index 11d55c4..d6dc455 100644
--- a/meta/recipes-devtools/go/go-common.inc
+++ b/meta/recipes-devtools/go/go-common.inc
@@ -29,5 +29,5 @@ export GOCACHE = "off"
 export CGO_ENABLED = "1"
 
 do_compile_prepend() {
-	BUILD_CC=${BUILD_CC}
+	BUILD_CC="${BUILD_CC}"
 }
diff --git a/meta/recipes-devtools/go/go_1.9.bb b/meta/recipes-devtools/go/go_1.9.bb
index c23ea0c..11a2b03 100644
--- a/meta/recipes-devtools/go/go_1.9.bb
+++ b/meta/recipes-devtools/go/go_1.9.bb
@@ -10,7 +10,7 @@ export GOBUILDMODE=""
 do_compile() {
 	export GOBIN="${B}/bin"
 	export TMPDIR="$GOTMPDIR"
-	export CC=$BUILD_CC
+	export CC="$BUILD_CC"
 
 	cd src
 	./make.bash

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list