diff -Nru crowdsec-1.4.6/debian/changelog crowdsec-1.4.6/debian/changelog --- crowdsec-1.4.6/debian/changelog 2025-04-06 17:52:07.000000000 -0400 +++ crowdsec-1.4.6/debian/changelog 2025-10-27 15:01:56.000000000 -0400 @@ -1,3 +1,10 @@ +crowdsec (1.4.6-10.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix compilation with docker27, Closes: #1118455 + + -- Reinhard Tartler Mon, 27 Oct 2025 15:01:56 -0400 + crowdsec (1.4.6-10) unstable; urgency=medium * Backport support for sshd-session (Closes: #1081196), with a focus diff -Nru crowdsec-1.4.6/debian/patches/fix-compilation-with-docker27-closes-111.patch crowdsec-1.4.6/debian/patches/fix-compilation-with-docker27-closes-111.patch --- crowdsec-1.4.6/debian/patches/fix-compilation-with-docker27-closes-111.patch 1969-12-31 19:00:00.000000000 -0500 +++ crowdsec-1.4.6/debian/patches/fix-compilation-with-docker27-closes-111.patch 2025-10-27 15:01:56.000000000 -0400 @@ -0,0 +1,39 @@ +From: Reinhard Tartler +Date: Mon, 27 Oct 2025 15:01:14 -0400 +X-Dgit-Generated: 1.4.6-10.1 0458aec25af446071f185aafd60250f28c7d1da8 +Subject: Fix compilation with docker27, Closes: #1118455 + + +--- + +diff --git a/pkg/metabase/container.go b/pkg/metabase/container.go +index 2368a9b..131a5c9 100644 +--- a/pkg/metabase/container.go ++++ b/pkg/metabase/container.go +@@ -6,7 +6,7 @@ import ( + "fmt" + "runtime" + +- "github.com/docker/docker/api/types" ++ "github.com/docker/docker/api/types/image" + "github.com/docker/docker/api/types/container" + "github.com/docker/docker/api/types/mount" + "github.com/docker/docker/client" +@@ -46,7 +46,7 @@ func NewContainer(listenAddr string, listenPort string, sharedFolder string, con + func (c *Container) Create() error { + ctx := context.Background() + log.Printf("Pulling docker image %s", c.Image) +- reader, err := c.CLI.ImagePull(ctx, c.Image, types.ImagePullOptions{}) ++ reader, err := c.CLI.ImagePull(ctx, c.Image, image.PullOptions{}) + if err != nil { + return fmt.Errorf("failed to pull docker image : %s", err) + } +@@ -168,7 +168,7 @@ func RemoveImageContainer() error { + } + ctx := context.Background() + log.Printf("Removing docker image '%s'", metabaseImage) +- if _, err := cli.ImageRemove(ctx, metabaseImage, types.ImageRemoveOptions{}); err != nil { ++ if _, err := cli.ImageRemove(ctx, metabaseImage, image.RemoveOptions{}); err != nil { + return fmt.Errorf("failed to remove image container %s : %s", metabaseImage, err) + } + return nil diff -Nru crowdsec-1.4.6/debian/patches/series crowdsec-1.4.6/debian/patches/series --- crowdsec-1.4.6/debian/patches/series 2025-04-06 17:52:07.000000000 -0400 +++ crowdsec-1.4.6/debian/patches/series 2025-10-27 15:01:56.000000000 -0400 @@ -15,3 +15,4 @@ 0019-disable-unreliable-test-TestStreaming.patch 0020-add-patch-to-build-with-docker-26.patch 0021-backport-sshd-session-support.patch +fix-compilation-with-docker27-closes-111.patch