Bug#1064726: 0ad: FTBFS: ImportError: cannot import name 'dist' from 'distutils' (/usr/lib/python3.11/distutils/__init__.py)

2024-03-17 Thread David W. Kennedy

Hi,

I found that adding Build-Depends: python3-distutils solves this 
problem.


The natural question is why did build of 0ad work in the past, but not 
now. I found that python3-distutils was being pulled in only as a side 
effect of one of the dependencies, libsdl2-dev. The build failure is 
caused by the fact that the Debian package of glib2.0 stopped depending 
on python3-distutils as of 23 Jan 2024.


Specifically, libsdl2-dev depends on libibus-1.0-dev, which depends on 
libglib2.0-dev, which depends on libglib2.0-dev-bin, which used to 
depend on python3-distutils, but now depends on python3-packaging. This 
change was made to libglib2.0-dev-bin in version 2.78.3-2 on 23 Jan 
2024.


I've committed the Build-Depends change to Debian Salsa.

Thanks.
--
David W. Kennedy



Bug#1064726: marked as pending in 0ad

2024-03-17 Thread David W. Kennedy
Control: tag -1 pending

Hello,

Bug #1064726 in 0ad reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/games-team/0ad/-/commit/439aeb868f5ea45edc72954699faea61b0b6acff


Fix build failure due to missing distutils (Closes: #1064726)

Fix build failure of embedded mozjs library that displays message
"cannot import name 'dist' from 'distutils'." Cause: dependency
libsdl2-dev stopped indirectly depending on python3-distutils as of 23
Jan 2024. Therefore, add Build-Depends on python3-distutils.
Closes: #1064726


(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1064726



Bug#1064726: marked as pending in 0ad

2024-03-17 Thread David W. Kennedy
Control: tag -1 pending

Hello,

Bug #1064726 in 0ad reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/games-team/0ad/-/commit/439aeb868f5ea45edc72954699faea61b0b6acff


Fix build failure due to missing distutils (Closes: #1064726)

Fix build failure of embedded mozjs library that displays message
"cannot import name 'dist' from 'distutils'." Cause: dependency
libsdl2-dev stopped indirectly depending on python3-distutils as of 23
Jan 2024. Therefore, add Build-Depends on python3-distutils.
Closes: #1064726


(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1064726



Bug#1033175: FTBFS: setup.py install is deprecated

2023-03-18 Thread David W. Kennedy

Package: 0ad
Version: 0.0.26-3
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the 
past)

X-Debbugs-Cc: dav...@reasoned.us

Hello,

When I try to build 0ad version 0.0.26-3 in Debian unstable with 
python3.11 and python3-virtualenv, build fails.


I think that the key error message is 
"/usr/lib/python3/dist-packages/setuptools/command/install.py:34: 
SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build 
and pip and other standards-based tools."


The commands that I use to build the package:

# apt-get update
# apt-get build-dep 0ad
$ apt-get source 0ad
$ cd 0ad-0.0.26
$ debuild

Here is an excerpt of the output.

[...]

patching file python/mozbuild/mozbuild/preprocessor.py
patching file python/mozbuild/mozbuild/util.py
Creating Python 3 environment
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: 
SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build 
and pip and other standards-based tools.

  warnings.warn(
created virtual environment CPython3.11.2.final.0-64 in 139ms
  creator 
CPython3Posix(dest=/home/myusername/0ad-0.0.26/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/_virtualenvs/init_py3, 
clear=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, 
wheel=bundle, via=copy, 
app_data_dir=/home/myusername/.local/share/virtualenv)

added seed packages: pip==20.2.2, setuptools==49.6.0, wheel==0.35.1
  activators 
BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator

Traceback (most recent call last):
  File 
"/home/myusername/0ad-0.0.26/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/../js/src/../../configure.py", 
line 181, in 

sys.exit(main(sys.argv))
 ^^
  File 
"/home/myusername/0ad-0.0.26/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/../js/src/../../configure.py", 
line 52, in main
sandbox.run(os.path.join(os.path.dirname(__file__), 
'moz.configure'))


[...]