Package: util-vserver Version: 0.30.216-pre2864-2 Severity: normal Tags: patch Justification: Policy 9.3.2 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu maverick ubuntu-patch
Hello, In ubuntu we applied this patch: 50fix_python26.patch to fix detection of python directories in the configure-script. And we believe you might be interested in applying it too. Attaching it. Thanks.
## 50_fix_python26.dpatch by Andreas Moog <am...@ubuntu.com> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix detection of python-dirs for python2.6 diff -urNad util-vserver-0.30.216~r2842~/configure util-vserver-0.30.216~r2842/configure --- util-vserver-0.30.216~r2842~/configure 2009-07-11 04:55:42.000000000 +0200 +++ util-vserver-0.30.216~r2842/configure 2009-08-07 01:19:45.721136087 +0200 @@ -25271,8 +25271,14 @@ if test "${am_cv_python_pythondir+set}" = set; then $as_echo_n "(cached) " >&6 else - am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null || - echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"` + if test "x$prefix" = xNONE + then + py_prefix_arg= + else + py_prefix_arg=",prefix='$prefix'" + fi + am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0$py_prefix_arg)" -n -q install $py_prefix_arg 2>/dev/null || + echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"` fi { $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5 $as_echo "$am_cv_python_pythondir" >&6; } @@ -25288,8 +25294,14 @@ if test "${am_cv_python_pyexecdir+set}" = set; then $as_echo_n "(cached) " >&6 else - am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null || - echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"` + if test "x$exec_prefix" = xNONE + then + py_exec_prefix_arg=$py_prefix_arg + else + py_exec_prefix_arg=",prefix='$exec_prefix'" + fi + am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0$py_exec_prefix_arg)" -n -q install $py_exec_prefix_arg 2>/dev/null || + echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"` fi { $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5 $as_echo "$am_cv_python_pyexecdir" >&6; }