Skip to content

Commit 323b247

Browse files
rmacnak-googleCommit Queue
authored andcommitted
[build] Explicitly build the Debian package using xz compression.
Newer versions dpkg-buildpackage default to zstd, which is not supported by older versions of dpkg. Bug: #26953 Change-Id: I67fdb8ab5c3b560c1687a38cb83bcd8f022e9e84 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/431321 Reviewed-by: Brian Quinlan <[email protected]> Commit-Queue: Ryan Macnak <[email protected]>
1 parent 93ddc95 commit 323b247

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/debian_package/create_debian_package.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ def Main():
5959
GenerateCopyright(join(versiondir, 'debian', 'copyright'))
6060
GenerateChangeLog(join(versiondir, 'debian', 'changelog'), version)
6161

62-
cmd = ['dpkg-buildpackage', '-B', '-a', options.arch, '-us', '-uc']
62+
# Explicitly choose xz compression because newer versions dpkg-buildpackage
63+
# (on our bots) default to zstd, which is not supported by older versions
64+
# of dpkg (on users machines).
65+
cmd = ['dpkg-buildpackage', '-B', '-a', options.arch, '-us', '-uc', '-Zxz']
6366
env = os.environ.copy()
6467
env["LIB_DIR"] = options.lib_dir
6568
process = subprocess.check_call(cmd, cwd=versiondir, env=env)

0 commit comments

Comments
 (0)