Processed: Re: Bug#1009417: saga: FTBFS: configure: error: cannot import Python module "distutils".

2022-05-11 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 patch
Bug #1009417 [src:saga] saga: FTBFS: configure: error: cannot import Python 
module "distutils".
Added tag(s) patch.

-- 
1009417: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1009417
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#1009417: saga: FTBFS: configure: error: cannot import Python module "distutils".

2022-05-11 Thread Adrian Bunk
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:
> > > :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 
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


Bug#1009417: saga: FTBFS: configure: error: cannot import Python module "distutils".

2022-04-12 Thread Johan Van de Wauw
I will check.

The mRMR issue has been addressed. I will target a new release (and change
the build system to cmake, as autotools will be deprecated next release).

On Tue, Apr 12, 2022 at 10:55 PM 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:
> >> :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)?
>
> And has the mRMR license issue been addressed upstream to unblock
> updating the package to 8.x?
>
> Kind Regards,
>
> Bas
>
> --
>   GPG Key ID: 4096R/6750F10AE88D4AF1
> Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
>


Bug#1009417: saga: FTBFS: configure: error: cannot import Python module "distutils".

2022-04-12 Thread Sebastiaan Couwenberg

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:
: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)?

And has the mRMR license issue been addressed upstream to unblock 
updating the package to 8.x?


Kind Regards,

Bas

--
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



Bug#1009417: saga: FTBFS: configure: error: cannot import Python module "distutils".

2022-04-12 Thread Lucas Nussbaum
Source: saga
Version: 7.3.0+dfsg-7
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20220412 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> 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:
> :1: DeprecationWarning: The distutils package is deprecated and 
> slated for removal in Python 3.12. Use setuptools or check PEP 632 for 
> potential alternatives
>   tail -v -n \+0 config.log


The full build log is available from:
http://qa-logs.debian.net/2022/04/12/saga_7.3.0+dfsg-7_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220412;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220412&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.