Skip to contentSkip to conversation

cases/buildepoxy.py: fix typo

PATCH New Chen Qi 1 participant 2 messages Apr 26, 2022

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/2 cases/buildepoxy.py: fix typo

---
 meta/lib/oeqa/sdk/cases/buildepoxy.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oeqa/sdk/cases/buildepoxy.py +1 -1
index 385f8ccca8..f69f720cd6 100644
@@ -17,7 +17,7 @@ class EpoxyTest(OESDKTestCase):
     """
     def setUp(self):
         if not (self.tc.hasHostPackage("nativesdk-meson")):
-            raise unittest.SkipTest("GalculatorTest class: SDK doesn't contain Meson")
+            raise unittest.SkipTest("EpoxyTest class: SDK doesn't contain Meson")
 
     def test_epoxy(self):
         with tempfile.TemporaryDirectory(prefix="epoxy", dir=self.tc.sdk_dir) as testdir:
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/2 go.bbclass: disable the use of the default configuration file

We need to disable the use the default configuration file. This is to ensure that user settings do not mess things up when building go recipes.

For example, if I set 'GOBIN=./relative/path' in $HOME/.config/go/env, then go-runtime fails to build with error like below:

cannot install, GOBIN must be an absolute path

According to `go help environment',
"""
Setting GOENV=off in the environment disables the use of the default configuration file.
"""

We can explicitly disable the configuration file by setting GOENV to off.

---
 meta/classes/go.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/go.bbclass +1 -0
index df8d4db26d..1a9a0bc1d4 100644
@@ -68,6 +68,7 @@ GO_INSTALL_FILTEROUT ?= "${GO_IMPORT}/vendor/"
 
 B = "${WORKDIR}/build"
 export GOPATH = "${B}"
+export GOENV = "off"
 export GOTMPDIR ?= "${WORKDIR}/build-tmp"
 GOTMPDIR[vardepvalue] = ""
 
Signature · 1 line
2.17.1