12
0

- Fix build by breakig the bad esbuild library for good

* Add break-esbuild-for-good.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=95
This commit is contained in:
2025-02-02 16:43:00 +00:00
committed by Git OBS Bridge
parent 94c8c93a1c
commit 135d751f6f
3 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
diff -ru a/node_modules/esbuild/install.js b/node_modules/esbuild/install.js
--- a/node_modules/esbuild/install.js 2025-02-01 12:49:52.486000000 +0100
+++ b/node_modules/esbuild/install.js 2025-02-02 17:38:06.877612109 +0100
@@ -94,6 +94,7 @@
var toPath = path2.join(__dirname, "bin", "esbuild");
var isToPathJS = true;
function validateBinaryVersion(...command) {
+ return;
command.push("--version");
let stdout;
try {

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Feb 2 16:41:33 UTC 2025 - Dominik Heidler <dheidler@suse.de>
- Fix build by breakig the bad esbuild library for good
* Add break-esbuild-for-good.patch
-------------------------------------------------------------------
Sat Feb 1 10:50:43 UTC 2025 - Dominik Heidler <dheidler@suse.de>

View File

@@ -32,6 +32,7 @@ Patch1: 7za-path.patch
Patch2: cc-link-lib-no-static.patch
Patch3: remove-fuses.patch
Patch4: no-walrus-operator.patch
Patch5: break-esbuild-for-good.patch
BuildRequires: element-web = %{version}
BuildRequires: app-builder
BuildRequires: cargo
@@ -41,6 +42,7 @@ BuildRequires: jq
BuildRequires: nodejs-electron-devel
BuildRequires: pkgconfig(openssl)
BuildRequires: zstd
#BuildRequires: esbuild
%if 0%{?fedora}
BuildRequires: rust-srpm-macros
%else
@@ -110,6 +112,8 @@ export RUSTC_BOOTSTRAP=1
export RUSTC_LOG='rustc_codegen_ssa::back::link=info'
export RUSTFLAGS="%{build_rustflags} --verbose -Cstrip=none"
export CARGO_TERM_VERBOSE=true
# break esbuild for good - see https://en.opensuse.org/openSUSE:Packaging_Electron#esbuild and Patch5
export ESBUILD_BINARY_PATH=/bin/true
%electron_rebuild