summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-containers/docker/docker-moby_git.bb6
-rw-r--r--recipes-containers/docker/docker.inc12
-rw-r--r--recipes-containers/docker/files/0001-check-config-make-CONFIG_MEMCG_SWAP-conditional.patch14
-rw-r--r--recipes-containers/docker/files/0001-dynbinary-use-go-cross-compiler.patch8
4 files changed, 23 insertions, 17 deletions
diff --git a/recipes-containers/docker/docker-moby_git.bb b/recipes-containers/docker/docker-moby_git.bb
index 47ded68c..0078ab6d 100644
--- a/recipes-containers/docker/docker-moby_git.bb
+++ b/recipes-containers/docker/docker-moby_git.bb
@@ -44,8 +44,8 @@ DESCRIPTION = "Linux container runtime \
44# so we get that tag, and make it our SRCREVS: 44# so we get that tag, and make it our SRCREVS:
45# 45#
46 46
47SRCREV_moby = "80947b5724c59fb08eb5489fca622411235ecbb4" 47SRCREV_moby = "d1a720cb15d99821e7b96197b0f01ffea33b7356"
48SRCREV_cli = "b0d1d9471156ec95aad5c929513718ad89b0309b" 48SRCREV_cli = "171a9b70b2736c719019393259ecebdcac47bead"
49SRCREV_FORMAT = "moby" 49SRCREV_FORMAT = "moby"
50SRC_URI = "\ 50SRC_URI = "\
51 git://github.com/moby/moby.git;nobranch=1;name=moby;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX} \ 51 git://github.com/moby/moby.git;nobranch=1;name=moby;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX} \
@@ -64,7 +64,7 @@ require docker.inc
64LICENSE = "Apache-2.0" 64LICENSE = "Apache-2.0"
65LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=4859e97a9c7780e77972d989f0823f28" 65LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=4859e97a9c7780e77972d989f0823f28"
66 66
67DOCKER_VERSION = "28.3.3" 67DOCKER_VERSION = "29.0.0-rc.1"
68PV = "${DOCKER_VERSION}+git${SRCREV_moby}" 68PV = "${DOCKER_VERSION}+git${SRCREV_moby}"
69 69
70CVE_PRODUCT = "docker mobyproject:moby" 70CVE_PRODUCT = "docker mobyproject:moby"
diff --git a/recipes-containers/docker/docker.inc b/recipes-containers/docker/docker.inc
index c464bc3c..99535a77 100644
--- a/recipes-containers/docker/docker.inc
+++ b/recipes-containers/docker/docker.inc
@@ -3,6 +3,8 @@ DEPENDS = " \
3 sqlite3 \ 3 sqlite3 \
4 libtool-native \ 4 libtool-native \
5 libtool \ 5 libtool \
6 nftables \
7 libnftnl \
6 " 8 "
7 9
8DEPENDS:append:class-target = " lvm2" 10DEPENDS:append:class-target = " lvm2"
@@ -57,7 +59,7 @@ do_configure[noexec] = "1"
57# Export for possible use in Makefiles, default value comes from go.bbclass 59# Export for possible use in Makefiles, default value comes from go.bbclass
58export GO_LINKSHARED 60export GO_LINKSHARED
59 61
60DOCKER_PKG = "github.com/docker/docker" 62DOCKER_PKG = "github.com/moby/moby/v2"
61# in order to exclude devicemapper and btrfs - https://github.com/docker/docker/issues/14056 63# in order to exclude devicemapper and btrfs - https://github.com/docker/docker/issues/14056
62BUILD_TAGS ?= "exclude_graphdriver_btrfs exclude_graphdriver_devicemapper" 64BUILD_TAGS ?= "exclude_graphdriver_btrfs exclude_graphdriver_devicemapper"
63 65
@@ -68,8 +70,8 @@ do_compile() {
68 cd ${S}/src/import 70 cd ${S}/src/import
69 rm -rf .gopath 71 rm -rf .gopath
70 mkdir -p .gopath/src/"$(dirname "${DOCKER_PKG}")" 72 mkdir -p .gopath/src/"$(dirname "${DOCKER_PKG}")"
71 ln -sf ../../../.. .gopath/src/"${DOCKER_PKG}" 73 ln -sf ../../../../.. .gopath/src/"${DOCKER_PKG}"
72 74
73 mkdir -p .gopath/src/github.com/docker 75 mkdir -p .gopath/src/github.com/docker
74 ln -sf ${S}/cli .gopath/src/github.com/docker/cli 76 ln -sf ${S}/cli .gopath/src/github.com/docker/cli
75 77
@@ -86,6 +88,7 @@ do_compile() {
86 export GO111MODULE=off 88 export GO111MODULE=off
87 89
88 export DISABLE_WARN_OUTSIDE_CONTAINER=1 90 export DISABLE_WARN_OUTSIDE_CONTAINER=1
91 export BUILDFLAGS="-trimpath"
89 92
90 cd ${S}/src/import/ 93 cd ${S}/src/import/
91 94
@@ -95,10 +98,11 @@ do_compile() {
95 VERSION="${DOCKER_VERSION}" DOCKER_GITCOMMIT="${DOCKER_COMMIT}" ./hack/make.sh dynbinary 98 VERSION="${DOCKER_VERSION}" DOCKER_GITCOMMIT="${DOCKER_COMMIT}" ./hack/make.sh dynbinary
96 99
97 # build the cli 100 # build the cli
98 cd ${S}/src/import/.gopath/src/github.com/docker/cli 101 cd ${S}/cli
99 export CFLAGS="" 102 export CFLAGS=""
100 export LDFLAGS="" 103 export LDFLAGS=""
101 export DOCKER_VERSION=${DOCKER_VERSION} 104 export DOCKER_VERSION=${DOCKER_VERSION}
105 export BUILDFLAGS="-trimpath"
102 VERSION="${DOCKER_VERSION}" DOCKER_GITCOMMIT="${DOCKER_COMMIT}" make dynbinary 106 VERSION="${DOCKER_VERSION}" DOCKER_GITCOMMIT="${DOCKER_COMMIT}" make dynbinary
103} 107}
104 108
diff --git a/recipes-containers/docker/files/0001-check-config-make-CONFIG_MEMCG_SWAP-conditional.patch b/recipes-containers/docker/files/0001-check-config-make-CONFIG_MEMCG_SWAP-conditional.patch
index 95ba2225..b7fe5775 100644
--- a/recipes-containers/docker/files/0001-check-config-make-CONFIG_MEMCG_SWAP-conditional.patch
+++ b/recipes-containers/docker/files/0001-check-config-make-CONFIG_MEMCG_SWAP-conditional.patch
@@ -40,14 +40,16 @@ Index: import/contrib/check-config.sh
40=================================================================== 40===================================================================
41--- import.orig/contrib/check-config.sh 41--- import.orig/contrib/check-config.sh
42+++ import/contrib/check-config.sh 42+++ import/contrib/check-config.sh
43@@ -246,7 +246,9 @@ echo 'Optional Features:' 43@@ -253,9 +253,11 @@ echo 'Optional Features:'
44 check_flags CGROUP_PIDS 44 check_flags SECCOMP_FILTER
45 } 45 }
46 { 46 {
47- check_flags MEMCG_SWAP 47- check_flags CGROUP_PIDS
48+ if [ "$kernelMajor" -lt 6 ] || [ "$kernelMajor" -eq 6 -a "$kernelMinor" -le 1 ]; then 48+ if [ "$kernelMajor" -lt 6 ] || [ "$kernelMajor" -eq 6 -a "$kernelMinor" -le 1 ]; then
49+ check_flags MEMCG_SWAP 49+ check_flags CGROUP_PIDS
50 }
51 {
50+ fi 52+ fi
51 # Kernel v5.8+ removes MEMCG_SWAP_ENABLED. 53 # Kernel v5.8+ removes MEMCG_SWAP_ENABLED and deprecates MEMCG_SWAP.
52 if [ "$kernelMajor" -lt 5 ] || [ "$kernelMajor" -eq 5 -a "$kernelMinor" -le 8 ]; then 54 if [ "$kernelMajor" -lt 5 ] || [ "$kernelMajor" -eq 5 -a "$kernelMinor" -lt 8 ]; then
53 CODE=${EXITCODE} 55 CODE=${EXITCODE}
diff --git a/recipes-containers/docker/files/0001-dynbinary-use-go-cross-compiler.patch b/recipes-containers/docker/files/0001-dynbinary-use-go-cross-compiler.patch
index e3f20a3a..948f5ce8 100644
--- a/recipes-containers/docker/files/0001-dynbinary-use-go-cross-compiler.patch
+++ b/recipes-containers/docker/files/0001-dynbinary-use-go-cross-compiler.patch
@@ -102,8 +102,8 @@ Index: import/hack/make/.binary
102 if [ -n "$DOCKER_DEBUG" ]; then 102 if [ -n "$DOCKER_DEBUG" ]; then
103 set -x 103 set -x
104 fi 104 fi
105- ./hack/with-go-mod.sh go build -mod=vendor -modfile=vendor.mod -o "$DEST/$BINARY_FULLNAME" "${BUILDFLAGS[@]}" -ldflags "$LDFLAGS $LDFLAGS_STATIC $DOCKER_LDFLAGS" -gcflags="${GCFLAGS}" "$GO_PACKAGE" 105- go build -o "$DEST/$BINARY_FULLNAME" "${BUILDFLAGS[@]}" -ldflags "$LDFLAGS $LDFLAGS_STATIC $DOCKER_LDFLAGS" -gcflags="${GCFLAGS}" "$GO_PACKAGE"
106+ ./hack/with-go-mod.sh ${GO} build -trimpath -mod=vendor -modfile=vendor.mod -o "$DEST/$BINARY_FULLNAME" "${BUILDFLAGS[@]}" -ldflags "$LDFLAGS $LDFLAGS_STATIC $DOCKER_LDFLAGS" -gcflags="${GCFLAGS}" "$GO_PACKAGE" 106+ $GO build -o "$DEST/$BINARY_FULLNAME" "${BUILDFLAGS[@]}" -ldflags "$LDFLAGS $LDFLAGS_STATIC $DOCKER_LDFLAGS" -gcflags="${GCFLAGS}" "$GO_PACKAGE"
107 )
108 107
109 echo "Created binary: $DEST/$BINARY_FULLNAME" 108 # Verify that the built binary contains windows resources
109 if [ "$(go env GOOS)" = "windows" ]; then