Control: tags 1009240 + patch Control: tags 1009240 + pending Dear maintainer,
I've prepared an NMU for esys-particle (versioned as 2.3.5+dfsg2-4.1) and uploaded it to DELAYED/5. Please feel free to tell me if I should delay it longer. Regards, SR
diff -Nru esys-particle-2.3.5+dfsg2/debian/changelog esys-particle-2.3.5+dfsg2/debian/changelog --- esys-particle-2.3.5+dfsg2/debian/changelog 2022-01-17 11:16:32.000000000 -0400 +++ esys-particle-2.3.5+dfsg2/debian/changelog 2022-04-13 21:24:02.000000000 -0400 @@ -1,3 +1,11 @@ +esys-particle (2.3.5+dfsg2-4.1) unstable; urgency=medium + + * Non-maintainer upload. + * Patch: Don't call Py_Initialize() before Py_Main(), fixing sys.path on + Python 3.10. (Closes: #1009240) + + -- Stefano Rivera <stefa...@debian.org> Wed, 13 Apr 2022 21:24:02 -0400 + esys-particle (2.3.5+dfsg2-4) unstable; urgency=medium * Team upload diff -Nru esys-particle-2.3.5+dfsg2/debian/patches/python-3.10-pyinitialize.patch esys-particle-2.3.5+dfsg2/debian/patches/python-3.10-pyinitialize.patch --- esys-particle-2.3.5+dfsg2/debian/patches/python-3.10-pyinitialize.patch 1969-12-31 20:00:00.000000000 -0400 +++ esys-particle-2.3.5+dfsg2/debian/patches/python-3.10-pyinitialize.patch 2022-04-13 21:23:18.000000000 -0400 @@ -0,0 +1,18 @@ +Description: Don't call Py_Initialize before Py_Main + This is unsupported, and breaks sys.path on Python 3.10. + Since https://github.com/python/cpython/commit/af1d64d9f7a7cf673279725fdbaf4adcca51d41f + See: https://bugs.python.org/issue36204 + See: https://bugs.python.org/issue34008 +Bug-Debian: https://bugs.debian.org/1009240 +Author: Stefano Rivera <stefa...@debian.org> + +--- a/Python/MpiPython/MpiPythonMain.cpp ++++ b/Python/MpiPython/MpiPythonMain.cpp +@@ -48,7 +48,6 @@ + if(myrank==0){ // if rank==0 --> master + // start python + // std::cout << "master start\n"; +- Py_Initialize(); + + #if PY_VERSION_HEX >= 0x03000000 + wchar_t** wargv = new wchar_t*[argc+1]; diff -Nru esys-particle-2.3.5+dfsg2/debian/patches/series esys-particle-2.3.5+dfsg2/debian/patches/series --- esys-particle-2.3.5+dfsg2/debian/patches/series 2022-01-17 11:16:10.000000000 -0400 +++ esys-particle-2.3.5+dfsg2/debian/patches/series 2022-04-13 21:21:00.000000000 -0400 @@ -7,3 +7,4 @@ 07_fix_FTBFS_perl5.26.patch 09_fix_tk9.patch support-python-3.10.patch +python-3.10-pyinitialize.patch