SHA256
1
0
forked from pool/nodejs22

Accepting request 1225344 from devel:languages:nodejs

Fixes build for SLE15

- BuildRequire python311 for SLE15

OBS-URL: https://build.opensuse.org/request/show/1225344
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nodejs22?expand=0&rev=5
This commit is contained in:
Ana Guerrero 2024-11-21 14:13:21 +00:00 committed by Git OBS Bridge
commit 23cf91a32e
3 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,3 @@
mtime: 1731945922 mtime: 1732119982
commit: 3881af0f5a6e053b9069c853358318cf8320efb2fb761781079828ea4737656c commit: 6f7127ad4924a93508fb1987e85f2a104f8eabe566e3cdaeb88af73312e90f9e
url: https://src.opensuse.org/nodejs/nodejs22.git url: https://src.opensuse.org/nodejs/nodejs22.git

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Nov 20 10:04:23 UTC 2024 - Adam Majer <adam.majer@suse.de>
- BuildRequire python311 for SLE15
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 18 12:02:26 UTC 2024 - Adam Majer <adam.majer@suse.de> Mon Nov 18 12:02:26 UTC 2024 - Adam Majer <adam.majer@suse.de>

View File

@ -240,12 +240,19 @@ BuildRequires: gcc-c++
# Python dependencies # Python dependencies
%if %node_version_number >= 14 %if %node_version_number >= 14
%if 0%{?suse_version} && 0%{?suse_version} < 1500 %if 0%{?suse_version}
%if 0%{?suse_version} < 1500
BuildRequires: python36 BuildRequires: python36
%define forced_python_version 3.6m %define forced_python_version 3.6m
%else %endif
%if %{?suse_version} == 1500
BuildRequires: python311
%define forced_python_version 3.11
%endif
%if %{?suse_version} > 1500
BuildRequires: python3 BuildRequires: python3
%endif %endif
%endif
%else %else
%if %node_version_number >= 12 %if %node_version_number >= 12
@ -945,6 +952,7 @@ rm test/parallel/test-strace-openat-openssl.js
%if 0%{?forced_python_version:1} %if 0%{?forced_python_version:1}
sed -i -e "s,'python3','python%{forced_python_version}'," test/parallel/test-child-process-set-blocking.js sed -i -e "s,'python3','python%{forced_python_version}'," test/parallel/test-child-process-set-blocking.js
test -e tools/pseudo-tty.py && sed -i -e "s,^#!/usr/bin/env python3$,#!/usr/bin/python%{forced_python_version}," tools/pseudo-tty.py ||: test -e tools/pseudo-tty.py && sed -i -e "s,^#!/usr/bin/env python3$,#!/usr/bin/python%{forced_python_version}," tools/pseudo-tty.py ||:
export PYTHON="/usr/bin/python%{forced_python_version}"
%endif %endif
ln addon-rpm.gypi deps/npm/node_modules/node-gyp/addon-rpm.gypi ln addon-rpm.gypi deps/npm/node_modules/node-gyp/addon-rpm.gypi