* Ricardo Mones <mo...@debian.org>, 2011-10-14, 11:57:
The only fix I can figure out now is replacing the python-dev dependency of the by a pythonX.Y-dev dependency generated at build time. Better ideas welcome, of course.

How about this patch? (Untested, sorry.)

--
Jakub Wilk
diff -Nru claws-mail-extra-plugins-3.7.10/debian/control claws-mail-extra-plugins-3.7.10/debian/control
--- claws-mail-extra-plugins-3.7.10/debian/control	2011-08-30 01:56:14.000000000 +0200
+++ claws-mail-extra-plugins-3.7.10/debian/control	2011-10-14 12:14:47.000000000 +0200
@@ -256,7 +256,7 @@
 Package: claws-mail-python-plugin
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends},
- claws-mail (>= ${Claws-Version}), claws-mail (<= ${Claws-Last}), python-dev
+ claws-mail (>= ${Claws-Version}), claws-mail (<= ${Claws-Last})
 Description: Python plugin and console for Claws Mail
  This plugin offers a Python scripting access to Claws Mail.
  .
diff -Nru claws-mail-extra-plugins-3.7.10/debian/patches/dont-dlopen-libpython-so-symlink.diff claws-mail-extra-plugins-3.7.10/debian/patches/dont-dlopen-libpython-so-symlink.diff
--- claws-mail-extra-plugins-3.7.10/debian/patches/dont-dlopen-libpython-so-symlink.diff	1970-01-01 01:00:00.000000000 +0100
+++ claws-mail-extra-plugins-3.7.10/debian/patches/dont-dlopen-libpython-so-symlink.diff	2011-10-14 12:19:17.000000000 +0200
@@ -0,0 +1,30 @@
+Description: Don't dlopen libpython2.X.so symlink.
+ Don't dlopen libpython2.X.so symlink, but the real file it's pointing to.
+ Python libraries never break ABI between major releases, so hardcoding
+ SOVERSION is safe here.
+Bug-Debian: http://bugs.debian.org/644582
+Author: Jakub Wilk <jw...@debian.org>
+Last-Update: 2011-10-14
+
+--- a/python_plugin-0.8/configure.ac
++++ b/python_plugin-0.8/configure.ac
+@@ -110,7 +110,7 @@
+     fi
+ 
+     # libpython.so
+-    PYTHON_SHARED_LIB="libpython${PYTHON_VERSION}.so"
++    PYTHON_SHARED_LIB="libpython${PYTHON_VERSION}.so.1"
+ 	found_libpython_so="no"
+ 	if test -f "$PYTHON_PREFIX/lib/$PYTHON_SHARED_LIB"; then
+ 		found_libpython_so="yes"
+--- a/python_plugin-0.8/configure
++++ b/python_plugin-0.8/configure
+@@ -14315,7 +14315,7 @@
+     fi
+ 
+     # libpython.so
+-    PYTHON_SHARED_LIB="libpython${PYTHON_VERSION}.so"
++    PYTHON_SHARED_LIB="libpython${PYTHON_VERSION}.so.1"
+ 	found_libpython_so="no"
+ 	if test -f "$PYTHON_PREFIX/lib/$PYTHON_SHARED_LIB"; then
+ 		found_libpython_so="yes"
diff -Nru claws-mail-extra-plugins-3.7.10/debian/patches/series claws-mail-extra-plugins-3.7.10/debian/patches/series
--- claws-mail-extra-plugins-3.7.10/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ claws-mail-extra-plugins-3.7.10/debian/patches/series	2011-10-14 12:15:29.000000000 +0200
@@ -0,0 +1 @@
+dont-dlopen-libpython-so-symlink.diff

Reply via email to