2
1

libxml2-python2.patch 870 B

123456789101112131415161718192021222324252627
  1. Prefer python2 binary in case python points to python3
  2. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  3. diff -uNr libxml2-2.9.1.org/configure.in libxml2-2.9.1/configure.in
  4. --- libxml2-2.9.1.org/configure.in 2013-04-19 09:25:20.000000000 +0200
  5. +++ libxml2-2.9.1/configure.in 2014-04-12 14:16:26.579361068 +0200
  6. @@ -748,6 +748,11 @@
  7. PYTHON_TESTS=
  8. pythondir=
  9. if test "$with_python" != "no" ; then
  10. + if test -x "$with_python/bin/python2"
  11. + then
  12. + echo Found python2 in $with_python/bin/python2
  13. + PYTHON="$with_python/bin/python2"
  14. + else
  15. if test -x "$with_python/bin/python"
  16. then
  17. echo Found python in $with_python/bin/python
  18. @@ -773,6 +778,7 @@
  19. fi
  20. fi
  21. fi
  22. + fi
  23. if test "$PYTHON" != ""
  24. then
  25. PYTHON_VERSION=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_version())"`