jpy: FTBFS building against python 3.15
Emmanuel Arias <[email protected]>
| Newsgroups | gmane.linux.debian.devel.python |
|---|---|
| Message-ID | <aokZrNRW470ih0gx@debian> |
Package: src:jpy Version: 2.1.0-1 User: [email protected] Usertags: python3.15 Control: forwarded -1 https://github.com/jpy-consortium/jpy/issues/243 ¡Hola! While rebuilding packages against python 3.15 we found that jpy produces some errors when used against it. Some of this caught by the autopkgtest[0]. This is due that some deprecated and removed functions are used: Py_GetProgramName(), Py_GetPrefix(), Py_GetExecPrefix(), Py_GetProgramFullPath(), Py_GetPath(), Py_GetPythonHome() I'm attaching a patch to remove those functions [0] https://debusine.debian.net/debian/r-python-python3.15/artifact/4232006/ -- cheers, Emmanuel Arias ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ [email protected] ⢿⡄⠘⠷⠚⠋⠀ OpenPGP: 13796755BBC72BB8ABE2AEB5 FA9DEC5DE11C63F1 ⠈⠳⣄
0006-Remove-removed-functions-call.patch
(text/x-diff, 1.5 KB)
From: Emmanuel Arias <[email protected]> Date: Sat, 22 Aug 2026 00:45:37 -0300 Subject: Remove removed functions call Remove some functions that was removed from python3.15. Forwarded: https://github.com/jpy-consortium/jpy/issues/243 Author: Emmanuel Arias <[email protected]>x Last-Update: 2026-08-22 --- src/main/c/jni/org_jpy_PyLib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/c/jni/org_jpy_PyLib.c b/src/main/c/jni/org_jpy_PyLib.c index a3e9bff..c2b1dc9 100644 --- a/src/main/c/jni/org_jpy_PyLib.c +++ b/src/main/c/jni/org_jpy_PyLib.c @@ -257,12 +257,14 @@ JNIEXPORT jboolean JNICALL Java_org_jpy_PyLib_startPython0 if (JPy_DiagFlags != 0) { printf("PyLib_startPython: global Python interpreter information:\n"); +#if PY_VERSION_HEX < 0x030F0000 printf(" Py_GetProgramName() = \"%ls\"\n", Py_GetProgramName()); printf(" Py_GetPrefix() = \"%ls\"\n", Py_GetPrefix()); printf(" Py_GetExecPrefix() = \"%ls\"\n", Py_GetExecPrefix()); printf(" Py_GetProgramFullPath() = \"%ls\"\n", Py_GetProgramFullPath()); printf(" Py_GetPath() = \"%ls\"\n", Py_GetPath()); printf(" Py_GetPythonHome() = \"%ls\"\n", Py_GetPythonHome()); +#endif printf(" Py_GetVersion() = \"%s\"\n", Py_GetVersion()); printf(" Py_GetPlatform() = \"%s\"\n", Py_GetPlatform()); printf(" Py_GetCompiler() = \"%s\"\n", Py_GetCompiler());
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEE3lnVbvHK7ir4q61+p3sXeEcY/EFAmqJHyQACgkQ+p3sXeEc Y/G4Lg//U30PQAfhlS1nXJiVcLXnh+bvxJI7smT3fyEyUVjMzheO9/iN0ThphBLU uub+U1s0EKZUiItNS5x8Xb4vEMJmRHWKdKDQjFDJPKD2D+P4upk+888QiCzai/+f 1j3SBpPgWEpzgf2NrBFNQvB4Cky90VivZ40j7HlQcN7fNhx72IHoNm3FOocUlbdn BJbYR6/sDTvEdtw+hTdyIvSTvIYpNGH8fkqErtxI7C1gCuj58xxfVrWq2Igg5I0d tB19loJ7Wzuo9+Tf5G0L8PYDKJhUjsDjvINxu1wbCi/kmfnueL4AicMMYG5aQ2g2 tHStT3KBzTRvyNKK1p8IEwUW8ZSiSaSIbN+sLzg7SqRth9y0QtccsmhP3FK3IcOQ qRb/j8JCMQqhGwt0PaazXVCzJJAqziCzQP9BV2FdODTeUAKPL56h1YZ15J6p2W8O yBBQjpxBbWFx9Zp+nt2EP7RVbS3rzP4P6EdcpoEHNmwWrG2XKMKnOthmayEf9dog Biwv8hNes+TNMSgHVOKvtOQwXmkDM1/HOAI/QQ2v1fV+YkhhSyYx1NCzVOR26xQf SSdJ9HnhVU9wV+tg2sDxD+hli7WFraPR+/pMQ31yq6/FhtredMlctIswZqVmKjw2 cZ6QqvVI0u1BBXmiV1SogVSHLazZ0AnkJWr4s0LAhtjg1NuSB+0= =1rUs -----END PGP SIGNATURE-----