Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions pkg/agent/deb/rules
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/usr/bin/make -f

# force packages to be built with xz compression, as Ubuntu 21.10 and up use
# zstd compression, which is non-standard, and breaks 'dpkg-sig --verify'
override_dh_builddeb:
dh_builddeb -- -Zxz

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could consider bumping the compression level (default is 19?), to get back some of the size, but it will increase build-times;

dh_builddeb -- -Zzstd -z22
zstd default	zstd -22
Combined package size	33.99 MB	32.65 MB
Increase over xz	+12.4%	+8.0%
Median extraction vs xz	62% faster	51% faster
Median user CPU vs xz	90% less	87% less


override_dh_auto_build:
set -x; \
install -d /usr/libexec/docker/cli-plugins && \
Expand Down
5 changes: 0 additions & 5 deletions pkg/buildx/deb/rules
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/usr/bin/make -f

# force packages to be built with xz compression, as Ubuntu 21.10 and up use
# zstd compression, which is non-standard, and breaks 'dpkg-sig --verify'
override_dh_builddeb:
dh_builddeb -- -Zxz

override_dh_auto_build:
cd $(CURDIR)/buildx && \
go build \
Expand Down
5 changes: 0 additions & 5 deletions pkg/compose/deb/rules
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/usr/bin/make -f

# force packages to be built with xz compression, as Ubuntu 21.10 and up use
# zstd compression, which is non-standard, and breaks 'dpkg-sig --verify'
override_dh_builddeb:
dh_builddeb -- -Zxz

override_dh_auto_build:
cd $(CURDIR)/compose && \
make VERSION=$(VERSION) DESTDIR=/usr/libexec/docker/cli-plugins build
Expand Down
5 changes: 0 additions & 5 deletions pkg/containerd/deb/rules
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ man: ## Create containerd man pages
install -d man
install -D -p -m 0644 /go/src/github.com/containerd/containerd/man/* man

# force packages to be built with xz compression, as Ubuntu 21.10 and up use
# zstd compression, which is non-standard, and breaks 'dpkg-sig --verify'
override_dh_builddeb:
dh_builddeb -- -Zxz

# http://manpages.debian.org/dh_dwz
override_dh_dwz:
# dh_dwz in debhelper versions less than 13 has issues with files that are missing debug symbols (once we update to debhelper-compat 13+ this can be removed)
Expand Down
5 changes: 0 additions & 5 deletions pkg/credential-helpers/deb/rules
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/usr/bin/make -f

# force packages to be built with xz compression, as Ubuntu 21.10 and up use
# zstd compression, which is non-standard, and breaks 'dpkg-sig --verify'
override_dh_builddeb:
dh_builddeb -- -Zxz

override_dh_auto_build:
CGO_ENABLED=1 make -C ./docker-credential-helpers build-secretservice build-pass VERSION=$(VERSION) REVISION=$(REVISION) DESTDIR=$$(pwd)/bin

Expand Down
5 changes: 0 additions & 5 deletions pkg/docker-cli/deb/rules
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/usr/bin/make -f

# force packages to be built with xz compression, as Ubuntu 21.10 and up use
# zstd compression, which is non-standard, and breaks 'dpkg-sig --verify'
override_dh_builddeb:
dh_builddeb -- -Zxz

override_dh_auto_build:
mkdir -p /go/src/github.com/docker && \
ln -snf $(CURDIR)/cli /go/src/github.com/docker/cli && \
Expand Down
5 changes: 0 additions & 5 deletions pkg/docker-engine/deb/rules
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/usr/bin/make -f

# force packages to be built with xz compression, as Ubuntu 21.10 and up use
# zstd compression, which is non-standard, and breaks 'dpkg-sig --verify'
override_dh_builddeb:
dh_builddeb -- -Zxz

override_dh_auto_build:
mkdir -p /go/src/github.com/docker
ln -snf $(CURDIR)/engine /go/src/github.com/docker/docker
Expand Down
5 changes: 0 additions & 5 deletions pkg/model/deb/rules
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/usr/bin/make -f

# force packages to be built with xz compression, as Ubuntu 21.10 and up use
# zstd compression, which is non-standard, and breaks 'dpkg-sig --verify'
override_dh_builddeb:
dh_builddeb -- -Zxz

override_dh_auto_build:
mkdir -p /usr/libexec/docker/cli-plugins && \
GO111MODULE=on make -C $(CURDIR)/model/cmd/cli VERSION=$(VERSION) ce-release \
Expand Down
Loading