Skip to content

Commit d1ef8f7

Browse files
colliviermssonicbld
authored andcommitted
[build]: Force xz as compression type when building sonic-build-hooks debs (sonic-net#12823)
Ubuntu 22.04 leverages Zstandard compression to dpkg by default. Debian doesn't support it yet https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892664 Fix sonic-net#12822 Signed-off-by: Cédric Ollivier <[email protected]>
1 parent c4c7f49 commit d1ef8f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sonic-build-hooks/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ DPKGTOOL = $(shell which dpkg-deb)
2121
ifeq ($(shell which dpkg-deb),)
2222
BUILD_COMMAND=docker run --user $(shell id -u):$(shell id -g) --rm -v $(shell pwd):/build debian:buster bash -c 'cd /build; dpkg-deb --build $(TMP_DIR)/$(SONIC_BUILD_HOOKS) $(SONIC_BUILD_HOOKS_TARGET)'
2323
else
24-
BUILD_COMMAND=dpkg-deb --build $(TMP_DIR)/$(SONIC_BUILD_HOOKS) $(SONIC_BUILD_HOOKS_TARGET)
24+
BUILD_COMMAND=dpkg-deb -Zxz --build $(TMP_DIR)/$(SONIC_BUILD_HOOKS) $(SONIC_BUILD_HOOKS_TARGET)
2525
endif
2626

2727
DEPENDS := $(shell find scripts hooks debian -type f)

0 commit comments

Comments
 (0)