build,test: add proper support for IBM i#46510
build,test: add proper support for IBM i#46510dmabupt wants to merge 1 commit intonodejs:mainfrom dmabupt:ibmi_py39
Conversation
|
Review requested:
|
|
I tried to build this on our CI and this is failing on the IBM i instances we have: https://ci.nodejs.org/job/node-test-commit-ibmi/1051/nodes=ibmi73-ppc64/console I can see a difference in the link commands for g++-10 -pthread -Wl,-bbigtoc -maix64 -Wl,-blibpath:/QOpenSys/pkgs/lib:/QOpenSys/usr/lib -Wl,-brtl -o /home/IOJS/build/workspace/node-test-commit-ibmi/nodes/ibmi73-ppc64/out/Release/icupkg /home/IOJS/build/workspace/node-test-commit-ibmi/nodes/ibmi73-ppc64/out/Release/obj.target/icupkg/deps/icu-small/source/tools/icupkg/icupkg.o /home/IOJS/build/workspace/node-test-commit-ibmi/nodes/ibmi73-ppc64/out/Release/obj.target/icupkg/tools/icu/no-op.o /home/IOJS/build/workspace/node-test-commit-ibmi/nodes/ibmi73-ppc64/out/Release/obj.target/tools/icu/libicutools.a with this PR (note the incorrect g++-10 -pthread -Wl,-bbigtoc -maix64 -Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/pthread/ppc64 -o /home/IOJS/build/workspace/node-test-commit-ibmi/nodes/ibmi73-ppc64/out/Release/icupkg /home/IOJS/build/workspace/node-test-commit-ibmi/nodes/ibmi73-ppc64/out/Release/obj.target/icupkg/deps/icu-small/source/tools/icupkg/icupkg.o /home/IOJS/build/workspace/node-test-commit-ibmi/nodes/ibmi73-ppc64/out/Release/obj.target/icupkg/tools/icu/no-op.o /home/IOJS/build/workspace/node-test-commit-ibmi/nodes/ibmi73-ppc64/out/Release/obj.target/tools/icu/libicutools.a |
Python 3.9 on IBM i now properly returns "os400" for sys.platform instead of claiming to be AIX as it did previously. While the IBM i PASE environment is compatible with AIX, it is a subset and has numerous differences which makes it beneficial to distinguish, however this means that it now needs explicit support here.
Yes, I haven't tested it with python 3.6. I just changed the patch to support python 3.6 as well. |
|
IBM i CI run: https://ci.nodejs.org/job/node-test-commit-ibmi/1053/ (FWIW the runs on main currently have failing tests, so this run will likely fail but we're looking to see that the compilation is still successful and the test results are similar to main). |
We should definitely get Python 3.9 installed on the CI systems since Python 3.6 went out of support at the end of 2021. |
|
Oops! I deleted my forked repo (to change the 'master' branch to 'main' to keep align with this) then the PR is closed. I opened a new PR #46739. |
Python 3.9 on IBM i now properly returns "os400" for sys.platform
instead of claiming to be AIX as it did previously. While the IBM i PASE
environment is compatible with AIX, it is a subset and has numerous
differences which makes it beneficial to distinguish, however this means
that it now needs explicit support here.
Related PR: