File python-distutils-deprecated.patch of Package pocketsphinx5

Index: pocketsphinx-5~git20200227.e40da77/m4/ax_python_devel.m4
===================================================================
--- pocketsphinx-5~git20200227.e40da77.orig/m4/ax_python_devel.m4
+++ pocketsphinx-5~git20200227.e40da77/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 warnings; warnings.simplefilter('ignore'); import distutils" 2>&1`
 	if test -z "$ac_distutils_result"; then
 		AC_MSG_RESULT([yes])
 	else
openSUSE Build Service is sponsored by