ppc64le-support.patch 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. diff --git a/build/gulpfile.reh.js b/build/gulpfile.reh.js
  2. index c2b81d0..4972cec 100644
  3. --- a/build/gulpfile.reh.js
  4. +++ b/build/gulpfile.reh.js
  5. @@ -46,2 +46,3 @@ const BUILD_TARGETS = [
  6. { platform: 'linux', arch: 'arm64' },
  7. + { platform: 'linux', arch: 'ppc64le' },
  8. { platform: 'alpine', arch: 'arm64' },
  9. diff --git a/build/gulpfile.scan.js b/build/gulpfile.scan.js
  10. index 6f8144b..4479ae7 100644
  11. --- a/build/gulpfile.scan.js
  12. +++ b/build/gulpfile.scan.js
  13. @@ -26,2 +26,3 @@ const BUILD_TARGETS = [
  14. { platform: 'linux', arch: 'arm64' },
  15. + { platform: 'linux', arch: 'ppc64le' },
  16. ];
  17. diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js
  18. index e1507e0..997b553 100644
  19. --- a/build/gulpfile.vscode.js
  20. +++ b/build/gulpfile.vscode.js
  21. @@ -431,2 +431,3 @@ const BUILD_TARGETS = [
  22. { platform: 'linux', arch: 'arm64' },
  23. + { platform: 'linux', arch: 'ppc64le' },
  24. ];
  25. diff --git a/build/gulpfile.vscode.linux.js b/build/gulpfile.vscode.linux.js
  26. index 8c2b62f..290f25e 100644
  27. --- a/build/gulpfile.vscode.linux.js
  28. +++ b/build/gulpfile.vscode.linux.js
  29. @@ -30,3 +30,3 @@ const linuxPackageRevision = Math.floor(new Date().getTime() / 1000);
  30. function getDebPackageArch(arch) {
  31. - return { x64: 'amd64', armhf: 'armhf', arm64: 'arm64' }[arch];
  32. + return { x64: 'amd64', armhf: 'armhf', arm64: 'arm64', ppc64le: 'ppc64le' }[arch];
  33. }
  34. @@ -136,3 +136,3 @@ function getRpmBuildPath(rpmArch) {
  35. function getRpmPackageArch(arch) {
  36. - return { x64: 'x86_64', armhf: 'armv7hl', arm64: 'aarch64' }[arch];
  37. + return { x64: 'x86_64', armhf: 'armv7hl', arm64: 'aarch64', ppc64le: 'ppc64le' }[arch];
  38. }
  39. @@ -297,2 +297,3 @@ const BUILD_TARGETS = [
  40. { arch: 'arm64' },
  41. + { arch: 'ppc64le' },
  42. ];
  43. diff --git a/build/linux/debian/calculate-deps.ts b/build/linux/debian/calculate-deps.ts
  44. index 92f8065..c16687b 100644
  45. --- a/build/linux/debian/calculate-deps.ts
  46. +++ b/build/linux/debian/calculate-deps.ts
  47. @@ -61,2 +61,8 @@ function calculatePackageDeps(binaryPath: string, arch: DebianArchString, chromi
  48. break;
  49. + case 'ppc64le':
  50. + cmd.push(`-l${chromiumSysroot}/usr/lib/ppc64le-linux-gnu`,
  51. + `-l${chromiumSysroot}/lib/ppc64le-linux-gnu`,
  52. + `-l${vscodeSysroot}/usr/lib/ppc64le-linux-gnu`,
  53. + `-l${vscodeSysroot}/lib/ppc64le-linux-gnu`);
  54. + break;
  55. }
  56. diff --git a/build/linux/debian/dep-lists.ts b/build/linux/debian/dep-lists.ts
  57. index 3d6c2eb..a4587bd 100644
  58. --- a/build/linux/debian/dep-lists.ts
  59. +++ b/build/linux/debian/dep-lists.ts
  60. @@ -142,2 +142,41 @@ export const referenceGeneratedDepsByArch = {
  61. 'xdg-utils (>= 1.0.2)'
  62. + ],
  63. + 'ppc64le': [
  64. + 'ca-certificates',
  65. + 'libasound2 (>= 1.0.17)',
  66. + 'libatk-bridge2.0-0 (>= 2.5.3)',
  67. + 'libatk1.0-0 (>= 2.2.0)',
  68. + 'libatspi2.0-0 (>= 2.9.90)',
  69. + 'libc6 (>= 2.17)',
  70. + 'libc6 (>= 2.28)',
  71. + 'libcairo2 (>= 1.6.0)',
  72. + 'libcurl3-gnutls | libcurl3-nss | libcurl4 | libcurl3',
  73. + 'libdbus-1-3 (>= 1.0.2)',
  74. + 'libdrm2 (>= 2.4.60)',
  75. + 'libexpat1 (>= 2.0.1)',
  76. + 'libgbm1 (>= 17.1.0~rc2)',
  77. + 'libglib2.0-0 (>= 2.16.0)',
  78. + 'libglib2.0-0 (>= 2.39.4)',
  79. + 'libgtk-3-0 (>= 3.9.10)',
  80. + 'libgtk-3-0 (>= 3.9.10) | libgtk-4-1',
  81. + 'libnspr4 (>= 2:4.9-2~)',
  82. + 'libnss3 (>= 2:3.22)',
  83. + 'libnss3 (>= 3.26)',
  84. + 'libpango-1.0-0 (>= 1.14.0)',
  85. + 'libsecret-1-0 (>= 0.18)',
  86. + 'libstdc++6 (>= 4.1.1)',
  87. + 'libstdc++6 (>= 5)',
  88. + 'libstdc++6 (>= 5.2)',
  89. + 'libstdc++6 (>= 6)',
  90. + 'libx11-6',
  91. + 'libx11-6 (>= 2:1.4.99.1)',
  92. + 'libxcb1 (>= 1.9.2)',
  93. + 'libxcomposite1 (>= 1:0.4.4-1)',
  94. + 'libxdamage1 (>= 1:1.1)',
  95. + 'libxext6',
  96. + 'libxfixes3',
  97. + 'libxkbcommon0 (>= 0.4.1)',
  98. + 'libxkbfile1',
  99. + 'libxrandr2',
  100. + 'xdg-utils (>= 1.0.2)'
  101. ]
  102. diff --git a/build/linux/debian/types.ts b/build/linux/debian/types.ts
  103. index e97485e..356027a 100644
  104. --- a/build/linux/debian/types.ts
  105. +++ b/build/linux/debian/types.ts
  106. @@ -5,6 +5,6 @@
  107. -export type DebianArchString = 'amd64' | 'armhf' | 'arm64';
  108. +export type DebianArchString = 'amd64' | 'armhf' | 'arm64' | 'ppc64le';
  109. export function isDebianArchString(s: string): s is DebianArchString {
  110. - return ['amd64', 'armhf', 'arm64'].includes(s);
  111. + return ['amd64', 'armhf', 'arm64', 'ppc64le'].includes(s);
  112. }
  113. diff --git a/cli/src/update_service.rs b/cli/src/update_service.rs
  114. index 4bec13d..5aa944d 100644
  115. --- a/cli/src/update_service.rs
  116. +++ b/cli/src/update_service.rs
  117. @@ -216,2 +216,3 @@ pub enum Platform {
  118. LinuxARM32Legacy,
  119. + LinuxPPC64LE
  120. DarwinX64,
  121. @@ -229,2 +230,3 @@ impl Platform {
  122. Platform::LinuxARM32 => Some("linux-armhf".to_owned()),
  123. + Platform::LinuxPPC64LE => Some("linux-ppc64le".to_owned()),
  124. Platform::DarwinX64 => Some("darwin".to_owned()),
  125. @@ -247,2 +249,3 @@ impl Platform {
  126. Platform::LinuxARM32Legacy => "server-linux-legacy-armhf",
  127. + Platform::LinuxPPC64LE => "server-linux-ppc64le",
  128. Platform::DarwinX64 => "server-darwin",
  129. @@ -266,2 +269,3 @@ impl Platform {
  130. Platform::LinuxARM32Legacy => "cli-linux-armhf",
  131. + Platform::LinuxPPC64LE => "cli-linux-ppc64le",
  132. Platform::DarwinX64 => "cli-darwin-x64",
  133. @@ -298,2 +302,4 @@ impl Platform {
  134. Some(Platform::LinuxARM64)
  135. + } else if cfg!(all(target_os = "linux", target_arch = "ppc64le")) {
  136. + Some(Platform::LinuxPPC64LE)
  137. } else if cfg!(all(target_os = "macos", target_arch = "x86_64")) {
  138. @@ -325,2 +331,3 @@ impl fmt::Display for Platform {
  139. Platform::LinuxARM32Legacy => "LinuxARM32Legacy",
  140. + Platform::LinuxPPC64LE => "LinuxPPC64LE",
  141. Platform::DarwinX64 => "DarwinX64",
  142. diff --git a/cli/src/util/prereqs.rs b/cli/src/util/prereqs.rs
  143. index 20a5bc9..1669bf7 100644
  144. --- a/cli/src/util/prereqs.rs
  145. +++ b/cli/src/util/prereqs.rs
  146. @@ -75,2 +75,4 @@ impl PreReqChecker {
  147. Platform::LinuxARM32
  148. + } else if cfg!(target_arch = "ppc64le") {
  149. + Platform::LinuxPPC64LE
  150. } else {
  151. diff --git a/src/main.js b/src/main.js
  152. index 90de17b..80f5c47 100644
  153. --- a/src/main.js
  154. +++ b/src/main.js
  155. @@ -435,2 +435,3 @@ function configureCrashReporter() {
  156. } else if (isLinux) {
  157. +
  158. submitURL = appCenter['linux-x64'];
  159. diff --git a/src/vs/platform/extensionManagement/common/extensionManagement.ts b/src/vs/platform/extensionManagement/common/extensionManagement.ts
  160. index 9dae82e..64ad08b 100644
  161. --- a/src/vs/platform/extensionManagement/common/extensionManagement.ts
  162. +++ b/src/vs/platform/extensionManagement/common/extensionManagement.ts
  163. @@ -35,2 +35,3 @@ export function TargetPlatformToString(targetPlatform: TargetPlatform) {
  164. case TargetPlatform.LINUX_ARMHF: return 'Linux ARM';
  165. + case TargetPlatform.LINUX_PPC64LE: return 'Linux PPC64LE';
  166. @@ -58,2 +59,3 @@ export function toTargetPlatform(targetPlatform: string): TargetPlatform {
  167. case TargetPlatform.LINUX_ARMHF: return TargetPlatform.LINUX_ARMHF;
  168. + case TargetPlatform.LINUX_PPC64LE: return TargetPlatform.LINUX_PPC64LE;
  169. @@ -93,2 +95,5 @@ export function getTargetPlatform(platform: Platform | 'alpine', arch: string |
  170. }
  171. + if (arch === 'ppc64le') {
  172. + return TargetPlatform.LINUX_PPC64LE;
  173. + }
  174. return TargetPlatform.UNKNOWN;
  175. diff --git a/src/vs/platform/extensions/common/extensions.ts b/src/vs/platform/extensions/common/extensions.ts
  176. index 331aba1..57e01f2 100644
  177. --- a/src/vs/platform/extensions/common/extensions.ts
  178. +++ b/src/vs/platform/extensions/common/extensions.ts
  179. @@ -305,2 +305,3 @@ export const enum TargetPlatform {
  180. LINUX_ARMHF = 'linux-armhf',
  181. + LINUX_PPC64LE = 'linux-ppc64le',