- 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:
11
break-esbuild-for-good.patch
Normal file
11
break-esbuild-for-good.patch
Normal 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 {
|
@@ -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>
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user