diff options
| author | Jason Wessel <jason.wessel@windriver.com> | 2017-09-13 12:39:46 -0700 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2017-09-14 09:49:00 -0400 |
| commit | 01a8d4537012ad93dc8510e9b762acdc8c4536c7 (patch) | |
| tree | 8b22ba0333f7a8c83193bee31b33a3b307f1164a /recipes-containers/runc/runc-docker | |
| parent | 718592922bd64da4d609c96e831f6aba05e44a8d (diff) | |
| download | meta-virtualization-01a8d4537012ad93dc8510e9b762acdc8c4536c7.tar.gz | |
nets, docker, runc, oci-*tools: go.bbclass compile fixes
Recently in the oe-core the go.bbclass changed and requires the
defition of the GO_IMPORT variable. This was intended to simplify how
the compilation works with go packages and it is still a work in
progress.
This patch set makes the recipes compatible to generate the same end
result as before using the new go.bbclass from oe-core.
Any patches that were included in the recipes had to have the paths
adjusted because the new go.bbclass manipulates the notion of S to be
S + "src" + "$GO_IMPORT" internally for the purpose of unpack, patch
and compile.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-containers/runc/runc-docker')
4 files changed, 16 insertions, 16 deletions
diff --git a/recipes-containers/runc/runc-docker/0001-Update-to-runtime-spec-198f23f827eea397d4331d7eb048d.patch b/recipes-containers/runc/runc-docker/0001-Update-to-runtime-spec-198f23f827eea397d4331d7eb048d.patch index bc1e9a23..bcc76fc4 100644 --- a/recipes-containers/runc/runc-docker/0001-Update-to-runtime-spec-198f23f827eea397d4331d7eb048d.patch +++ b/recipes-containers/runc/runc-docker/0001-Update-to-runtime-spec-198f23f827eea397d4331d7eb048d.patch | |||
| @@ -14,8 +14,8 @@ Signed-off-by: Justin Cormack <justin.cormack@docker.com> | |||
| 14 | 14 | ||
| 15 | diff --git a/vendor.conf b/vendor.conf | 15 | diff --git a/vendor.conf b/vendor.conf |
| 16 | index e23e7ea7..09a8a924 100644 | 16 | index e23e7ea7..09a8a924 100644 |
| 17 | --- a/vendor.conf | 17 | --- a/src/import/vendor.conf |
| 18 | +++ b/vendor.conf | 18 | +++ b/src/import/vendor.conf |
| 19 | @@ -1,7 +1,7 @@ | 19 | @@ -1,7 +1,7 @@ |
| 20 | # OCI runtime-spec. When updating this, make sure you use a version tag rather | 20 | # OCI runtime-spec. When updating this, make sure you use a version tag rather |
| 21 | # than a commit ID so it's much more obvious what version of the spec we are | 21 | # than a commit ID so it's much more obvious what version of the spec we are |
| @@ -27,8 +27,8 @@ index e23e7ea7..09a8a924 100644 | |||
| 27 | github.com/opencontainers/selinux v1.0.0-rc1 | 27 | github.com/opencontainers/selinux v1.0.0-rc1 |
| 28 | diff --git a/vendor/github.com/opencontainers/runtime-spec/specs-go/config.go b/vendor/github.com/opencontainers/runtime-spec/specs-go/config.go | 28 | diff --git a/vendor/github.com/opencontainers/runtime-spec/specs-go/config.go b/vendor/github.com/opencontainers/runtime-spec/specs-go/config.go |
| 29 | index 8bf8d924..68ab112e 100644 | 29 | index 8bf8d924..68ab112e 100644 |
| 30 | --- a/vendor/github.com/opencontainers/runtime-spec/specs-go/config.go | 30 | --- a/src/import/vendor/github.com/opencontainers/runtime-spec/specs-go/config.go |
| 31 | +++ b/vendor/github.com/opencontainers/runtime-spec/specs-go/config.go | 31 | +++ b/src/import/vendor/github.com/opencontainers/runtime-spec/specs-go/config.go |
| 32 | @@ -6,8 +6,6 @@ import "os" | 32 | @@ -6,8 +6,6 @@ import "os" |
| 33 | type Spec struct { | 33 | type Spec struct { |
| 34 | // Version of the Open Container Runtime Specification with which the bundle complies. | 34 | // Version of the Open Container Runtime Specification with which the bundle complies. |
diff --git a/recipes-containers/runc/runc-docker/0001-runc-Add-console-socket-dev-null.patch b/recipes-containers/runc/runc-docker/0001-runc-Add-console-socket-dev-null.patch index f49adfbf..48c1250d 100644 --- a/recipes-containers/runc/runc-docker/0001-runc-Add-console-socket-dev-null.patch +++ b/recipes-containers/runc/runc-docker/0001-runc-Add-console-socket-dev-null.patch | |||
| @@ -14,8 +14,8 @@ Signed-off-by: Jason Wessel <jason.wessel@windriver.com> | |||
| 14 | 14 | ||
| 15 | diff --git a/utils_linux.go b/utils_linux.go | 15 | diff --git a/utils_linux.go b/utils_linux.go |
| 16 | index 8085f7fe..e6d31b35 100644 | 16 | index 8085f7fe..e6d31b35 100644 |
| 17 | --- a/utils_linux.go | 17 | --- a/src/import/utils_linux.go |
| 18 | +++ b/utils_linux.go | 18 | +++ b/src/import/utils_linux.go |
| 19 | @@ -227,6 +227,11 @@ type runner struct { | 19 | @@ -227,6 +227,11 @@ type runner struct { |
| 20 | } | 20 | } |
| 21 | 21 | ||
diff --git a/recipes-containers/runc/runc-docker/0002-Remove-Platform-as-no-longer-in-OCI-spec.patch b/recipes-containers/runc/runc-docker/0002-Remove-Platform-as-no-longer-in-OCI-spec.patch index 6ec286a8..7970dec3 100644 --- a/recipes-containers/runc/runc-docker/0002-Remove-Platform-as-no-longer-in-OCI-spec.patch +++ b/recipes-containers/runc/runc-docker/0002-Remove-Platform-as-no-longer-in-OCI-spec.patch | |||
| @@ -13,8 +13,8 @@ Signed-off-by: Justin Cormack <justin.cormack@docker.com> | |||
| 13 | 13 | ||
| 14 | diff --git a/libcontainer/specconv/example.go b/libcontainer/specconv/example.go | 14 | diff --git a/libcontainer/specconv/example.go b/libcontainer/specconv/example.go |
| 15 | index 33134116..d6621194 100644 | 15 | index 33134116..d6621194 100644 |
| 16 | --- a/libcontainer/specconv/example.go | 16 | --- a/src/import/libcontainer/specconv/example.go |
| 17 | +++ b/libcontainer/specconv/example.go | 17 | +++ b/src/import/libcontainer/specconv/example.go |
| 18 | @@ -2,7 +2,6 @@ package specconv | 18 | @@ -2,7 +2,6 @@ package specconv |
| 19 | 19 | ||
| 20 | import ( | 20 | import ( |
| @@ -36,8 +36,8 @@ index 33134116..d6621194 100644 | |||
| 36 | Readonly: true, | 36 | Readonly: true, |
| 37 | diff --git a/spec.go b/spec.go | 37 | diff --git a/spec.go b/spec.go |
| 38 | index 92d38f57..876937d2 100644 | 38 | index 92d38f57..876937d2 100644 |
| 39 | --- a/spec.go | 39 | --- a/src/import/spec.go |
| 40 | +++ b/spec.go | 40 | +++ b/src/import/spec.go |
| 41 | @@ -7,7 +7,6 @@ import ( | 41 | @@ -7,7 +7,6 @@ import ( |
| 42 | "fmt" | 42 | "fmt" |
| 43 | "io/ioutil" | 43 | "io/ioutil" |
diff --git a/recipes-containers/runc/runc-docker/0003-Update-memory-specs-to-use-int64-not-uint64.patch b/recipes-containers/runc/runc-docker/0003-Update-memory-specs-to-use-int64-not-uint64.patch index 9cb34922..50a9b7fc 100644 --- a/recipes-containers/runc/runc-docker/0003-Update-memory-specs-to-use-int64-not-uint64.patch +++ b/recipes-containers/runc/runc-docker/0003-Update-memory-specs-to-use-int64-not-uint64.patch | |||
| @@ -20,8 +20,8 @@ Signed-off-by: Justin Cormack <justin.cormack@docker.com> | |||
| 20 | 20 | ||
| 21 | diff --git a/libcontainer/cgroups/fs/memory.go b/libcontainer/cgroups/fs/memory.go | 21 | diff --git a/libcontainer/cgroups/fs/memory.go b/libcontainer/cgroups/fs/memory.go |
| 22 | index da2cc9f8..b739c631 100644 | 22 | index da2cc9f8..b739c631 100644 |
| 23 | --- a/libcontainer/cgroups/fs/memory.go | 23 | --- a/src/import/libcontainer/cgroups/fs/memory.go |
| 24 | +++ b/libcontainer/cgroups/fs/memory.go | 24 | +++ b/src/import/libcontainer/cgroups/fs/memory.go |
| 25 | @@ -73,14 +73,14 @@ func EnableKernelMemoryAccounting(path string) error { | 25 | @@ -73,14 +73,14 @@ func EnableKernelMemoryAccounting(path string) error { |
| 26 | // until a limit is set on the cgroup and limit cannot be set once the | 26 | // until a limit is set on the cgroup and limit cannot be set once the |
| 27 | // cgroup has children, or if there are already tasks in the cgroup. | 27 | // cgroup has children, or if there are already tasks in the cgroup. |
| @@ -123,8 +123,8 @@ index da2cc9f8..b739c631 100644 | |||
| 123 | } | 123 | } |
| 124 | diff --git a/libcontainer/configs/cgroup_linux.go b/libcontainer/configs/cgroup_linux.go | 124 | diff --git a/libcontainer/configs/cgroup_linux.go b/libcontainer/configs/cgroup_linux.go |
| 125 | index 3e0509de..e15a662f 100644 | 125 | index 3e0509de..e15a662f 100644 |
| 126 | --- a/libcontainer/configs/cgroup_linux.go | 126 | --- a/src/import/libcontainer/configs/cgroup_linux.go |
| 127 | +++ b/libcontainer/configs/cgroup_linux.go | 127 | +++ b/src/import/libcontainer/configs/cgroup_linux.go |
| 128 | @@ -43,19 +43,19 @@ type Resources struct { | 128 | @@ -43,19 +43,19 @@ type Resources struct { |
| 129 | Devices []*Device `json:"devices"` | 129 | Devices []*Device `json:"devices"` |
| 130 | 130 | ||
| @@ -152,8 +152,8 @@ index 3e0509de..e15a662f 100644 | |||
| 152 | CpuShares uint64 `json:"cpu_shares"` | 152 | CpuShares uint64 `json:"cpu_shares"` |
| 153 | diff --git a/update.go b/update.go | 153 | diff --git a/update.go b/update.go |
| 154 | index 0ea90d60..133be999 100644 | 154 | index 0ea90d60..133be999 100644 |
| 155 | --- a/update.go | 155 | --- a/src/import/update.go |
| 156 | +++ b/update.go | 156 | +++ b/src/import/update.go |
| 157 | @@ -124,11 +124,11 @@ other options are ignored. | 157 | @@ -124,11 +124,11 @@ other options are ignored. |
| 158 | 158 | ||
| 159 | r := specs.LinuxResources{ | 159 | r := specs.LinuxResources{ |
