diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2019-09-20 19:21:39 +0000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2019-09-26 01:30:59 -0400 |
commit | 6c48fddd30a5ced2f1b9cf6e066c6f76fe9a258a (patch) | |
tree | c16a28e537f8c95781bdf29cd4889568e6e0af3c | |
parent | 150f1857bba2df9dc4b78f08bd93603a18192b0a (diff) | |
download | meta-virtualization-6c48fddd30a5ced2f1b9cf6e066c6f76fe9a258a.tar.gz |
docker/moby: 19.03.x update
Updating the moby recipes to the match the 19.03.x updates pulled
into docker/docker-ce
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-containers/docker/docker-moby.bb | 9 | ||||
-rw-r--r-- | recipes-containers/docker/files/0001-imporve-hardcoded-CC-on-cross-compile.patch | 61 |
2 files changed, 4 insertions, 66 deletions
diff --git a/recipes-containers/docker/docker-moby.bb b/recipes-containers/docker/docker-moby.bb index 2ba1d276..0936fdfb 100644 --- a/recipes-containers/docker/docker-moby.bb +++ b/recipes-containers/docker/docker-moby.bb | |||
@@ -34,8 +34,8 @@ DESCRIPTION = "Linux container runtime \ | |||
34 | # - The common components of this recipe and docker-ce do need to be moved | 34 | # - The common components of this recipe and docker-ce do need to be moved |
35 | # to a docker.inc recipe | 35 | # to a docker.inc recipe |
36 | 36 | ||
37 | # moby commit matches the docker-ce swarmkit bump on the 18.09 branch | 37 | # moby commit matches the docker-engine bump on the 19.03 branch' |
38 | SRCREV_moby = "344b093258fcb2195fa393081e5224a6c766c798" | 38 | SRCREV_moby = "08bc39c8f9e1ccdc5ff18f6e751105722cecc4a9" |
39 | SRCREV_libnetwork = "5ac07abef4eee176423fdc1b870d435258e2d381" | 39 | SRCREV_libnetwork = "5ac07abef4eee176423fdc1b870d435258e2d381" |
40 | SRCREV_cli = "2f1931f9eb2d6bac2efd48d94739f2e9919d4d7d" | 40 | SRCREV_cli = "2f1931f9eb2d6bac2efd48d94739f2e9919d4d7d" |
41 | SRC_URI = "\ | 41 | SRC_URI = "\ |
@@ -44,7 +44,6 @@ SRC_URI = "\ | |||
44 | git://github.com/docker/cli;branch=19.03;name=cli;destsuffix=git/cli \ | 44 | git://github.com/docker/cli;branch=19.03;name=cli;destsuffix=git/cli \ |
45 | file://docker.init \ | 45 | file://docker.init \ |
46 | file://0001-libnetwork-use-GO-instead-of-go.patch \ | 46 | file://0001-libnetwork-use-GO-instead-of-go.patch \ |
47 | file://0001-imporve-hardcoded-CC-on-cross-compile.patch \ | ||
48 | " | 47 | " |
49 | 48 | ||
50 | require docker.inc | 49 | require docker.inc |
@@ -57,7 +56,7 @@ GO_IMPORT = "import" | |||
57 | 56 | ||
58 | S = "${WORKDIR}/git" | 57 | S = "${WORKDIR}/git" |
59 | 58 | ||
60 | DOCKER_VERSION = "19.03.0-rc3" | 59 | DOCKER_VERSION = "19.03.2" |
61 | PV = "${DOCKER_VERSION}+git${SRCREV_moby}" | 60 | PV = "${DOCKER_VERSION}+git${SRCREV_moby}" |
62 | 61 | ||
63 | PACKAGES =+ "${PN}-contrib" | 62 | PACKAGES =+ "${PN}-contrib" |
@@ -119,7 +118,7 @@ do_compile() { | |||
119 | do_install() { | 118 | do_install() { |
120 | mkdir -p ${D}/${bindir} | 119 | mkdir -p ${D}/${bindir} |
121 | cp ${WORKDIR}/git/cli/build/docker ${D}/${bindir}/docker | 120 | cp ${WORKDIR}/git/cli/build/docker ${D}/${bindir}/docker |
122 | cp ${S}/src/import/bundles/latest/dynbinary-daemon/dockerd ${D}/${bindir}/dockerd | 121 | cp ${S}/src/import/bundles/dynbinary-daemon/dockerd ${D}/${bindir}/dockerd |
123 | cp ${WORKDIR}/git/libnetwork/bin/docker-proxy* ${D}/${bindir}/docker-proxy | 122 | cp ${WORKDIR}/git/libnetwork/bin/docker-proxy* ${D}/${bindir}/docker-proxy |
124 | 123 | ||
125 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | 124 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
diff --git a/recipes-containers/docker/files/0001-imporve-hardcoded-CC-on-cross-compile.patch b/recipes-containers/docker/files/0001-imporve-hardcoded-CC-on-cross-compile.patch deleted file mode 100644 index 554d282c..00000000 --- a/recipes-containers/docker/files/0001-imporve-hardcoded-CC-on-cross-compile.patch +++ /dev/null | |||
@@ -1,61 +0,0 @@ | |||
1 | From 975b3a8e761b20e570120e8ca99b19da8012cae5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Wed, 17 Jul 2019 17:34:04 +0800 | ||
4 | Subject: [PATCH] imporve hardcoded CC on cross compile | ||
5 | |||
6 | Since commit applied in moby [61a3285 Support cross-compile for arm] | ||
7 | it hardcoded var-CC to support cross-compile for arm | ||
8 | |||
9 | Correct it with "${parameter:-word}" format, it is helpful for user | ||
10 | define toolchains | ||
11 | |||
12 | (Use Default Values. If parameter is unset or null, the expansion of | ||
13 | word is substituted. Otherwise, the value of parameter is substituted.) | ||
14 | |||
15 | Upstream-Status: Submitted [https://github.com/moby/moby/pull/39546] | ||
16 | |||
17 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
18 | --- | ||
19 | hack/make/.binary | 10 +++++----- | ||
20 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
21 | |||
22 | diff --git a/src/import/hack/make/.binary b/src/import/hack/make/.binary | ||
23 | index 53de674..66f4ca0 100644 | ||
24 | --- a/src/import/hack/make/.binary | ||
25 | +++ b/src/import/hack/make/.binary | ||
26 | @@ -44,27 +44,27 @@ if [ "$(go env GOOS)/$(go env GOARCH)" != "$(go env GOHOSTOS)/$(go env GOHOSTARC | ||
27 | # must be cross-compiling! | ||
28 | case "$(go env GOOS)/$(go env GOARCH)" in | ||
29 | windows/amd64) | ||
30 | - export CC=x86_64-w64-mingw32-gcc | ||
31 | + export CC="${CC:-x86_64-w64-mingw32-gcc}" | ||
32 | export CGO_ENABLED=1 | ||
33 | ;; | ||
34 | linux/arm) | ||
35 | case "${GOARM}" in | ||
36 | 5|"") | ||
37 | - export CC=arm-linux-gnueabi-gcc | ||
38 | + export CC="${CC:-arm-linux-gnueabi-gcc}" | ||
39 | export CGO_ENABLED=1 | ||
40 | ;; | ||
41 | 7) | ||
42 | - export CC=arm-linux-gnueabihf-gcc | ||
43 | + export CC="${CC:-arm-linux-gnueabihf-gcc}" | ||
44 | export CGO_ENABLED=1 | ||
45 | ;; | ||
46 | esac | ||
47 | ;; | ||
48 | linux/arm64) | ||
49 | - export CC=aarch64-linux-gnu-gcc | ||
50 | + export CC="${CC:-aarch64-linux-gnu-gcc}" | ||
51 | export CGO_ENABLED=1 | ||
52 | ;; | ||
53 | linux/amd64) | ||
54 | - export CC=x86_64-linux-gnu-gcc | ||
55 | + export CC="${CC:-x86_64-linux-gnu-gcc}" | ||
56 | export CGO_ENABLED=1 | ||
57 | ;; | ||
58 | esac | ||
59 | -- | ||
60 | 2.7.4 | ||
61 | |||