ppc64le-support.patch 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. diff --git a/build/gulpfile.reh.js b/build/gulpfile.reh.js
  2. index 2a0c236eaf0..be2528c5c48 100644
  3. --- a/build/gulpfile.reh.js
  4. +++ b/build/gulpfile.reh.js
  5. @@ -46,6 +46,7 @@ const BUILD_TARGETS = [
  6. { platform: 'linux', arch: 'x64' },
  7. { platform: 'linux', arch: 'armhf' },
  8. { platform: 'linux', arch: 'arm64' },
  9. + { platform: 'linux', arch: 'ppc64le' },
  10. { platform: 'alpine', arch: 'arm64' },
  11. // legacy: we use to ship only one alpine so it was put in the arch, but now we ship
  12. // multiple alpine images and moved to a better model (alpine as the platform)
  13. diff --git a/build/gulpfile.scan.js b/build/gulpfile.scan.js
  14. index 62691fcc8cf..dbefb8549f1 100644
  15. --- a/build/gulpfile.scan.js
  16. +++ b/build/gulpfile.scan.js
  17. @@ -24,6 +24,7 @@ const BUILD_TARGETS = [
  18. { platform: 'linux', arch: 'x64' },
  19. { platform: 'linux', arch: 'armhf' },
  20. { platform: 'linux', arch: 'arm64' },
  21. + { platform: 'linux', arch: 'ppc64le' },
  22. ];
  23. BUILD_TARGETS.forEach(buildTarget => {
  24. diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js
  25. index 0ca2cfd60a9..18a60efc405 100644
  26. --- a/build/gulpfile.vscode.js
  27. +++ b/build/gulpfile.vscode.js
  28. @@ -426,6 +426,7 @@ const BUILD_TARGETS = [
  29. { platform: 'linux', arch: 'x64' },
  30. { platform: 'linux', arch: 'armhf' },
  31. { platform: 'linux', arch: 'arm64' },
  32. + { platform: 'linux', arch: 'ppc64le' },
  33. ];
  34. BUILD_TARGETS.forEach(buildTarget => {
  35. const dashed = (str) => (str ? `-${str}` : ``);
  36. diff --git a/build/gulpfile.vscode.linux.js b/build/gulpfile.vscode.linux.js
  37. index 90f75ccfabd..a9fe7715da9 100644
  38. --- a/build/gulpfile.vscode.linux.js
  39. +++ b/build/gulpfile.vscode.linux.js
  40. @@ -29,7 +29,7 @@ const linuxPackageRevision = Math.floor(new Date().getTime() / 1000);
  41. * @param {string} arch
  42. */
  43. function getDebPackageArch(arch) {
  44. - return { x64: 'amd64', armhf: 'armhf', arm64: 'arm64' }[arch];
  45. + return { x64: 'amd64', armhf: 'armhf', arm64: 'arm64', ppc64le: 'ppc64le' }[arch];
  46. }
  47. function prepareDebPackage(arch) {
  48. @@ -136,7 +136,7 @@ function getRpmBuildPath(rpmArch) {
  49. * @param {string} arch
  50. */
  51. function getRpmPackageArch(arch) {
  52. - return { x64: 'x86_64', armhf: 'armv7hl', arm64: 'aarch64' }[arch];
  53. + return { x64: 'x86_64', armhf: 'armv7hl', arm64: 'aarch64', ppc64le: 'ppc64le' }[arch];
  54. }
  55. /**
  56. @@ -292,6 +292,7 @@ const BUILD_TARGETS = [
  57. { arch: 'x64' },
  58. { arch: 'armhf' },
  59. { arch: 'arm64' },
  60. + { arch: 'ppc64le' },
  61. ];
  62. BUILD_TARGETS.forEach(({ arch }) => {
  63. diff --git a/build/linux/debian/calculate-deps.ts b/build/linux/debian/calculate-deps.ts
  64. index b13d3cdfaaf..650e4de3894 100644
  65. --- a/build/linux/debian/calculate-deps.ts
  66. +++ b/build/linux/debian/calculate-deps.ts
  67. @@ -52,6 +52,9 @@ function calculatePackageDeps(binaryPath: string, arch: DebianArchString, sysroo
  68. case 'arm64':
  69. cmd.push(`-l${sysroot}/usr/lib/aarch64-linux-gnu`,
  70. `-l${sysroot}/lib/aarch64-linux-gnu`);
  71. + case 'ppc64le':
  72. + cmd.push(`-l${sysroot}/usr/lib/ppc64le-linux-gnu`,
  73. + `-l${sysroot}/lib/ppc64le-linux-gnu`);
  74. break;
  75. }
  76. cmd.push(`-l${sysroot}/usr/lib`);
  77. diff --git a/build/linux/debian/dep-lists.ts b/build/linux/debian/dep-lists.ts
  78. index 52aa56d960b..857589ec9ff 100644
  79. --- a/build/linux/debian/dep-lists.ts
  80. +++ b/build/linux/debian/dep-lists.ts
  81. @@ -136,5 +136,44 @@ export const referenceGeneratedDepsByArch = {
  82. 'libxkbfile1',
  83. 'libxrandr2',
  84. 'xdg-utils (>= 1.0.2)'
  85. + ],
  86. + 'ppc64le': [
  87. + 'ca-certificates',
  88. + 'libasound2 (>= 1.0.17)',
  89. + 'libatk-bridge2.0-0 (>= 2.5.3)',
  90. + 'libatk1.0-0 (>= 2.2.0)',
  91. + 'libatspi2.0-0 (>= 2.9.90)',
  92. + 'libc6 (>= 2.17)',
  93. + 'libc6 (>= 2.28)',
  94. + 'libcairo2 (>= 1.6.0)',
  95. + 'libcurl3-gnutls | libcurl3-nss | libcurl4 | libcurl3',
  96. + 'libdbus-1-3 (>= 1.0.2)',
  97. + 'libdrm2 (>= 2.4.60)',
  98. + 'libexpat1 (>= 2.0.1)',
  99. + 'libgbm1 (>= 17.1.0~rc2)',
  100. + 'libglib2.0-0 (>= 2.16.0)',
  101. + 'libglib2.0-0 (>= 2.39.4)',
  102. + 'libgtk-3-0 (>= 3.9.10)',
  103. + 'libgtk-3-0 (>= 3.9.10) | libgtk-4-1',
  104. + 'libnspr4 (>= 2:4.9-2~)',
  105. + 'libnss3 (>= 2:3.22)',
  106. + 'libnss3 (>= 3.26)',
  107. + 'libpango-1.0-0 (>= 1.14.0)',
  108. + 'libsecret-1-0 (>= 0.18)',
  109. + 'libstdc++6 (>= 4.1.1)',
  110. + 'libstdc++6 (>= 5)',
  111. + 'libstdc++6 (>= 5.2)',
  112. + 'libstdc++6 (>= 6)',
  113. + 'libx11-6',
  114. + 'libx11-6 (>= 2:1.4.99.1)',
  115. + 'libxcb1 (>= 1.9.2)',
  116. + 'libxcomposite1 (>= 1:0.4.4-1)',
  117. + 'libxdamage1 (>= 1:1.1)',
  118. + 'libxext6',
  119. + 'libxfixes3',
  120. + 'libxkbcommon0 (>= 0.4.1)',
  121. + 'libxkbfile1',
  122. + 'libxrandr2',
  123. + 'xdg-utils (>= 1.0.2)'
  124. ]
  125. };
  126. diff --git a/build/linux/debian/types.ts b/build/linux/debian/types.ts
  127. index e97485ef128..356027a648b 100644
  128. --- a/build/linux/debian/types.ts
  129. +++ b/build/linux/debian/types.ts
  130. @@ -3,8 +3,8 @@
  131. * Licensed under the MIT License. See License.txt in the project root for license information.
  132. *--------------------------------------------------------------------------------------------*/
  133. -export type DebianArchString = 'amd64' | 'armhf' | 'arm64';
  134. +export type DebianArchString = 'amd64' | 'armhf' | 'arm64' | 'ppc64le';
  135. export function isDebianArchString(s: string): s is DebianArchString {
  136. - return ['amd64', 'armhf', 'arm64'].includes(s);
  137. + return ['amd64', 'armhf', 'arm64', 'ppc64le'].includes(s);
  138. }
  139. diff --git a/cli/src/update_service.rs b/cli/src/update_service.rs
  140. index b03d8ea5963..2beceeac640 100644
  141. --- a/cli/src/update_service.rs
  142. +++ b/cli/src/update_service.rs
  143. @@ -209,6 +209,7 @@ pub enum Platform {
  144. LinuxX64,
  145. LinuxARM64,
  146. LinuxARM32,
  147. + LinuxPPC64LE,
  148. DarwinX64,
  149. DarwinARM64,
  150. WindowsX64,
  151. @@ -222,6 +223,7 @@ impl Platform {
  152. Platform::LinuxX64 => Some("linux-x64".to_owned()),
  153. Platform::LinuxARM64 => Some("linux-arm64".to_owned()),
  154. Platform::LinuxARM32 => Some("linux-armhf".to_owned()),
  155. + Platform::LinuxPPC64LE => Some("linux-ppc64le".to_owned()),
  156. Platform::DarwinX64 => Some("darwin".to_owned()),
  157. Platform::DarwinARM64 => Some("darwin-arm64".to_owned()),
  158. Platform::WindowsX64 => Some("win32-x64-archive".to_owned()),
  159. @@ -237,6 +239,7 @@ impl Platform {
  160. Platform::LinuxX64 => "server-linux-x64",
  161. Platform::LinuxARM64 => "server-linux-arm64",
  162. Platform::LinuxARM32 => "server-linux-armhf",
  163. + Platform::LinuxPPC64LE => "server-linux-ppc64le",
  164. Platform::DarwinX64 => "server-darwin",
  165. Platform::DarwinARM64 => "server-darwin-arm64",
  166. Platform::WindowsX64 => "server-win32-x64",
  167. @@ -253,6 +256,7 @@ impl Platform {
  168. Platform::LinuxX64 => "cli-linux-x64",
  169. Platform::LinuxARM64 => "cli-linux-arm64",
  170. Platform::LinuxARM32 => "cli-linux-armhf",
  171. + Platform::LinuxPPC64LE => "cli-linux-ppc64le",
  172. Platform::DarwinX64 => "cli-darwin-x64",
  173. Platform::DarwinARM64 => "cli-darwin-arm64",
  174. Platform::WindowsARM64 => "cli-win32-arm64",
  175. @@ -285,6 +289,8 @@ impl Platform {
  176. Some(Platform::LinuxARM32)
  177. } else if cfg!(all(target_os = "linux", target_arch = "aarch64")) {
  178. Some(Platform::LinuxARM64)
  179. + } else if cfg!(all(target_os = "linux", target_arch = "ppc64le")) {
  180. + Some(Platform::LinuxPPC64LE)
  181. } else if cfg!(all(target_os = "macos", target_arch = "x86_64")) {
  182. Some(Platform::DarwinX64)
  183. } else if cfg!(all(target_os = "macos", target_arch = "aarch64")) {
  184. @@ -309,6 +315,7 @@ impl fmt::Display for Platform {
  185. Platform::LinuxX64 => "LinuxX64",
  186. Platform::LinuxARM64 => "LinuxARM64",
  187. Platform::LinuxARM32 => "LinuxARM32",
  188. + Platform::LinuxPPC64LE => "LinuxPPC64LE",
  189. Platform::DarwinX64 => "DarwinX64",
  190. Platform::DarwinARM64 => "DarwinARM64",
  191. Platform::WindowsX64 => "WindowsX64",
  192. diff --git a/cli/src/util/prereqs.rs b/cli/src/util/prereqs.rs
  193. index d8cbd1b91dd..191d312e994 100644
  194. --- a/cli/src/util/prereqs.rs
  195. +++ b/cli/src/util/prereqs.rs
  196. @@ -64,6 +64,8 @@ impl PreReqChecker {
  197. Platform::LinuxX64
  198. } else if cfg!(target_arch = "arm") {
  199. Platform::LinuxARM32
  200. + } else if cfg!(target_arch = "ppc64le") {
  201. + Platform::LinuxPPC64LE
  202. } else {
  203. Platform::LinuxARM64
  204. });
  205. diff --git a/src/main.js b/src/main.js
  206. index d986fee6f6d..02cd26a4d93 100644
  207. --- a/src/main.js
  208. +++ b/src/main.js
  209. @@ -405,6 +405,7 @@ function configureCrashReporter() {
  210. }
  211. }
  212. } else if (isLinux) {
  213. +
  214. submitURL = appCenter['linux-x64'];
  215. }
  216. submitURL = submitURL.concat('&uid=', crashReporterId, '&iid=', crashReporterId, '&sid=', crashReporterId);
  217. diff --git a/src/vs/platform/extensionManagement/common/extensionManagement.ts b/src/vs/platform/extensionManagement/common/extensionManagement.ts
  218. index d407374f6ee..636da84fd62 100644
  219. --- a/src/vs/platform/extensionManagement/common/extensionManagement.ts
  220. +++ b/src/vs/platform/extensionManagement/common/extensionManagement.ts
  221. @@ -28,6 +28,7 @@ export function TargetPlatformToString(targetPlatform: TargetPlatform) {
  222. case TargetPlatform.LINUX_X64: return 'Linux 64 bit';
  223. case TargetPlatform.LINUX_ARM64: return 'Linux ARM 64';
  224. case TargetPlatform.LINUX_ARMHF: return 'Linux ARM';
  225. + case TargetPlatform.LINUX_PPC64LE: return 'Linux PPC64LE';
  226. case TargetPlatform.ALPINE_X64: return 'Alpine Linux 64 bit';
  227. case TargetPlatform.ALPINE_ARM64: return 'Alpine ARM 64';
  228. @@ -52,6 +53,7 @@ export function toTargetPlatform(targetPlatform: string): TargetPlatform {
  229. case TargetPlatform.LINUX_X64: return TargetPlatform.LINUX_X64;
  230. case TargetPlatform.LINUX_ARM64: return TargetPlatform.LINUX_ARM64;
  231. case TargetPlatform.LINUX_ARMHF: return TargetPlatform.LINUX_ARMHF;
  232. + case TargetPlatform.LINUX_PPC64LE: return TargetPlatform.LINUX_PPC64LE;
  233. case TargetPlatform.ALPINE_X64: return TargetPlatform.ALPINE_X64;
  234. case TargetPlatform.ALPINE_ARM64: return TargetPlatform.ALPINE_ARM64;
  235. @@ -90,6 +92,9 @@ export function getTargetPlatform(platform: Platform | 'alpine', arch: string |
  236. if (arch === 'arm') {
  237. return TargetPlatform.LINUX_ARMHF;
  238. }
  239. + if (arch === 'ppc64le') {
  240. + return TargetPlatform.LINUX_PPC64LE;
  241. + }
  242. return TargetPlatform.UNKNOWN;
  243. case 'alpine':
  244. diff --git a/src/vs/platform/extensions/common/extensions.ts b/src/vs/platform/extensions/common/extensions.ts
  245. index cfa0e3296f0..d38a82114e3 100644
  246. --- a/src/vs/platform/extensions/common/extensions.ts
  247. +++ b/src/vs/platform/extensions/common/extensions.ts
  248. @@ -296,6 +296,7 @@ export const enum TargetPlatform {
  249. LINUX_X64 = 'linux-x64',
  250. LINUX_ARM64 = 'linux-arm64',
  251. LINUX_ARMHF = 'linux-armhf',
  252. + LINUX_PPC64LE = 'linux-ppc64le',
  253. ALPINE_X64 = 'alpine-x64',
  254. ALPINE_ARM64 = 'alpine-arm64',