fix: remove debian dependency on libgcc-s1 (#158883)

This commit is contained in:
Robo
2022-08-24 02:06:12 +09:00
committed by GitHub
parent 0380d81838
commit 3933a69210
4 changed files with 20 additions and 8 deletions

View File

@@ -65,6 +65,15 @@ function calculatePackageDeps(binaryPath, arch, sysroot) {
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;
}