arch-4-s390x.patch 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. diff --git a/build/azure-pipelines/linux/setup-env.sh b/build/azure-pipelines/linux/setup-env.sh
  2. index 2da5cf9..700e199 100755
  3. --- a/build/azure-pipelines/linux/setup-env.sh
  4. +++ b/build/azure-pipelines/linux/setup-env.sh
  5. @@ -80,2 +80,14 @@ elif [ "$npm_config_arch" == "ppc64" ]; then
  6. export VSCODE_REMOTE_LDFLAGS="--sysroot=$VSCODE_SYSROOT_DIR/powerpc64le-linux-gnu/powerpc64le-linux-gnu/sysroot -L$VSCODE_SYSROOT_DIR/powerpc64le-linux-gnu/powerpc64le-linux-gnu/sysroot/usr/lib/powerpc64le-linux-gnu -L$VSCODE_SYSROOT_DIR/powerpc64le-linux-gnu/powerpc64le-linux-gnu/sysroot/lib/powerpc64le-linux-gnu"
  7. +elif [ "$npm_config_arch" == "s390x" ]; then
  8. + # Set compiler toolchain for client native modules
  9. + export CC=$VSCODE_SYSROOT_DIR/s390x-linux-gnu/bin/s390x-linux-gnu-gcc
  10. + export CXX=$VSCODE_SYSROOT_DIR/s390x-linux-gnu/bin/s390x-linux-gnu-g++
  11. + export CXXFLAGS="--sysroot=$VSCODE_SYSROOT_DIR/s390x-linux-gnu/s390x-linux-gnu/sysroot"
  12. + export LDFLAGS="--sysroot=$VSCODE_SYSROOT_DIR/s390x-linux-gnu/s390x-linux-gnu/sysroot -L$VSCODE_SYSROOT_DIR/s390x-linux-gnu/s390x-linux-gnu/sysroot/usr/lib/s390x-linux-gnu -L$VSCODE_SYSROOT_DIR/s390x-linux-gnu/s390x-linux-gnu/sysroot/lib/s390x-linux-gnu"
  13. +
  14. + # Set compiler toolchain for remote server
  15. + export VSCODE_REMOTE_CC=$VSCODE_SYSROOT_DIR/s390x-linux-gnu/bin/s390x-linux-gnu-gcc
  16. + export VSCODE_REMOTE_CXX=$VSCODE_SYSROOT_DIR/s390x-linux-gnu/bin/s390x-linux-gnu-g++
  17. + export VSCODE_REMOTE_CXXFLAGS="--sysroot=$VSCODE_SYSROOT_DIR/s390x-linux-gnu/s390x-linux-gnu/sysroot"
  18. + export VSCODE_REMOTE_LDFLAGS="--sysroot=$VSCODE_SYSROOT_DIR/s390x-linux-gnu/s390x-linux-gnu/sysroot -L$VSCODE_SYSROOT_DIR/s390x-linux-gnu/s390x-linux-gnu/sysroot/usr/lib/s390x-linux-gnu -L$VSCODE_SYSROOT_DIR/s390x-linux-gnu/s390x-linux-gnu/sysroot/lib/s390x-linux-gnu"
  19. fi
  20. diff --git a/build/checksums/vscode-sysroot.txt b/build/checksums/vscode-sysroot.txt
  21. index db63d02..bbfa533 100644
  22. --- a/build/checksums/vscode-sysroot.txt
  23. +++ b/build/checksums/vscode-sysroot.txt
  24. @@ -4 +4,2 @@ dbb927408393041664a020661f2641c9785741be3d29b050b9dac58980967784 x86_64-linux-g
  25. fa8176d27be18bb0eeb7f55b0fa22255050b430ef68c29136599f02976eb0b1b powerpc64le-linux-gnu-glibc-2.28.tar.gz
  26. +7055f3d40e7195fb1e13f0fbaf5ffadf781bddaca5fd5e0d9972f4157a203fb5 s390x-linux-gnu-glibc-2.28.tar.gz
  27. diff --git a/build/gulpfile.reh.js b/build/gulpfile.reh.js
  28. index 52f9a12..4b890f4 100644
  29. --- a/build/gulpfile.reh.js
  30. +++ b/build/gulpfile.reh.js
  31. @@ -53,2 +53,3 @@ const BUILD_TARGETS = [
  32. { platform: 'linux', arch: 'loong64' },
  33. + { platform: 'linux', arch: 's390x' },
  34. { platform: 'alpine', arch: 'arm64' },
  35. diff --git a/build/gulpfile.scan.js b/build/gulpfile.scan.js
  36. index 8a8c1eb..1ef390b 100644
  37. --- a/build/gulpfile.scan.js
  38. +++ b/build/gulpfile.scan.js
  39. @@ -29,2 +29,3 @@ const BUILD_TARGETS = [
  40. { platform: 'linux', arch: 'loong64' },
  41. + { platform: 'linux', arch: 's390x' },
  42. ];
  43. diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js
  44. index 1438867..8593b88 100644
  45. --- a/build/gulpfile.vscode.js
  46. +++ b/build/gulpfile.vscode.js
  47. @@ -494,2 +494,3 @@ const BUILD_TARGETS = [
  48. { platform: 'linux', arch: 'loong64' },
  49. + { platform: 'linux', arch: 's390x' },
  50. ];
  51. diff --git a/build/gulpfile.vscode.linux.js b/build/gulpfile.vscode.linux.js
  52. index 298181d..dcc42a8 100644
  53. --- a/build/gulpfile.vscode.linux.js
  54. +++ b/build/gulpfile.vscode.linux.js
  55. @@ -33,3 +33,3 @@ const linuxPackageRevision = Math.floor(new Date().getTime() / 1000);
  56. function getDebPackageArch(arch) {
  57. - return { x64: 'amd64', armhf: 'armhf', arm64: 'arm64', ppc64le: 'ppc64el', riscv64: 'riscv64' }[arch];
  58. + return { x64: 'amd64', armhf: 'armhf', arm64: 'arm64', ppc64le: 'ppc64el', riscv64: 'riscv64', s390x: 's390x' }[arch];
  59. }
  60. @@ -146,3 +146,3 @@ function getRpmBuildPath(rpmArch) {
  61. function getRpmPackageArch(arch) {
  62. - return { x64: 'x86_64', armhf: 'armv7hl', arm64: 'aarch64', ppc64le: 'ppc64le', riscv64: 'riscv64' }[arch];
  63. + return { x64: 'x86_64', armhf: 'armv7hl', arm64: 'aarch64', ppc64le: 'ppc64le', riscv64: 'riscv64', s390x: 's390x' }[arch];
  64. }
  65. @@ -306,2 +306,3 @@ const BUILD_TARGETS = [
  66. { arch: 'riscv64' },
  67. + { arch: 's390x' },
  68. ];
  69. diff --git a/build/linux/debian/calculate-deps.js b/build/linux/debian/calculate-deps.js
  70. index a08ebda..9527119 100644
  71. --- a/build/linux/debian/calculate-deps.js
  72. +++ b/build/linux/debian/calculate-deps.js
  73. @@ -60,2 +60,5 @@ function calculatePackageDeps(binaryPath, arch, chromiumSysroot, vscodeSysroot)
  74. break;
  75. + case 's390x':
  76. + cmd.push(`-l${chromiumSysroot}/usr/lib/s390x-linux-gnu`, `-l${chromiumSysroot}/lib/s390x-linux-gnu`, `-l${vscodeSysroot}/usr/lib/s390x-linux-gnu`, `-l${vscodeSysroot}/lib/s390x-linux-gnu`);
  77. + break;
  78. }
  79. diff --git a/build/linux/debian/calculate-deps.ts b/build/linux/debian/calculate-deps.ts
  80. index 88ee2f0..8037cf2 100644
  81. --- a/build/linux/debian/calculate-deps.ts
  82. +++ b/build/linux/debian/calculate-deps.ts
  83. @@ -73,2 +73,8 @@ function calculatePackageDeps(binaryPath: string, arch: DebianArchString, chromi
  84. break;
  85. + case 's390x':
  86. + cmd.push(`-l${chromiumSysroot}/usr/lib/s390x-linux-gnu`,
  87. + `-l${chromiumSysroot}/lib/s390x-linux-gnu`,
  88. + `-l${vscodeSysroot}/usr/lib/s390x-linux-gnu`,
  89. + `-l${vscodeSysroot}/lib/s390x-linux-gnu`);
  90. + break;
  91. }
  92. diff --git a/build/linux/debian/dep-lists.js b/build/linux/debian/dep-lists.js
  93. index 4ccdcd9..ad00020 100644
  94. --- a/build/linux/debian/dep-lists.js
  95. +++ b/build/linux/debian/dep-lists.js
  96. @@ -218,2 +218,42 @@ exports.referenceGeneratedDepsByArch = {
  97. ],
  98. + 's390x': [
  99. + 'ca-certificates',
  100. + 'libatomic1',
  101. + 'libasound2 (>= 1.0.17)',
  102. + 'libatk-bridge2.0-0 (>= 2.5.3)',
  103. + 'libatk1.0-0 (>= 2.2.0)',
  104. + 'libatspi2.0-0 (>= 2.9.90)',
  105. + 'libc6 (>= 2.17)',
  106. + 'libc6 (>= 2.28)',
  107. + 'libcairo2 (>= 1.6.0)',
  108. + 'libcurl3-gnutls | libcurl3-nss | libcurl4 | libcurl3',
  109. + 'libdbus-1-3 (>= 1.0.2)',
  110. + 'libdrm2 (>= 2.4.60)',
  111. + 'libexpat1 (>= 2.0.1)',
  112. + 'libgbm1 (>= 17.1.0~rc2)',
  113. + 'libglib2.0-0 (>= 2.16.0)',
  114. + 'libglib2.0-0 (>= 2.39.4)',
  115. + 'libgtk-3-0 (>= 3.9.10)',
  116. + 'libgtk-3-0 (>= 3.9.10) | libgtk-4-1',
  117. + 'libnspr4 (>= 2:4.9-2~)',
  118. + 'libnss3 (>= 2:3.22)',
  119. + 'libnss3 (>= 3.26)',
  120. + 'libpango-1.0-0 (>= 1.14.0)',
  121. + 'libsecret-1-0 (>= 0.18)',
  122. + 'libstdc++6 (>= 4.1.1)',
  123. + 'libstdc++6 (>= 5)',
  124. + 'libstdc++6 (>= 5.2)',
  125. + 'libstdc++6 (>= 6)',
  126. + 'libx11-6',
  127. + 'libx11-6 (>= 2:1.4.99.1)',
  128. + 'libxcb1 (>= 1.9.2)',
  129. + 'libxcomposite1 (>= 1:0.4.4-1)',
  130. + 'libxdamage1 (>= 1:1.1)',
  131. + 'libxext6',
  132. + 'libxfixes3',
  133. + 'libxkbcommon0 (>= 0.4.1)',
  134. + 'libxkbfile1',
  135. + 'libxrandr2',
  136. + 'xdg-utils (>= 1.0.2)'
  137. + ],
  138. };
  139. diff --git a/build/linux/debian/dep-lists.ts b/build/linux/debian/dep-lists.ts
  140. index b765492..f7edfda 100644
  141. --- a/build/linux/debian/dep-lists.ts
  142. +++ b/build/linux/debian/dep-lists.ts
  143. @@ -218,2 +218,42 @@ export const referenceGeneratedDepsByArch = {
  144. ],
  145. + 's390x': [
  146. + 'ca-certificates',
  147. + 'libatomic1',
  148. + 'libasound2 (>= 1.0.17)',
  149. + 'libatk-bridge2.0-0 (>= 2.5.3)',
  150. + 'libatk1.0-0 (>= 2.2.0)',
  151. + 'libatspi2.0-0 (>= 2.9.90)',
  152. + 'libc6 (>= 2.17)',
  153. + 'libc6 (>= 2.28)',
  154. + 'libcairo2 (>= 1.6.0)',
  155. + 'libcurl3-gnutls | libcurl3-nss | libcurl4 | libcurl3',
  156. + 'libdbus-1-3 (>= 1.0.2)',
  157. + 'libdrm2 (>= 2.4.60)',
  158. + 'libexpat1 (>= 2.0.1)',
  159. + 'libgbm1 (>= 17.1.0~rc2)',
  160. + 'libglib2.0-0 (>= 2.16.0)',
  161. + 'libglib2.0-0 (>= 2.39.4)',
  162. + 'libgtk-3-0 (>= 3.9.10)',
  163. + 'libgtk-3-0 (>= 3.9.10) | libgtk-4-1',
  164. + 'libnspr4 (>= 2:4.9-2~)',
  165. + 'libnss3 (>= 2:3.22)',
  166. + 'libnss3 (>= 3.26)',
  167. + 'libpango-1.0-0 (>= 1.14.0)',
  168. + 'libsecret-1-0 (>= 0.18)',
  169. + 'libstdc++6 (>= 4.1.1)',
  170. + 'libstdc++6 (>= 5)',
  171. + 'libstdc++6 (>= 5.2)',
  172. + 'libstdc++6 (>= 6)',
  173. + 'libx11-6',
  174. + 'libx11-6 (>= 2:1.4.99.1)',
  175. + 'libxcb1 (>= 1.9.2)',
  176. + 'libxcomposite1 (>= 1:0.4.4-1)',
  177. + 'libxdamage1 (>= 1:1.1)',
  178. + 'libxext6',
  179. + 'libxfixes3',
  180. + 'libxkbcommon0 (>= 0.4.1)',
  181. + 'libxkbfile1',
  182. + 'libxrandr2',
  183. + 'xdg-utils (>= 1.0.2)'
  184. + ],
  185. };
  186. diff --git a/build/linux/debian/install-sysroot.js b/build/linux/debian/install-sysroot.js
  187. index fc2817a..735e42d 100644
  188. --- a/build/linux/debian/install-sysroot.js
  189. +++ b/build/linux/debian/install-sysroot.js
  190. @@ -148,2 +148,6 @@ async function getVSCodeSysroot(arch) {
  191. break;
  192. + case 's390x':
  193. + expectedName = `s390x-linux-gnu${prefix}.tar.gz`;
  194. + triple = 's390x-linux-gnu';
  195. + break;
  196. }
  197. diff --git a/build/linux/debian/install-sysroot.ts b/build/linux/debian/install-sysroot.ts
  198. index 50c28b2..aa30cee 100644
  199. --- a/build/linux/debian/install-sysroot.ts
  200. +++ b/build/linux/debian/install-sysroot.ts
  201. @@ -162,2 +162,6 @@ export async function getVSCodeSysroot(arch: DebianArchString): Promise<string>
  202. break;
  203. + case 's390x':
  204. + expectedName = `s390x-linux-gnu${prefix}.tar.gz`;
  205. + triple = 's390x-linux-gnu';
  206. + break;
  207. }
  208. diff --git a/build/linux/debian/types.js b/build/linux/debian/types.js
  209. index cadefc2..8132812 100644
  210. --- a/build/linux/debian/types.js
  211. +++ b/build/linux/debian/types.js
  212. @@ -8,3 +8,3 @@ exports.isDebianArchString = isDebianArchString;
  213. function isDebianArchString(s) {
  214. - return ['amd64', 'armhf', 'arm64', 'ppc64el', 'riscv64'].includes(s);
  215. + return ['amd64', 'armhf', 'arm64', 'ppc64el', 'riscv64', 's390x'].includes(s);
  216. }
  217. diff --git a/build/linux/debian/types.ts b/build/linux/debian/types.ts
  218. index 24fe452..9efba5b 100644
  219. --- a/build/linux/debian/types.ts
  220. +++ b/build/linux/debian/types.ts
  221. @@ -5,6 +5,6 @@
  222. -export type DebianArchString = 'amd64' | 'armhf' | 'arm64' | 'ppc64el' | 'riscv64';
  223. +export type DebianArchString = 'amd64' | 'armhf' | 'arm64' | 'ppc64el' | 'riscv64' | 's390x';
  224. export function isDebianArchString(s: string): s is DebianArchString {
  225. - return ['amd64', 'armhf', 'arm64', 'ppc64el', 'riscv64'].includes(s);
  226. + return ['amd64', 'armhf', 'arm64', 'ppc64el', 'riscv64', 's390x'].includes(s);
  227. }
  228. diff --git a/build/linux/rpm/dep-lists.ts b/build/linux/rpm/dep-lists.ts
  229. index c6d7761..74c58e0 100644
  230. --- a/build/linux/rpm/dep-lists.ts
  231. +++ b/build/linux/rpm/dep-lists.ts
  232. @@ -413,2 +413,102 @@ export const referenceGeneratedDepsByArch = {
  233. 'xdg-utils'
  234. + ],
  235. + "s390x": [
  236. + 'ca-certificates',
  237. + 'ld-linux-x86-64.so.2()(64bit)',
  238. + 'ld-linux-x86-64.so.2(GLIBC_2.3)(64bit)',
  239. + 'ld64.so.2()(64bit)',
  240. + 'ld64.so.2(GLIBC_2.17)(64bit)',
  241. + 'libX11.so.6()(64bit)',
  242. + 'libXcomposite.so.1()(64bit)',
  243. + 'libXdamage.so.1()(64bit)',
  244. + 'libXext.so.6()(64bit)',
  245. + 'libXfixes.so.3()(64bit)',
  246. + 'libXrandr.so.2()(64bit)',
  247. + 'libasound.so.2()(64bit)',
  248. + 'libasound.so.2(ALSA_0.9)(64bit)',
  249. + 'libasound.so.2(ALSA_0.9.0rc4)(64bit)',
  250. + 'libatk-1.0.so.0()(64bit)',
  251. + 'libatk-bridge-2.0.so.0()(64bit)',
  252. + 'libatspi.so.0()(64bit)',
  253. + 'libc.so.6()(64bit)',
  254. + 'libc.so.6(GLIBC_2.14)(64bit)',
  255. + 'libc.so.6(GLIBC_2.17)(64bit)',
  256. + 'libc.so.6(GLIBC_2.2.5)(64bit)',
  257. + 'libc.so.6(GLIBC_2.28)(64bit)',
  258. + 'libc.so.6(GLIBC_2.4)(64bit)',
  259. + 'libc.so.6(GLIBC_2.9)(64bit)',
  260. + 'libcairo.so.2()(64bit)',
  261. + 'libcups.so.2()(64bit)',
  262. + 'libcurl.so.4()(64bit)',
  263. + 'libdbus-1.so.3()(64bit)',
  264. + 'libdbus-1.so.3(LIBDBUS_1_3)(64bit)',
  265. + 'libdl.so.2()(64bit)',
  266. + 'libdl.so.2(GLIBC_2.17)(64bit)',
  267. + 'libdrm.so.2()(64bit)',
  268. + 'libexpat.so.1()(64bit)',
  269. + 'libgbm.so.1()(64bit)',
  270. + 'libgcc_s.so.1()(64bit)',
  271. + 'libgcc_s.so.1(GCC_3.0)(64bit)',
  272. + 'libgcc_s.so.1(GCC_3.4.4)(64bit)',
  273. + 'libgio-2.0.so.0()(64bit)',
  274. + 'libglib-2.0.so.0()(64bit)',
  275. + 'libgobject-2.0.so.0()(64bit)',
  276. + 'libgssapi_krb5.so.2()(64bit)',
  277. + 'libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit)',
  278. + 'libgtk-3.so.0()(64bit)',
  279. + 'libkrb5.so.3()(64bit)',
  280. + 'libkrb5.so.3(krb5_3_MIT)(64bit)',
  281. + 'libm.so.6()(64bit)',
  282. + 'libm.so.6(GLIBC_2.17)(64bit)',
  283. + 'libm.so.6(GLIBC_2.2.5)(64bit)',
  284. + 'libm.so.6(GLIBC_2.27)(64bit)',
  285. + 'libnspr4.so()(64bit)',
  286. + 'libnss3.so()(64bit)',
  287. + 'libnss3.so(NSS_3.11)(64bit)',
  288. + 'libnss3.so(NSS_3.12)(64bit)',
  289. + 'libnss3.so(NSS_3.12.1)(64bit)',
  290. + 'libnss3.so(NSS_3.2)(64bit)',
  291. + 'libnss3.so(NSS_3.22)(64bit)',
  292. + 'libnss3.so(NSS_3.3)(64bit)',
  293. + 'libnss3.so(NSS_3.30)(64bit)',
  294. + 'libnss3.so(NSS_3.4)(64bit)',
  295. + 'libnss3.so(NSS_3.5)(64bit)',
  296. + 'libnss3.so(NSS_3.9.2)(64bit)',
  297. + 'libnssutil3.so()(64bit)',
  298. + 'libnssutil3.so(NSSUTIL_3.12.3)(64bit)',
  299. + 'libpango-1.0.so.0()(64bit)',
  300. + 'libpthread.so.0()(64bit)',
  301. + 'libpthread.so.0(GLIBC_2.17)(64bit)',
  302. + 'libpthread.so.0(GLIBC_2.2.5)(64bit)',
  303. + 'libpthread.so.0(GLIBC_2.3.2)(64bit)',
  304. + 'libpthread.so.0(GLIBC_2.3.3)(64bit)',
  305. + 'libsmime3.so()(64bit)',
  306. + 'libsmime3.so(NSS_3.10)(64bit)',
  307. + 'libsmime3.so(NSS_3.2)(64bit)',
  308. + 'libssl3.so(NSS_3.28)(64bit)',
  309. + 'libstdc++.so.6()(64bit)',
  310. + 'libstdc++.so.6(CXXABI_1.3)(64bit)',
  311. + 'libstdc++.so.6(CXXABI_1.3.5)(64bit)',
  312. + 'libstdc++.so.6(CXXABI_1.3.8)(64bit)',
  313. + 'libstdc++.so.6(CXXABI_1.3.9)(64bit)',
  314. + 'libstdc++.so.6(GLIBCXX_3.4)(64bit)',
  315. + 'libstdc++.so.6(GLIBCXX_3.4.11)(64bit)',
  316. + 'libstdc++.so.6(GLIBCXX_3.4.14)(64bit)',
  317. + 'libstdc++.so.6(GLIBCXX_3.4.15)(64bit)',
  318. + 'libstdc++.so.6(GLIBCXX_3.4.18)(64bit)',
  319. + 'libstdc++.so.6(GLIBCXX_3.4.19)(64bit)',
  320. + 'libstdc++.so.6(GLIBCXX_3.4.20)(64bit)',
  321. + 'libstdc++.so.6(GLIBCXX_3.4.21)(64bit)',
  322. + 'libstdc++.so.6(GLIBCXX_3.4.22)(64bit)',
  323. + 'libstdc++.so.6(GLIBCXX_3.4.5)(64bit)',
  324. + 'libstdc++.so.6(GLIBCXX_3.4.9)(64bit)',
  325. + 'libutil.so.1()(64bit)',
  326. + 'libutil.so.1(GLIBC_2.2.5)(64bit)',
  327. + 'libxcb.so.1()(64bit)',
  328. + 'libxkbcommon.so.0()(64bit)',
  329. + 'libxkbcommon.so.0(V_0.5.0)(64bit)',
  330. + 'libxkbfile.so.1()(64bit)',
  331. + 'rpmlib(FileDigests) <= 4.6.0-1',
  332. + 'rtld(GNU_HASH)',
  333. + 'xdg-utils'
  334. ]
  335. diff --git a/build/linux/rpm/types.js b/build/linux/rpm/types.js
  336. index 99a8cff..e2f3548 100644
  337. --- a/build/linux/rpm/types.js
  338. +++ b/build/linux/rpm/types.js
  339. @@ -8,3 +8,3 @@ exports.isRpmArchString = isRpmArchString;
  340. function isRpmArchString(s) {
  341. - return ['x86_64', 'armv7hl', 'aarch64', 'ppc64le', 'riscv64'].includes(s);
  342. + return ['x86_64', 'armv7hl', 'aarch64', 'ppc64le', 'riscv64', 's390x'].includes(s);
  343. }
  344. diff --git a/build/linux/rpm/types.ts b/build/linux/rpm/types.ts
  345. index d94537e..3834b94 100644
  346. --- a/build/linux/rpm/types.ts
  347. +++ b/build/linux/rpm/types.ts
  348. @@ -5,6 +5,6 @@
  349. -export type RpmArchString = 'x86_64' | 'armv7hl' | 'aarch64' | 'ppc64le' | 'riscv64';
  350. +export type RpmArchString = 'x86_64' | 'armv7hl' | 'aarch64' | 'ppc64le' | 'riscv64' | 's390x';
  351. export function isRpmArchString(s: string): s is RpmArchString {
  352. - return ['x86_64', 'armv7hl', 'aarch64', 'ppc64le', 'riscv64'].includes(s);
  353. + return ['x86_64', 'armv7hl', 'aarch64', 'ppc64le', 'riscv64', 's390x'].includes(s);
  354. }
  355. diff --git a/resources/server/bin/helpers/check-requirements-linux.sh b/resources/server/bin/helpers/check-requirements-linux.sh
  356. index 0b7aa4e..e8b7ce0 100644
  357. --- a/resources/server/bin/helpers/check-requirements-linux.sh
  358. +++ b/resources/server/bin/helpers/check-requirements-linux.sh
  359. @@ -58,2 +58,3 @@ case $ARCH in
  360. loongarch64) LDCONFIG_ARCH="double-float";;
  361. + s390x) LDCONFIG_ARCH="64bit";;
  362. esac
  363. diff --git a/src/vs/platform/extensionManagement/common/extensionManagement.ts b/src/vs/platform/extensionManagement/common/extensionManagement.ts
  364. index 1a0decd..e657203 100644
  365. --- a/src/vs/platform/extensionManagement/common/extensionManagement.ts
  366. +++ b/src/vs/platform/extensionManagement/common/extensionManagement.ts
  367. @@ -47,2 +47,3 @@ export function TargetPlatformToString(targetPlatform: TargetPlatform) {
  368. case TargetPlatform.LINUX_LOONG64: return 'Linux Loong64';
  369. + case TargetPlatform.LINUX_S390X: return 'Linux S390X';
  370. @@ -73,2 +74,3 @@ export function toTargetPlatform(targetPlatform: string): TargetPlatform {
  371. case TargetPlatform.LINUX_LOONG64: return TargetPlatform.LINUX_LOONG64;
  372. + case TargetPlatform.LINUX_S390X: return TargetPlatform.LINUX_S390X;
  373. @@ -117,2 +119,5 @@ export function getTargetPlatform(platform: Platform | 'alpine', arch: string |
  374. }
  375. + if (arch === 's390x') {
  376. + return TargetPlatform.LINUX_S390X;
  377. + }
  378. return TargetPlatform.UNKNOWN;
  379. diff --git a/src/vs/platform/extensions/common/extensions.ts b/src/vs/platform/extensions/common/extensions.ts
  380. index 3eb0412..4b5b29b 100644
  381. --- a/src/vs/platform/extensions/common/extensions.ts
  382. +++ b/src/vs/platform/extensions/common/extensions.ts
  383. @@ -322,2 +322,3 @@ export const enum TargetPlatform {
  384. LINUX_LOONG64 = 'linux-loong64',
  385. + LINUX_S390X = 'linux-s390x',