Package: dia Version: 0.97.1-1 Severity: normal Tags: patch Hello,
dia uses LOCALMODLIBS from python for linking. But as LOCALMODLIBS is only intended to be used by the python intrepreter itself and not for application linking against libpython2.6 this will cause a FTBFS as it doesn't find -lssl (libssl-dev is not python2.6-dev's dependencies). This is the case in Ubuntu lucid (dia FTBFS). The attached patch fixes this by removing the use of LOCALMODLIBS. Michael diff -u dia-0.97.1/configure dia-0.97.1/configure --- dia-0.97.1/configure +++ dia-0.97.1/configure @@ -18400,12 +18400,11 @@ py_makefile="${py_config_dir}/Makefile" if test -f "$py_makefile"; then - py_localmodlibs=`sed -n -e 's/^LOCALMODLIBS=\(.*\)/\1/p' $py_makefile` py_basemodlibs=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' $py_makefile` py_other_libs=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $py_makefile` if test -e "${py_config_dir}/libpython${PYTHON_VERSION}.a"; then - PYTHON_LIBS="-L${py_config_dir} -lpython${PYTHON_VERSION} $py_localmodlibs $py_basemodlibs $py_other_libs" + PYTHON_LIBS="-L${py_config_dir} -lpython${PYTHON_VERSION} $py_basemodlibs $py_other_libs" { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 $as_echo "found" >&6; } else --- dia-0.97.1.orig/acinclude.m4 +++ dia-0.97.1/acinclude.m4 @@ -230,13 +230,12 @@ py_makefile="${py_config_dir}/Makefile" if test -f "$py_makefile"; then dnl extra required libs - py_localmodlibs=`sed -n -e 's/^LOCALMODLIBS=\(.*\)/\1/p' $py_makefile` py_basemodlibs=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' $py_makefile` py_other_libs=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $py_makefile` dnl now the actual libpython if test -e "${py_config_dir}/libpython${PYTHON_VERSION}.a"; then - PYTHON_LIBS="-L${py_config_dir} -lpython${PYTHON_VERSION} $py_localmodlibs $py_basemodlibs $py_other_libs" + PYTHON_LIBS="-L${py_config_dir} -lpython${PYTHON_VERSION} $py_basemodlibs $py_other_libs" AC_MSG_RESULT(found) else AC_MSG_RESULT(not found) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org