diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-07-01 00:00:41 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-07-01 12:43:16 -0400 |
| commit | 14a9247a1026842e9f813fe6f20e7c4ffd54bfb9 (patch) | |
| tree | 6a1542b28e4b0d86d8f7976391d662cbb2518859 | |
| parent | f567afae0a191bd8bc532e5779b75d5ae5a95c6d (diff) | |
| download | meta-virtualization-14a9247a1026842e9f813fe6f20e7c4ffd54bfb9.tar.gz | |
riddler: fix 32bit ARM build
With oe-core commit c23f9e80492e4b [tcmode-default: use
go-binary-native by default], we must explictly call the proper
cross go binary, versus just the go-native variant.
These builds were working by luck, since the go compiler was capable
of building the target binaries previously (in its build-from-source
creation). We fixup the calls and we no longer see fpu build issues:
fatal error: gnu/stubs-soft.h: No such file or directory
7 | # include <gnu/stubs-soft.h>
| ^~~~~~~~~~~~~~~~~~
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | recipes-containers/riddler/files/0001-build-use-to-select-cross-compiler.patch | 51 | ||||
| -rw-r--r-- | recipes-containers/riddler/riddler_git.bb | 5 |
2 files changed, 55 insertions, 1 deletions
diff --git a/recipes-containers/riddler/files/0001-build-use-to-select-cross-compiler.patch b/recipes-containers/riddler/files/0001-build-use-to-select-cross-compiler.patch new file mode 100644 index 00000000..8098562e --- /dev/null +++ b/recipes-containers/riddler/files/0001-build-use-to-select-cross-compiler.patch | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | From 8ca4391a5954db168d513ba64c3791f63b044fbf Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
| 3 | Date: Tue, 30 Jun 2020 23:58:22 -0400 | ||
| 4 | Subject: [PATCH] build: use to select cross compiler | ||
| 5 | |||
| 6 | Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
| 7 | --- | ||
| 8 | git/src/import/Makefile | 10 +++++----- | ||
| 9 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
| 10 | |||
| 11 | diff --git git/src/import/Makefile git/src/import/Makefile | ||
| 12 | index c6976af..f3c8d17 100644 | ||
| 13 | --- git/src/import/Makefile | ||
| 14 | +++ git/src/import/Makefile | ||
| 15 | @@ -10,11 +10,11 @@ all: clean build static fmt lint test vet | ||
| 16 | |||
| 17 | build: | ||
| 18 | @echo "+ $@" | ||
| 19 | - @go build -tags "$(BUILDTAGS) cgo" . | ||
| 20 | + @${GO} build -tags "$(BUILDTAGS) cgo" . | ||
| 21 | |||
| 22 | static: | ||
| 23 | @echo "+ $@" | ||
| 24 | - CGO_ENABLED=1 go build -tags "$(BUILDTAGS) cgo static_build" -ldflags "-w -extldflags -static" -o riddler . | ||
| 25 | + CGO_ENABLED=1 ${GO} build -tags "$(BUILDTAGS) cgo static_build" -ldflags "-w -extldflags -static" -o riddler . | ||
| 26 | |||
| 27 | fmt: | ||
| 28 | @echo "+ $@" | ||
| 29 | @@ -26,11 +26,11 @@ lint: | ||
| 30 | |||
| 31 | test: fmt lint vet | ||
| 32 | @echo "+ $@" | ||
| 33 | - @go test -v -tags "$(BUILDTAGS) cgo" $(shell go list ./... | grep -v vendor) | ||
| 34 | + @${GO} test -v -tags "$(BUILDTAGS) cgo" $(shell go list ./... | grep -v vendor) | ||
| 35 | |||
| 36 | vet: | ||
| 37 | @echo "+ $@" | ||
| 38 | - @go vet $(shell go list ./... | grep -v vendor) | ||
| 39 | + @${GO} vet $(shell go list ./... | grep -v vendor) | ||
| 40 | |||
| 41 | clean: | ||
| 42 | @echo "+ $@" | ||
| 43 | @@ -38,4 +38,4 @@ clean: | ||
| 44 | |||
| 45 | install: | ||
| 46 | @echo "+ $@" | ||
| 47 | - @go install -v . | ||
| 48 | + @${GO} install -v . | ||
| 49 | -- | ||
| 50 | 2.19.1 | ||
| 51 | |||
diff --git a/recipes-containers/riddler/riddler_git.bb b/recipes-containers/riddler/riddler_git.bb index 08976060..8f71649b 100644 --- a/recipes-containers/riddler/riddler_git.bb +++ b/recipes-containers/riddler/riddler_git.bb | |||
| @@ -3,7 +3,10 @@ SUMMARY = "Convert `docker inspect` to opencontainers (OCI compatible) runc spec | |||
| 3 | LICENSE = "MIT" | 3 | LICENSE = "MIT" |
| 4 | LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=20ce4c6a4f32d6ee4a68e3a7506db3f1" | 4 | LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=20ce4c6a4f32d6ee4a68e3a7506db3f1" |
| 5 | 5 | ||
| 6 | SRC_URI = "git://github.com/jfrazelle/riddler;branch=master" | 6 | SRC_URI = "git://github.com/jfrazelle/riddler;branch=master \ |
| 7 | file://0001-build-use-to-select-cross-compiler.patch \ | ||
| 8 | " | ||
| 9 | |||
| 7 | SRCREV = "23befa0b232877b5b502b828e24161d801bd67f6" | 10 | SRCREV = "23befa0b232877b5b502b828e24161d801bd67f6" |
| 8 | PV = "0.1.0+git${SRCPV}" | 11 | PV = "0.1.0+git${SRCPV}" |
| 9 | GO_IMPORT = "import" | 12 | GO_IMPORT = "import" |
