]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Switch linking test function for rlm_python
authorNick Porter <nick@portercomputing.co.uk>
Wed, 4 Dec 2024 08:33:52 +0000 (08:33 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 4 Dec 2024 08:33:52 +0000 (08:33 +0000)
Py_SetProgramName() is deprecated in Python 3.11 - causing the test to
fail.

src/modules/rlm_python/configure
src/modules/rlm_python/configure.ac

index 4823f15a2100d5cf94c5494a7573610873738613..da5642505740f52c10ad22102a1874db84e8c161 100755 (executable)
@@ -3494,7 +3494,7 @@ int
 main (void)
 {
 
-                       Py_SetProgramName("test")
+                       Py_IsInitialized()
 
   ;
   return 0;
index ee30b324d95e4e96cf4d911759da47fff80c4ee7..de7a4a207898a484d6910311e8e8371a083a36c5 100644 (file)
@@ -118,7 +118,7 @@ else
                        #include <Python.h>
                ]],
                [[
-                       Py_SetProgramName("test")
+                       Py_IsInitialized()
                ]])],
                [LINKS="yes"],
                [LINKS="no"]