Hi,

Sandro Tosi also gave this some thought and asked me to forward the attached patch, which might contain some changes that might, in addition to Barry's, be interesting. I did not test them myself, though, but a potential NMUer might want to consider them.

Kind regards

T.
--- jppy-0.0.43.orig/jpilot_plugins/jppy.c
+++ jppy-0.0.43/jpilot_plugins/jppy.c
@@ -207,12 +207,12 @@
   jp_init();
   jp_logf(JP_LOG_INFO, "jppy: Starting...\n");
 
-  if (!dlopen (PYTHON_SHARED_LIB, RTLD_NOW | RTLD_GLOBAL)) {
-    jp_logf(JP_LOG_FATAL, "\n%s\n", dlerror());
-    python_is_working = 0;
-    return 0;
-  }
-  jp_logf(JP_LOG_DEBUG, "jppy: Opened python library\n");
+//  if (!dlopen (PYTHON_SHARED_LIB, RTLD_NOW | RTLD_GLOBAL)) {
+//   jp_logf(JP_LOG_FATAL, "\n%s\n", dlerror());
+//   python_is_working = 0;
+//   return 0;
+// }
+// jp_logf(JP_LOG_DEBUG, "jppy: Opened python library\n");
   
   Py_SetProgramName("jpilot");
   Py_Initialize();
--- jppy-0.0.43.orig/SConstruct
+++ jppy-0.0.43/SConstruct
@@ -40,8 +40,8 @@
 opts.Add(BoolOption('profile','Do you want compile with profiling?','no'))
 
 env = Environment(options=opts,
-                  CCFLAGS=['-g',
-                           '-DPYTHON_SHARED_LIB=\\"${python_version}\\"'],
+                  CCFLAGS=['-g'],
+#                           '-DPYTHON_SHARED_LIB=\\"${python_version}\\"'],
                   LINKFLAGS=['-L$pisock_library'],
 #                             
distutils.sysconfig.get_config_var('LINKFORSHARED')],
 #                             '-lpython%s' % sys.version[0:3]],

Reply via email to