mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 16:18:58 +01:00
fix: remove debian dependency on libgcc-s1 (#158883)
This commit is contained in:
@@ -70,6 +70,15 @@ function calculatePackageDeps(binaryPath: string, arch: DebianArchString, sysroo
|
||||
depsStr = line.substring(shlibsDependsPrefix.length);
|
||||
}
|
||||
}
|
||||
const requires = new Set(depsStr.split(', ').sort());
|
||||
// Refs https://chromium-review.googlesource.com/c/chromium/src/+/3572926
|
||||
// Chromium depends on libgcc_s, is from the package libgcc1. However, in
|
||||
// Bullseye, the package was renamed to libgcc-s1. To avoid adding a dep
|
||||
// on the newer package, this hack skips the dep. This is safe because
|
||||
// libgcc-s1 is a dependency of libc6. This hack can be removed once
|
||||
// support for Debian Buster and Ubuntu Bionic are dropped.
|
||||
const filteredDeps = depsStr.split(', ').filter(dependency => {
|
||||
return !dependency.startsWith('libgcc-s1');
|
||||
}).sort();
|
||||
const requires = new Set(filteredDeps);
|
||||
return requires;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user