Control: tags -1 patch

On Tue, Apr 12, 2022 at 10:55:44PM +0200, Sebastiaan Couwenberg wrote:
> On 4/12/22 20:23, Lucas Nussbaum wrote:
> > > checking for python script directory (pythondir)... 
> > > ${PYTHON_PREFIX}/lib/python3.10/site-packages
> > > checking for python extension module directory (pyexecdir)... 
> > > ${PYTHON_EXEC_PREFIX}/lib/python3.10/site-packages
> > > checking for python3.10... (cached) /usr/bin/python3
> > > checking for a version of Python >= '2.1.0'... yes
> > > checking for the distutils Python package... no
> > > configure: error: cannot import Python module "distutils".
> > > Please check your Python installation. The error was:
> > > <string>:1: DeprecationWarning: The distutils package is deprecated and 
> > > slated for removal in Python 3.12. Use setuptools or check PEP 632 for 
> > > potential alternatives
> 
> Johan can you fix this (upstream)?
>...

The minimal fix of silencing the deprecation warning is attached.

> Kind Regards,
> 
> Bas

cu
Adrian
Description: Silence the distutils deprecation message that caused FTBFS
Author: Adrian Bunk <b...@debian.org>
Bug-Debian: https://bugs.debian.org/1009417

--- saga-7.3.0+dfsg.orig/m4/ax_python_devel.m4
+++ saga-7.3.0+dfsg/m4/ax_python_devel.m4
@@ -136,7 +136,7 @@ variable to configure. See ``configure -
 	# Check if you have distutils, else fail
 	#
 	AC_MSG_CHECKING([for the distutils Python package])
-	ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
+	ac_distutils_result=`$PYTHON -c "import distutils" 2>/dev/null`
 	if test -z "$ac_distutils_result"; then
 		AC_MSG_RESULT([yes])
 	else

Reply via email to