Adam Majer
c1a219c943
For overview of changes and details since 21.x and earlier see https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V22.md#22.1.0 - Imported patches from 21.x: * cares_public_headers.patch * fix_ci_tests.patch * flaky_test_rerun.patch * gcc13.patch * legacy_python.patch * linker_lto_jobs.patch * manual_configure.patch * node-gyp-addon-gypi.patch * node-gyp-config.patch * nodejs-libpath.patch * npm_search_paths.patch * openssl_binary_detection.patch * qemu_timeouts_arches.patch * skip_no_console.patch * sle12_python3_compat.patch * test-skip-y2038-on-32bit-time_t.patch * versioned.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs22?expand=0&rev=1
36 lines
1.6 KiB
Diff
36 lines
1.6 KiB
Diff
Index: node-v19.1.0/configure
|
|
===================================================================
|
|
--- node-v19.1.0.orig/configure
|
|
+++ node-v19.1.0/configure
|
|
@@ -23,7 +23,7 @@ except ImportError:
|
|
from distutils.spawn import find_executable as which
|
|
|
|
print('Node.js configure: Found Python {}.{}.{}...'.format(*sys.version_info))
|
|
-acceptable_pythons = ((3, 11), (3, 10), (3, 9), (3, 8), (3, 7), (3, 6))
|
|
+acceptable_pythons = ((3, 11), (3, 10), (3, 9), (3, 8), (3, 7), (3, 6), (3, 4))
|
|
if sys.version_info[:2] in acceptable_pythons:
|
|
import configure
|
|
else:
|
|
Index: node-v19.1.0/deps/npm/node_modules/node-gyp/lib/find-python.js
|
|
===================================================================
|
|
--- node-v19.1.0.orig/deps/npm/node_modules/node-gyp/lib/find-python.js
|
|
+++ node-v19.1.0/deps/npm/node_modules/node-gyp/lib/find-python.js
|
|
@@ -15,7 +15,7 @@ const programFiles = process.env.Program
|
|
const programFilesX86 = process.env['ProgramFiles(x86)'] || `${programFiles} (x86)`
|
|
|
|
const winDefaultLocationsArray = []
|
|
-for (const majorMinor of ['39', '38', '37', '36']) {
|
|
+for (const majorMinor of ['39', '38', '37', '36', '34']) {
|
|
if (foundLocalAppData) {
|
|
winDefaultLocationsArray.push(
|
|
`${localAppData}\\Programs\\Python\\Python${majorMinor}\\python.exe`,
|
|
@@ -49,7 +49,7 @@ PythonFinder.prototype = {
|
|
log: logWithPrefix(log, 'find Python'),
|
|
argsExecutable: ['-c', 'import sys; print(sys.executable);'],
|
|
argsVersion: ['-c', 'import sys; print("%s.%s.%s" % sys.version_info[:3]);'],
|
|
- semverRange: '>=3.6.0',
|
|
+ semverRange: '>=3.4.0',
|
|
|
|
// These can be overridden for testing:
|
|
execFile: cp.execFile,
|