From 96e1bac04c6a1cf2c0320907fc3412c38c672ecd Mon Sep 17 00:00:00 2001 From: Sergey Chernyshev Date: Wed, 24 Apr 2024 23:39:15 +0200 Subject: [PATCH] build: fix IBM i build with Python 3.9 Python 3.9 on IBM i returns "os400" for `sys.platform`. PR-URL: https://github.com/nodejs/node/pull/48056 Refs: https://github.com/nodejs/node/pull/46739 Refs: https://github.com/nodejs/build/pull/3358 Reviewed-By: Moshe Atlow Reviewed-By: Michael Dawson Reviewed-By: Luigi Pinca --- graal-nodejs/deps/openssl/openssl-cl_asm.gypi | 2 +- graal-nodejs/deps/openssl/openssl-cl_asm_avx2.gypi | 2 +- graal-nodejs/deps/openssl/openssl-cl_no_asm.gypi | 2 +- graal-nodejs/deps/openssl/openssl-fips_asm.gypi | 2 +- graal-nodejs/deps/openssl/openssl-fips_asm_avx2.gypi | 2 +- graal-nodejs/deps/openssl/openssl-fips_no_asm.gypi | 2 +- graal-nodejs/deps/openssl/openssl_asm.gypi | 2 +- graal-nodejs/deps/openssl/openssl_asm_avx2.gypi | 2 +- graal-nodejs/deps/openssl/openssl_common.gypi | 2 +- graal-nodejs/deps/openssl/openssl_no_asm.gypi | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/graal-nodejs/deps/openssl/openssl-cl_asm.gypi b/graal-nodejs/deps/openssl/openssl-cl_asm.gypi index 8791e005bf0..cd10355c171 100644 --- a/graal-nodejs/deps/openssl/openssl-cl_asm.gypi +++ b/graal-nodejs/deps/openssl/openssl-cl_asm.gypi @@ -1,6 +1,6 @@ { 'conditions': [ - ['target_arch=="ppc64" and OS=="aix"', { + ['target_arch=="ppc64" and OS in ("aix", "os400")', { 'includes': ['config/archs/aix64-gcc-as/asm/openssl-cl.gypi'], }, 'target_arch=="ppc64" and OS=="linux" and node_byteorder =="little"', { 'includes': ['config/archs/linux-ppc64le/asm/openssl-cl.gypi'], diff --git a/graal-nodejs/deps/openssl/openssl-cl_asm_avx2.gypi b/graal-nodejs/deps/openssl/openssl-cl_asm_avx2.gypi index 81559867677..50b5a9c375b 100644 --- a/graal-nodejs/deps/openssl/openssl-cl_asm_avx2.gypi +++ b/graal-nodejs/deps/openssl/openssl-cl_asm_avx2.gypi @@ -1,6 +1,6 @@ { 'conditions': [ - ['target_arch=="ppc64" and OS=="aix"', { + ['target_arch=="ppc64" and OS in ("aix", "os400")', { 'includes': ['config/archs/aix64-gcc-as/asm_avx2/openssl-cl.gypi'], }, 'target_arch=="ppc64" and OS=="linux" and node_byteorder =="little"', { 'includes': ['config/archs/linux-ppc64le/asm_avx2/openssl-cl.gypi'], diff --git a/graal-nodejs/deps/openssl/openssl-cl_no_asm.gypi b/graal-nodejs/deps/openssl/openssl-cl_no_asm.gypi index 22bcf1c3c77..0964fb36739 100644 --- a/graal-nodejs/deps/openssl/openssl-cl_no_asm.gypi +++ b/graal-nodejs/deps/openssl/openssl-cl_no_asm.gypi @@ -1,6 +1,6 @@ { 'conditions': [ - ['target_arch=="ppc64" and OS=="aix"', { + ['target_arch=="ppc64" and OS in ("aix", "os400")', { 'includes': ['config/archs/aix64-gcc-as/no-asm/openssl-cl.gypi'], }, 'target_arch=="ppc64" and OS=="linux" and node_byteorder =="little"', { 'includes': ['config/archs/linux-ppc64le/no-asm/openssl-cl.gypi'], diff --git a/graal-nodejs/deps/openssl/openssl-fips_asm.gypi b/graal-nodejs/deps/openssl/openssl-fips_asm.gypi index d0717df2a50..631df9eb893 100644 --- a/graal-nodejs/deps/openssl/openssl-fips_asm.gypi +++ b/graal-nodejs/deps/openssl/openssl-fips_asm.gypi @@ -1,6 +1,6 @@ { 'conditions': [ - ['target_arch=="ppc64" and OS=="aix"', { + ['target_arch=="ppc64" and OS in ("aix", "os400")', { 'includes': ['config/archs/aix64-gcc-as/asm/openssl-fips.gypi'], }, 'target_arch=="ppc64" and OS=="linux" and node_byteorder =="little"', { 'includes': ['config/archs/linux-ppc64le/asm/openssl-fips.gypi'], diff --git a/graal-nodejs/deps/openssl/openssl-fips_asm_avx2.gypi b/graal-nodejs/deps/openssl/openssl-fips_asm_avx2.gypi index d2a2a4bc114..4d63cacf29d 100644 --- a/graal-nodejs/deps/openssl/openssl-fips_asm_avx2.gypi +++ b/graal-nodejs/deps/openssl/openssl-fips_asm_avx2.gypi @@ -1,6 +1,6 @@ { 'conditions': [ - ['target_arch=="ppc64" and OS=="aix"', { + ['target_arch=="ppc64" and OS in ("aix", "os400")', { 'includes': ['config/archs/aix64-gcc-as/asm_avx2/openssl-fips.gypi'], }, 'target_arch=="ppc64" and OS=="linux" and node_byteorder =="little"', { 'includes': ['config/archs/linux-ppc64le/asm_avx2/openssl-fips.gypi'], diff --git a/graal-nodejs/deps/openssl/openssl-fips_no_asm.gypi b/graal-nodejs/deps/openssl/openssl-fips_no_asm.gypi index d598bde68c7..7fdfd772abb 100644 --- a/graal-nodejs/deps/openssl/openssl-fips_no_asm.gypi +++ b/graal-nodejs/deps/openssl/openssl-fips_no_asm.gypi @@ -1,7 +1,7 @@ { 'defines': ['OPENSSL_NO_ASM'], 'conditions': [ - ['target_arch=="ppc64" and OS=="aix"', { + ['target_arch=="ppc64" and OS in ("aix", "os400")', { 'includes': ['config/archs/aix64-gcc-as/no-asm/openssl-fips.gypi'], }, 'target_arch=="ppc64" and OS=="linux" and node_byteorder =="little"', { 'includes': ['config/archs/linux-ppc64le/no-asm/openssl-fips.gypi'], diff --git a/graal-nodejs/deps/openssl/openssl_asm.gypi b/graal-nodejs/deps/openssl/openssl_asm.gypi index e10cfbc1318..3ee883e5489 100644 --- a/graal-nodejs/deps/openssl/openssl_asm.gypi +++ b/graal-nodejs/deps/openssl/openssl_asm.gypi @@ -1,6 +1,6 @@ { 'conditions': [ - ['target_arch=="ppc64" and OS=="aix"', { + ['target_arch=="ppc64" and OS in ("aix", "os400")', { 'includes': ['config/archs/aix64-gcc-as/asm/openssl.gypi'], }, 'target_arch=="ppc64" and OS=="linux" and node_byteorder =="little"', { 'includes': ['config/archs/linux-ppc64le/asm/openssl.gypi'], diff --git a/graal-nodejs/deps/openssl/openssl_asm_avx2.gypi b/graal-nodejs/deps/openssl/openssl_asm_avx2.gypi index a2965b0bbc5..948015fe475 100644 --- a/graal-nodejs/deps/openssl/openssl_asm_avx2.gypi +++ b/graal-nodejs/deps/openssl/openssl_asm_avx2.gypi @@ -1,6 +1,6 @@ { 'conditions': [ - ['target_arch=="ppc64" and OS=="aix"', { + ['target_arch=="ppc64" and OS in ("aix", "os400")', { 'includes': ['config/archs/aix64-gcc-as/asm_avx2/openssl.gypi'], }, 'target_arch=="ppc64" and OS=="linux" and node_byteorder =="little"', { 'includes': ['config/archs/linux-ppc64le/asm_avx2/openssl.gypi'], diff --git a/graal-nodejs/deps/openssl/openssl_common.gypi b/graal-nodejs/deps/openssl/openssl_common.gypi index 256eb7d1808..1290fff251f 100644 --- a/graal-nodejs/deps/openssl/openssl_common.gypi +++ b/graal-nodejs/deps/openssl/openssl_common.gypi @@ -13,7 +13,7 @@ ], # build options specific to OS 'conditions': [ - [ 'OS=="aix"', { + [ 'OS in ("aix", "os400")', { # AIX is missing /usr/include/endian.h 'defines': [ '__LITTLE_ENDIAN=1234', diff --git a/graal-nodejs/deps/openssl/openssl_no_asm.gypi b/graal-nodejs/deps/openssl/openssl_no_asm.gypi index de0e486f67e..20663decabb 100644 --- a/graal-nodejs/deps/openssl/openssl_no_asm.gypi +++ b/graal-nodejs/deps/openssl/openssl_no_asm.gypi @@ -1,7 +1,7 @@ { 'defines': ['OPENSSL_NO_ASM'], 'conditions': [ - ['target_arch=="ppc64" and OS=="aix"', { + ['target_arch=="ppc64" and OS in ("aix", "os400")', { 'includes': ['config/archs/aix64-gcc-as/no-asm/openssl.gypi'], }, 'target_arch=="ppc64" and OS=="linux" and node_byteorder =="little"', { 'includes': ['config/archs/linux-ppc64le/no-asm/openssl.gypi'],