diff options
Diffstat (limited to 'recipes-containers/runc')
6 files changed, 24 insertions, 23 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{ |
diff --git a/recipes-containers/runc/runc-docker_git.bb b/recipes-containers/runc/runc-docker_git.bb index f412c84b..97353254 100644 --- a/recipes-containers/runc/runc-docker_git.bb +++ b/recipes-containers/runc/runc-docker_git.bb | |||
@@ -10,6 +10,8 @@ SRC_URI = "git://github.com/docker/runc.git;nobranch=1;name=runc-docker \ | |||
10 | file://0001-runc-Add-console-socket-dev-null.patch \ | 10 | file://0001-runc-Add-console-socket-dev-null.patch \ |
11 | " | 11 | " |
12 | 12 | ||
13 | GO_IMPORT = "import" | ||
14 | |||
13 | RUNC_VERSION = "1.0.0-rc3" | 15 | RUNC_VERSION = "1.0.0-rc3" |
14 | PROVIDES += "virtual/runc" | 16 | PROVIDES += "virtual/runc" |
15 | RPROVIDES_${PN} = "virtual/runc" | 17 | RPROVIDES_${PN} = "virtual/runc" |
diff --git a/recipes-containers/runc/runc.inc b/recipes-containers/runc/runc.inc index dbc83c27..83d5f863 100644 --- a/recipes-containers/runc/runc.inc +++ b/recipes-containers/runc/runc.inc | |||
@@ -4,7 +4,7 @@ DESCRIPTION = "runc is a CLI tool for spawning and running containers according | |||
4 | 4 | ||
5 | # Apache-2.0 for containerd | 5 | # Apache-2.0 for containerd |
6 | LICENSE = "Apache-2.0" | 6 | LICENSE = "Apache-2.0" |
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=435b266b3899aa8a959f17d41c56def8" | 7 | LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=435b266b3899aa8a959f17d41c56def8" |
8 | 8 | ||
9 | S = "${WORKDIR}/git" | 9 | S = "${WORKDIR}/git" |
10 | 10 | ||
@@ -26,20 +26,19 @@ do_compile() { | |||
26 | # Set GOPATH. See 'PACKAGERS.md'. Don't rely on | 26 | # Set GOPATH. See 'PACKAGERS.md'. Don't rely on |
27 | # docker to download its dependencies but rather | 27 | # docker to download its dependencies but rather |
28 | # use dependencies packaged independently. | 28 | # use dependencies packaged independently. |
29 | cd ${S} | 29 | cd ${S}/src/import |
30 | rm -rf .gopath | 30 | rm -rf .gopath |
31 | dname=`dirname "${LIBCONTAINER_PACKAGE}"` | 31 | dname=`dirname "${LIBCONTAINER_PACKAGE}"` |
32 | bname=`basename "${LIBCONTAINER_PACKAGE}"` | 32 | bname=`basename "${LIBCONTAINER_PACKAGE}"` |
33 | mkdir -p .gopath/src/${dname} | 33 | mkdir -p .gopath/src/${dname} |
34 | 34 | ||
35 | (cd .gopath/src/${dname}; ln -sf ../../../../../${bname} ${bname}) | 35 | (cd .gopath/src/${dname}; ln -sf ../../../../../${bname} ${bname}) |
36 | export GOPATH="${S}/.gopath:${S}/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go" | 36 | export GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go" |
37 | export GOROOT="${STAGING_DIR_NATIVE}/${nonarch_libdir}/${HOST_SYS}/go" | 37 | export GOROOT="${STAGING_DIR_NATIVE}/${nonarch_libdir}/${HOST_SYS}/go" |
38 | cd - | ||
39 | 38 | ||
40 | # Fix up symlink for go-cross compiler | 39 | # Fix up symlink for go-cross compiler |
41 | rm -f ${S}/vendor/src | 40 | rm -f ${S}/src/import/vendor/src |
42 | ln -sf ./ ${S}/vendor/src | 41 | ln -sf ./ ${S}/src/import/vendor/src |
43 | 42 | ||
44 | # Pass the needed cflags/ldflags so that cgo | 43 | # Pass the needed cflags/ldflags so that cgo |
45 | # can find the needed headers files and libraries | 44 | # can find the needed headers files and libraries |
@@ -55,7 +54,7 @@ do_compile() { | |||
55 | do_install() { | 54 | do_install() { |
56 | mkdir -p ${D}/${bindir} | 55 | mkdir -p ${D}/${bindir} |
57 | 56 | ||
58 | cp ${S}/runc ${D}/${bindir}/runc | 57 | cp ${S}/src/import/runc ${D}/${bindir}/runc |
59 | ln -sf runc ${D}/${bindir}/docker-runc | 58 | ln -sf runc ${D}/${bindir}/docker-runc |
60 | } | 59 | } |
61 | 60 | ||