dockerd: Update to 23.0.1
authorGerard Ryan <G.M0N3Y.2503@gmail.com>
Thu, 2 Mar 2023 12:18:12 +0000 (22:18 +1000)
committerTianling Shen <cnsztl@gmail.com>
Tue, 14 Mar 2023 03:08:59 +0000 (11:08 +0800)
Signed-off-by: Gerard Ryan <G.M0N3Y.2503@gmail.com>
utils/dockerd/Makefile
utils/dockerd/patches/001-libdevmapper_name_fix.patch

index ba3f30143df882d5322f7bd21efe25d29390b17b..d7e82ffa107d049a12cb3711abbce80ad8547955 100644 (file)
@@ -1,7 +1,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dockerd
-PKG_VERSION:=20.10.22
+PKG_VERSION:=23.0.1
 PKG_RELEASE:=1
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
@@ -10,8 +10,8 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_GIT_URL:=github.com/moby/moby
 PKG_GIT_REF:=v$(PKG_VERSION)
 PKG_SOURCE_URL:=https://codeload.$(PKG_GIT_URL)/tar.gz/$(PKG_GIT_REF)?
-PKG_HASH:=ee0e2168e27ec87f1b0650e86af5d3e167a07fd2ff8c1ce3bb588f0b4f9a4658
-PKG_GIT_SHORT_COMMIT:=42c8b31 # SHA1 used within the docker executables
+PKG_HASH:=c8e6c0ac5f0c772023e3430f80190e0f86644b6d94cac63118b03561385f7b56
+PKG_GIT_SHORT_COMMIT:=bc3805a # SHA1 used within the docker executables
 
 PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
 
@@ -45,7 +45,6 @@ define Package/dockerd
     +kmod-ipt-physdev \
     +kmod-nf-ipvs \
     +kmod-veth \
-    +libnetwork \
     +tini \
     +uci-firewall
   USERID:=docker:docker
@@ -96,7 +95,6 @@ define Build/Prepare
 
        # Verify dependencies are the vendored version
        $(call EnsureVendoredVersion,../containerd/Makefile,containerd.installer)
-       $(call EnsureVendoredCommit,../libnetwork/Makefile,proxy.installer)
        $(call EnsureVendoredVersion,../runc/Makefile,runc.installer)
        $(call EnsureVendoredVersion,../tini/Makefile,tini.installer)
 
@@ -142,6 +140,7 @@ endef
 define Package/dockerd/install
        $(INSTALL_DIR) $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/bundles/binary-daemon/dockerd $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/bundles/binary-daemon/docker-proxy $(1)/usr/bin/
 
        $(INSTALL_DIR) $(1)/opt/docker/
 
index b9b0a6b8c96ecf87e7f744de787776712be67bcd..ec3fc649f969dbd1f34b0896562711445f469fea 100644 (file)
@@ -1,11 +1,11 @@
 --- a/hack/make.sh
 +++ b/hack/make.sh
-@@ -95,7 +95,7 @@ fi
+@@ -100,7 +100,7 @@ fi
+ # functionality. We favour libdm_dlsym_deferred_remove over
+ # libdm_no_deferred_remove in dynamic cases because the binary could be shipped
  # with a newer libdevmapper than the one it was built with.
- if
-       command -v gcc &> /dev/null \
--              && ! (echo -e '#include <libdevmapper.h>\nint main() { dm_task_deferred_remove(NULL); }' | gcc -xc - -o /dev/null $(pkg-config --libs devmapper) &> /dev/null) \
-+              && ! (echo -e '#include <libdevmapper.h>\nint main() { dm_task_deferred_remove(NULL); }' | gcc -xc - -o /dev/null $(pkg-config --libs libdevmapper) &> /dev/null) \
-               ;
- then
+-if command -v gcc &> /dev/null && ! (echo -e '#include <libdevmapper.h>\nint main() { dm_task_deferred_remove(NULL); }' | gcc -xc - -o /dev/null $(${PKG_CONFIG} --libs devmapper 2> /dev/null) &> /dev/null); then
++if command -v gcc &> /dev/null && ! (echo -e '#include <libdevmapper.h>\nint main() { dm_task_deferred_remove(NULL); }' | gcc -xc - -o /dev/null $(${PKG_CONFIG} --libs libdevmapper 2> /dev/null) &> /dev/null); then
        add_buildtag libdm dlsym_deferred_remove
+ fi