mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-11 16:27:18 +10:00
305 lines
13 KiB
Diff
305 lines
13 KiB
Diff
diff --git a/build/azure-pipelines/linux/setup-env.sh b/build/azure-pipelines/linux/setup-env.sh
|
|
index b98ce1e..c078682 100755
|
|
--- a/build/azure-pipelines/linux/setup-env.sh
|
|
+++ b/build/azure-pipelines/linux/setup-env.sh
|
|
@@ -88,2 +88,14 @@ elif [ "$npm_config_arch" == "ppc64" ]; then
|
|
export VSCODE_REMOTE_LDFLAGS="--sysroot=$VSCODE_REMOTE_SYSROOT_DIR/powerpc64le-linux-gnu/powerpc64le-linux-gnu/sysroot -L$VSCODE_REMOTE_SYSROOT_DIR/powerpc64le-linux-gnu/powerpc64le-linux-gnu/sysroot/usr/lib/powerpc64le-linux-gnu -L$VSCODE_REMOTE_SYSROOT_DIR/powerpc64le-linux-gnu/powerpc64le-linux-gnu/sysroot/lib/powerpc64le-linux-gnu"
|
|
+elif [ "$npm_config_arch" == "s390x" ]; then
|
|
+ # Set compiler toolchain for client native modules
|
|
+ export CC=$VSCODE_CLIENT_SYSROOT_DIR/s390x-linux-gnu/bin/s390x-linux-gnu-gcc
|
|
+ export CXX=$VSCODE_CLIENT_SYSROOT_DIR/s390x-linux-gnu/bin/s390x-linux-gnu-g++
|
|
+ export CXXFLAGS="--sysroot=$VSCODE_CLIENT_SYSROOT_DIR/s390x-linux-gnu/s390x-linux-gnu/sysroot"
|
|
+ export LDFLAGS="--sysroot=$VSCODE_CLIENT_SYSROOT_DIR/s390x-linux-gnu/s390x-linux-gnu/sysroot -L$VSCODE_CLIENT_SYSROOT_DIR/s390x-linux-gnu/s390x-linux-gnu/sysroot/usr/lib/s390x-linux-gnu -L$VSCODE_CLIENT_SYSROOT_DIR/s390x-linux-gnu/s390x-linux-gnu/sysroot/lib/s390x-linux-gnu"
|
|
+
|
|
+ # Set compiler toolchain for remote server
|
|
+ export VSCODE_REMOTE_CC=$VSCODE_REMOTE_SYSROOT_DIR/s390x-linux-gnu/bin/s390x-linux-gnu-gcc
|
|
+ export VSCODE_REMOTE_CXX=$VSCODE_REMOTE_SYSROOT_DIR/s390x-linux-gnu/bin/s390x-linux-gnu-g++
|
|
+ export VSCODE_REMOTE_CXXFLAGS="--sysroot=$VSCODE_REMOTE_SYSROOT_DIR/s390x-linux-gnu/s390x-linux-gnu/sysroot"
|
|
+ export VSCODE_REMOTE_LDFLAGS="--sysroot=$VSCODE_REMOTE_SYSROOT_DIR/s390x-linux-gnu/s390x-linux-gnu/sysroot -L$VSCODE_REMOTE_SYSROOT_DIR/s390x-linux-gnu/s390x-linux-gnu/sysroot/usr/lib/s390x-linux-gnu -L$VSCODE_REMOTE_SYSROOT_DIR/s390x-linux-gnu/s390x-linux-gnu/sysroot/lib/s390x-linux-gnu"
|
|
fi
|
|
diff --git a/build/checksums/vscode-sysroot.txt b/build/checksums/vscode-sysroot.txt
|
|
index 3fedbe9..3c4e291 100644
|
|
--- a/build/checksums/vscode-sysroot.txt
|
|
+++ b/build/checksums/vscode-sysroot.txt
|
|
@@ -8 +8,2 @@ f82c8dacbb9dd85819e4801909eb4e842ac12c899632aa75b4839383a18c7501 arm-rpi-linux-
|
|
fa8176d27be18bb0eeb7f55b0fa22255050b430ef68c29136599f02976eb0b1b powerpc64le-linux-gnu-glibc-2.28.tar.gz
|
|
+7055f3d40e7195fb1e13f0fbaf5ffadf781bddaca5fd5e0d9972f4157a203fb5 s390x-linux-gnu-glibc-2.28.tar.gz
|
|
diff --git a/build/gulpfile.reh.ts b/build/gulpfile.reh.ts
|
|
index 74bd1bc..ba46ff2 100644
|
|
--- a/build/gulpfile.reh.ts
|
|
+++ b/build/gulpfile.reh.ts
|
|
@@ -55,2 +55,3 @@ const BUILD_TARGETS = [
|
|
{ platform: 'linux', arch: 'loong64' },
|
|
+ { platform: 'linux', arch: 's390x' },
|
|
{ platform: 'alpine', arch: 'arm64' },
|
|
diff --git a/build/gulpfile.scan.ts b/build/gulpfile.scan.ts
|
|
index e7881de..affa8df 100644
|
|
--- a/build/gulpfile.scan.ts
|
|
+++ b/build/gulpfile.scan.ts
|
|
@@ -27,2 +27,3 @@ const BUILD_TARGETS = [
|
|
{ platform: 'linux', arch: 'loong64' },
|
|
+ { platform: 'linux', arch: 's390x' },
|
|
];
|
|
diff --git a/build/gulpfile.vscode.linux.ts b/build/gulpfile.vscode.linux.ts
|
|
index e146586..ca18865 100644
|
|
--- a/build/gulpfile.vscode.linux.ts
|
|
+++ b/build/gulpfile.vscode.linux.ts
|
|
@@ -35,2 +35,3 @@ function getDebPackageArch(arch: string): string {
|
|
case 'loong64': return 'loong64';
|
|
+ case 's390x': return 's390x';
|
|
default: throw new Error(`Unknown arch: ${arch}`);
|
|
@@ -148,2 +149,3 @@ function getRpmPackageArch(arch: string): string {
|
|
case 'loong64': return 'loong64';
|
|
+ case 's390x': return 's390x';
|
|
default: throw new Error(`Unknown arch: ${arch}`);
|
|
@@ -295,2 +297,3 @@ const BUILD_TARGETS = [
|
|
{ arch: 'loong64' },
|
|
+ { arch: 's390x' },
|
|
];
|
|
diff --git a/build/gulpfile.vscode.ts b/build/gulpfile.vscode.ts
|
|
index cabe16f..2703602 100644
|
|
--- a/build/gulpfile.vscode.ts
|
|
+++ b/build/gulpfile.vscode.ts
|
|
@@ -510,2 +510,3 @@ const BUILD_TARGETS = [
|
|
{ platform: 'linux', arch: 'loong64' },
|
|
+ { platform: 'linux', arch: 's390x' },
|
|
];
|
|
diff --git a/build/linux/debian/calculate-deps.ts b/build/linux/debian/calculate-deps.ts
|
|
index 5503896..dfae87c 100644
|
|
--- a/build/linux/debian/calculate-deps.ts
|
|
+++ b/build/linux/debian/calculate-deps.ts
|
|
@@ -73,2 +73,8 @@ function calculatePackageDeps(binaryPath: string, arch: DebianArchString, chromi
|
|
break;
|
|
+ case 's390x':
|
|
+ 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`);
|
|
+ break;
|
|
}
|
|
diff --git a/build/linux/debian/dep-lists.ts b/build/linux/debian/dep-lists.ts
|
|
index 7ea5910..9498993 100644
|
|
--- a/build/linux/debian/dep-lists.ts
|
|
+++ b/build/linux/debian/dep-lists.ts
|
|
@@ -221,2 +221,42 @@ export const referenceGeneratedDepsByArch = {
|
|
],
|
|
+ 's390x': [
|
|
+ 'ca-certificates',
|
|
+ 'libatomic1',
|
|
+ 'libasound2 (>= 1.0.17)',
|
|
+ 'libatk-bridge2.0-0 (>= 2.5.3)',
|
|
+ 'libatk1.0-0 (>= 2.2.0)',
|
|
+ 'libatspi2.0-0 (>= 2.9.90)',
|
|
+ 'libc6 (>= 2.17)',
|
|
+ 'libc6 (>= 2.28)',
|
|
+ 'libcairo2 (>= 1.6.0)',
|
|
+ 'libcurl3-gnutls | libcurl3-nss | libcurl4 | libcurl3',
|
|
+ 'libdbus-1-3 (>= 1.0.2)',
|
|
+ 'libdrm2 (>= 2.4.60)',
|
|
+ 'libexpat1 (>= 2.0.1)',
|
|
+ 'libgbm1 (>= 17.1.0~rc2)',
|
|
+ 'libglib2.0-0 (>= 2.16.0)',
|
|
+ 'libglib2.0-0 (>= 2.39.4)',
|
|
+ 'libgtk-3-0 (>= 3.9.10)',
|
|
+ 'libgtk-3-0 (>= 3.9.10) | libgtk-4-1',
|
|
+ 'libnspr4 (>= 2:4.9-2~)',
|
|
+ 'libnss3 (>= 2:3.22)',
|
|
+ 'libnss3 (>= 3.26)',
|
|
+ 'libpango-1.0-0 (>= 1.14.0)',
|
|
+ 'libsecret-1-0 (>= 0.18)',
|
|
+ 'libstdc++6 (>= 4.1.1)',
|
|
+ 'libstdc++6 (>= 5)',
|
|
+ 'libstdc++6 (>= 5.2)',
|
|
+ 'libstdc++6 (>= 6)',
|
|
+ 'libx11-6',
|
|
+ 'libx11-6 (>= 2:1.4.99.1)',
|
|
+ 'libxcb1 (>= 1.9.2)',
|
|
+ 'libxcomposite1 (>= 1:0.4.4-1)',
|
|
+ 'libxdamage1 (>= 1:1.1)',
|
|
+ 'libxext6',
|
|
+ 'libxfixes3',
|
|
+ 'libxkbcommon0 (>= 0.4.1)',
|
|
+ 'libxkbfile1',
|
|
+ 'libxrandr2',
|
|
+ 'xdg-utils (>= 1.0.2)'
|
|
+ ],
|
|
};
|
|
diff --git a/build/linux/debian/install-sysroot.ts b/build/linux/debian/install-sysroot.ts
|
|
index 53ff8eb..137f1be 100644
|
|
--- a/build/linux/debian/install-sysroot.ts
|
|
+++ b/build/linux/debian/install-sysroot.ts
|
|
@@ -166,2 +166,6 @@ export async function getVSCodeSysroot(arch: DebianArchString, isMusl: boolean =
|
|
break;
|
|
+ case 's390x':
|
|
+ expectedName = `s390x-linux-gnu${prefix}.tar.gz`;
|
|
+ triple = 's390x-linux-gnu';
|
|
+ break;
|
|
}
|
|
diff --git a/build/linux/debian/types.ts b/build/linux/debian/types.ts
|
|
index 24fe452..9efba5b 100644
|
|
--- a/build/linux/debian/types.ts
|
|
+++ b/build/linux/debian/types.ts
|
|
@@ -5,6 +5,6 @@
|
|
|
|
-export type DebianArchString = 'amd64' | 'armhf' | 'arm64' | 'ppc64el' | 'riscv64';
|
|
+export type DebianArchString = 'amd64' | 'armhf' | 'arm64' | 'ppc64el' | 'riscv64' | 's390x';
|
|
|
|
export function isDebianArchString(s: string): s is DebianArchString {
|
|
- return ['amd64', 'armhf', 'arm64', 'ppc64el', 'riscv64'].includes(s);
|
|
+ return ['amd64', 'armhf', 'arm64', 'ppc64el', 'riscv64', 's390x'].includes(s);
|
|
}
|
|
diff --git a/build/linux/rpm/dep-lists.ts b/build/linux/rpm/dep-lists.ts
|
|
index fba6ee4..33efc80 100644
|
|
--- a/build/linux/rpm/dep-lists.ts
|
|
+++ b/build/linux/rpm/dep-lists.ts
|
|
@@ -416,2 +416,102 @@ export const referenceGeneratedDepsByArch = {
|
|
'xdg-utils'
|
|
+ ],
|
|
+ "s390x": [
|
|
+ 'ca-certificates',
|
|
+ 'ld-linux-x86-64.so.2()(64bit)',
|
|
+ 'ld-linux-x86-64.so.2(GLIBC_2.3)(64bit)',
|
|
+ 'ld64.so.2()(64bit)',
|
|
+ 'ld64.so.2(GLIBC_2.17)(64bit)',
|
|
+ 'libX11.so.6()(64bit)',
|
|
+ 'libXcomposite.so.1()(64bit)',
|
|
+ 'libXdamage.so.1()(64bit)',
|
|
+ 'libXext.so.6()(64bit)',
|
|
+ 'libXfixes.so.3()(64bit)',
|
|
+ 'libXrandr.so.2()(64bit)',
|
|
+ 'libasound.so.2()(64bit)',
|
|
+ 'libasound.so.2(ALSA_0.9)(64bit)',
|
|
+ 'libasound.so.2(ALSA_0.9.0rc4)(64bit)',
|
|
+ 'libatk-1.0.so.0()(64bit)',
|
|
+ 'libatk-bridge-2.0.so.0()(64bit)',
|
|
+ 'libatspi.so.0()(64bit)',
|
|
+ 'libc.so.6()(64bit)',
|
|
+ 'libc.so.6(GLIBC_2.14)(64bit)',
|
|
+ 'libc.so.6(GLIBC_2.17)(64bit)',
|
|
+ 'libc.so.6(GLIBC_2.2.5)(64bit)',
|
|
+ 'libc.so.6(GLIBC_2.28)(64bit)',
|
|
+ 'libc.so.6(GLIBC_2.4)(64bit)',
|
|
+ 'libc.so.6(GLIBC_2.9)(64bit)',
|
|
+ 'libcairo.so.2()(64bit)',
|
|
+ 'libcups.so.2()(64bit)',
|
|
+ 'libcurl.so.4()(64bit)',
|
|
+ 'libdbus-1.so.3()(64bit)',
|
|
+ 'libdbus-1.so.3(LIBDBUS_1_3)(64bit)',
|
|
+ 'libdl.so.2()(64bit)',
|
|
+ 'libdl.so.2(GLIBC_2.17)(64bit)',
|
|
+ 'libdrm.so.2()(64bit)',
|
|
+ 'libexpat.so.1()(64bit)',
|
|
+ 'libgbm.so.1()(64bit)',
|
|
+ 'libgcc_s.so.1()(64bit)',
|
|
+ 'libgcc_s.so.1(GCC_3.0)(64bit)',
|
|
+ 'libgcc_s.so.1(GCC_3.4.4)(64bit)',
|
|
+ 'libgio-2.0.so.0()(64bit)',
|
|
+ 'libglib-2.0.so.0()(64bit)',
|
|
+ 'libgobject-2.0.so.0()(64bit)',
|
|
+ 'libgssapi_krb5.so.2()(64bit)',
|
|
+ 'libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit)',
|
|
+ 'libgtk-3.so.0()(64bit)',
|
|
+ 'libkrb5.so.3()(64bit)',
|
|
+ 'libkrb5.so.3(krb5_3_MIT)(64bit)',
|
|
+ 'libm.so.6()(64bit)',
|
|
+ 'libm.so.6(GLIBC_2.17)(64bit)',
|
|
+ 'libm.so.6(GLIBC_2.2.5)(64bit)',
|
|
+ 'libm.so.6(GLIBC_2.27)(64bit)',
|
|
+ 'libnspr4.so()(64bit)',
|
|
+ 'libnss3.so()(64bit)',
|
|
+ 'libnss3.so(NSS_3.11)(64bit)',
|
|
+ 'libnss3.so(NSS_3.12)(64bit)',
|
|
+ 'libnss3.so(NSS_3.12.1)(64bit)',
|
|
+ 'libnss3.so(NSS_3.2)(64bit)',
|
|
+ 'libnss3.so(NSS_3.22)(64bit)',
|
|
+ 'libnss3.so(NSS_3.3)(64bit)',
|
|
+ 'libnss3.so(NSS_3.30)(64bit)',
|
|
+ 'libnss3.so(NSS_3.4)(64bit)',
|
|
+ 'libnss3.so(NSS_3.5)(64bit)',
|
|
+ 'libnss3.so(NSS_3.9.2)(64bit)',
|
|
+ 'libnssutil3.so()(64bit)',
|
|
+ 'libnssutil3.so(NSSUTIL_3.12.3)(64bit)',
|
|
+ 'libpango-1.0.so.0()(64bit)',
|
|
+ 'libpthread.so.0()(64bit)',
|
|
+ 'libpthread.so.0(GLIBC_2.17)(64bit)',
|
|
+ 'libpthread.so.0(GLIBC_2.2.5)(64bit)',
|
|
+ 'libpthread.so.0(GLIBC_2.3.2)(64bit)',
|
|
+ 'libpthread.so.0(GLIBC_2.3.3)(64bit)',
|
|
+ 'libsmime3.so()(64bit)',
|
|
+ 'libsmime3.so(NSS_3.10)(64bit)',
|
|
+ 'libsmime3.so(NSS_3.2)(64bit)',
|
|
+ 'libssl3.so(NSS_3.28)(64bit)',
|
|
+ 'libstdc++.so.6()(64bit)',
|
|
+ 'libstdc++.so.6(CXXABI_1.3)(64bit)',
|
|
+ 'libstdc++.so.6(CXXABI_1.3.5)(64bit)',
|
|
+ 'libstdc++.so.6(CXXABI_1.3.8)(64bit)',
|
|
+ 'libstdc++.so.6(CXXABI_1.3.9)(64bit)',
|
|
+ 'libstdc++.so.6(GLIBCXX_3.4)(64bit)',
|
|
+ 'libstdc++.so.6(GLIBCXX_3.4.11)(64bit)',
|
|
+ 'libstdc++.so.6(GLIBCXX_3.4.14)(64bit)',
|
|
+ 'libstdc++.so.6(GLIBCXX_3.4.15)(64bit)',
|
|
+ 'libstdc++.so.6(GLIBCXX_3.4.18)(64bit)',
|
|
+ 'libstdc++.so.6(GLIBCXX_3.4.19)(64bit)',
|
|
+ 'libstdc++.so.6(GLIBCXX_3.4.20)(64bit)',
|
|
+ 'libstdc++.so.6(GLIBCXX_3.4.21)(64bit)',
|
|
+ 'libstdc++.so.6(GLIBCXX_3.4.22)(64bit)',
|
|
+ 'libstdc++.so.6(GLIBCXX_3.4.5)(64bit)',
|
|
+ 'libstdc++.so.6(GLIBCXX_3.4.9)(64bit)',
|
|
+ 'libutil.so.1()(64bit)',
|
|
+ 'libutil.so.1(GLIBC_2.2.5)(64bit)',
|
|
+ 'libxcb.so.1()(64bit)',
|
|
+ 'libxkbcommon.so.0()(64bit)',
|
|
+ 'libxkbcommon.so.0(V_0.5.0)(64bit)',
|
|
+ 'libxkbfile.so.1()(64bit)',
|
|
+ 'rpmlib(FileDigests) <= 4.6.0-1',
|
|
+ 'rtld(GNU_HASH)',
|
|
+ 'xdg-utils'
|
|
]
|
|
diff --git a/build/linux/rpm/types.ts b/build/linux/rpm/types.ts
|
|
index d94537e..3834b94 100644
|
|
--- a/build/linux/rpm/types.ts
|
|
+++ b/build/linux/rpm/types.ts
|
|
@@ -5,6 +5,6 @@
|
|
|
|
-export type RpmArchString = 'x86_64' | 'armv7hl' | 'aarch64' | 'ppc64le' | 'riscv64';
|
|
+export type RpmArchString = 'x86_64' | 'armv7hl' | 'aarch64' | 'ppc64le' | 'riscv64' | 's390x';
|
|
|
|
export function isRpmArchString(s: string): s is RpmArchString {
|
|
- return ['x86_64', 'armv7hl', 'aarch64', 'ppc64le', 'riscv64'].includes(s);
|
|
+ return ['x86_64', 'armv7hl', 'aarch64', 'ppc64le', 'riscv64', 's390x'].includes(s);
|
|
}
|
|
diff --git a/resources/server/bin/helpers/check-requirements-linux.sh b/resources/server/bin/helpers/check-requirements-linux.sh
|
|
index 0b7aa4e..e8b7ce0 100644
|
|
--- a/resources/server/bin/helpers/check-requirements-linux.sh
|
|
+++ b/resources/server/bin/helpers/check-requirements-linux.sh
|
|
@@ -58,2 +58,3 @@ case $ARCH in
|
|
loongarch64) LDCONFIG_ARCH="double-float";;
|
|
+ s390x) LDCONFIG_ARCH="64bit";;
|
|
esac
|
|
diff --git a/src/vs/platform/extensionManagement/common/extensionManagement.ts b/src/vs/platform/extensionManagement/common/extensionManagement.ts
|
|
index 7162d83..f6bb8fd 100644
|
|
--- a/src/vs/platform/extensionManagement/common/extensionManagement.ts
|
|
+++ b/src/vs/platform/extensionManagement/common/extensionManagement.ts
|
|
@@ -51,2 +51,3 @@ export function TargetPlatformToString(targetPlatform: TargetPlatform) {
|
|
case TargetPlatform.LINUX_LOONG64: return 'Linux Loong64';
|
|
+ case TargetPlatform.LINUX_S390X: return 'Linux S390X';
|
|
|
|
@@ -77,2 +78,3 @@ export function toTargetPlatform(targetPlatform: string): TargetPlatform {
|
|
case TargetPlatform.LINUX_LOONG64: return TargetPlatform.LINUX_LOONG64;
|
|
+ case TargetPlatform.LINUX_S390X: return TargetPlatform.LINUX_S390X;
|
|
|
|
@@ -121,2 +123,5 @@ export function getTargetPlatform(platform: Platform | 'alpine', arch: string |
|
|
}
|
|
+ if (arch === 's390x') {
|
|
+ return TargetPlatform.LINUX_S390X;
|
|
+ }
|
|
return TargetPlatform.UNKNOWN;
|
|
diff --git a/src/vs/platform/extensions/common/extensions.ts b/src/vs/platform/extensions/common/extensions.ts
|
|
index 51e67ea..a006165 100644
|
|
--- a/src/vs/platform/extensions/common/extensions.ts
|
|
+++ b/src/vs/platform/extensions/common/extensions.ts
|
|
@@ -333,2 +333,3 @@ export const enum TargetPlatform {
|
|
LINUX_LOONG64 = 'linux-loong64',
|
|
+ LINUX_S390X = 'linux-s390x',
|
|
|