forked from pool/element-desktop
Fix build on 15.6
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=77
This commit is contained in:
parent
f98b8cadbd
commit
e994532924
@ -31,6 +31,7 @@ Patch0: hak-remove-devdependencies.patch
|
||||
Patch1: 7za-path.patch
|
||||
Patch2: cc-link-lib-no-static.patch
|
||||
Patch3: remove-fuses.patch
|
||||
Patch4: no-walrus-operator.patch
|
||||
BuildRequires: element-web = %{version}
|
||||
BuildRequires: app-builder
|
||||
BuildRequires: cargo
|
||||
|
24
no-walrus-operator.patch
Normal file
24
no-walrus-operator.patch
Normal file
@ -0,0 +1,24 @@
|
||||
--- foo/node_modules/node-gyp/gyp/pylib/gyp/common.py 2024-09-26 12:47:30.529999000 +0200
|
||||
+++ ./common.py 2024-09-26 22:52:44.247875969 +0200
|
||||
@@ -432,13 +432,17 @@
|
||||
def replace_sep(s):
|
||||
return s.replace(os.sep, "/") if os.sep != "/" else s
|
||||
|
||||
- if CC := os.environ.get("CC_target") or os.environ.get("CC"):
|
||||
+ CC = os.environ.get("CC_target") or os.environ.get("CC")
|
||||
+ CXX = os.environ.get("CXX_target") or os.environ.get("CXX")
|
||||
+ CFLAGS = os.environ.get("CFLAGS")
|
||||
+ CXXFLAGS = os.environ.get("CXXFLAGS")
|
||||
+ if CC:
|
||||
cmd += shlex.split(replace_sep(CC))
|
||||
- if CFLAGS := os.environ.get("CFLAGS"):
|
||||
+ if CFLAGS:
|
||||
cmd += shlex.split(replace_sep(CFLAGS))
|
||||
- elif CXX := os.environ.get("CXX_target") or os.environ.get("CXX"):
|
||||
+ elif CXX:
|
||||
cmd += shlex.split(replace_sep(CXX))
|
||||
- if CXXFLAGS := os.environ.get("CXXFLAGS"):
|
||||
+ if CXXFLAGS:
|
||||
cmd += shlex.split(replace_sep(CXXFLAGS))
|
||||
else:
|
||||
return {}
|
Loading…
x
Reference in New Issue
Block a user