Commit 7fee2a8
fix(linux-build): install patch utility and try GCC 11 for Electron header compat
Two fixes for the 'fatal error: source_location: No such file or directory'
failure in native-keymap compilation on focal-* containers:
1. deps.sh: install the `patch` utility. preinstall.ts calls `patch` to
apply v8-source-location.patch to downloaded Electron headers, but the
focal Docker images don't ship `patch` by default — causing execFileSync
to throw ENOENT and silently skip the patch.
2. package_bin.sh: try apt-get install g++-11 before falling back to g++-10.
GCC 11 ships with <source_location> natively (C++20), avoiding the need
for the header patch entirely on containers where GCC 11 is available.
Also set VSCODE_FORCE_INSTALL=1 to ensure preinstall.ts always runs
installHeaders() even if a stale state hash is somehow present.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 8a008d3 commit 7fee2a8
2 files changed
Lines changed: 18 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
182 | 182 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 183 | + | |
187 | 184 | | |
188 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
200 | 206 | | |
201 | 207 | | |
202 | 208 | | |
| |||
0 commit comments