#1061317 gemrb ftbfs with Python 3.12 as default

#1061317#5
Date:
2024-01-22 14:30:53 UTC
From:
To:
with python3-defaults from experimental:

[...]
[ 83%] Building CXX object
gemrb/plugins/MVEPlayer/CMakeFiles/MVEPlayer.dir/mve_player.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/gemrb/plugins/MVEPlayer &&
/usr/bin/c++ -DHAVE_CONFIG_H -DMVEPlayer_EXPORTS
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu 
-I/<<PKGBUILDDIR>>/gemrb/includes -I/<<PKGBUILDDIR>>/gemrb/core -g -O2 
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/gemrb-0.9.0+dfsg-1build3 
-Wdate-time -D_FORTIFY_SOURCE=3 -Wall -W -Wpointer-arith  -pedantic 
-Wno-format-y2k -Wno-long-long -fsigned-char -fvisibility=hidden 
-Wimplicit-fallthrough=2 -std=gnu++11 -fPIC -MD -MT 
gemrb/plugins/MVEPlayer/CMakeFiles/MVEPlayer.dir/mve_player.cpp.o -MF
CMakeFiles/MVEPlayer.dir/mve_player.cpp.o.d -o
CMakeFiles/MVEPlayer.dir/mve_player.cpp.o -c
/<<PKGBUILDDIR>>/gemrb/plugins/MVEPlayer/mve_player.cpp
In file included from /<<PKGBUILDDIR>>/gemrb/core/System/VFS.h:33,
                  from /<<PKGBUILDDIR>>/gemrb/core/Interface.h:46,
                  from
/<<PKGBUILDDIR>>/gemrb/plugins/GUIScript/PythonConversions.cpp:23:
/<<PKGBUILDDIR>>/gemrb/includes/Predicates.h:36:25: warning:
‘template<class _Arg, class _Result> struct std::unary_function’ is
deprecated [-Wdeprecated-declarations]
    36 | struct Predicate : std::unary_function<PT, bool> {
       |                         ^~~~~~~~~~~~~~
In file included from /usr/include/c++/13/bits/refwrap.h:39,
                  from /usr/include/c++/13/bits/shared_ptr_base.h:57,
                  from /usr/include/c++/13/bits/shared_ptr.h:53,
                  from /usr/include/c++/13/condition_variable:45,
                  from /<<PKGBUILDDIR>>/gemrb/core/System/Logger.h:31,
                  from /<<PKGBUILDDIR>>/gemrb/core/System/Logging.h:31,
                  from /<<PKGBUILDDIR>>/gemrb/includes/Platform.h:56,
                  from /<<PKGBUILDDIR>>/gemrb/includes/ie_types.h:31,
                  from /<<PKGBUILDDIR>>/gemrb/core/System/String.h:23,
                  from /<<PKGBUILDDIR>>/gemrb/core/Resource.h:31,
                  from /<<PKGBUILDDIR>>/gemrb/core/ScriptEngine.h:25,
                  from
/<<PKGBUILDDIR>>/gemrb/plugins/GUIScript/GUIScript.h:43,
                  from
/<<PKGBUILDDIR>>/gemrb/plugins/GUIScript/PythonConversions.h:23,
                  from
/<<PKGBUILDDIR>>/gemrb/plugins/GUIScript/PythonConversions.cpp:19:
/usr/include/c++/13/bits/stl_function.h:117:12: note: declared here
   117 |     struct unary_function
       |            ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/gemrb/plugins/GUIScript/PythonConversions.cpp: In
function ‘GemRB::PyStringWrapper GemRB::PyString_AsString(PyObject*)’:
/<<PKGBUILDDIR>>/gemrb/plugins/GUIScript/PythonConversions.cpp:141:36:
error: ‘PyUnicode_AS_DATA’ was not declared in this scope; did you mean
‘PyUnicode_DATA’?
   141 |                         wrap.str = PyUnicode_AS_DATA(obj);
       |                                    ^~~~~~~~~~~~~~~~~
       |                                    PyUnicode_DATA
make[3]: ***
[gemrb/plugins/GUIScript/CMakeFiles/GUIScript.dir/build.make:107:
gemrb/plugins/GUIScript/CMakeFiles/GUIScript.dir/PythonConversions.cpp.o]
Error 1

#1061317#8
Date:
2024-02-22 07:31:32 UTC
From:
To:
Hello,

Bug #1061317 in gemrb 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/gemrb/-/commit/4948cd7d830c4d63f3df6a8b780c8702c3f0b44b
------------------------------------------------------------------------
New upstream release

Supports Python 3.12; closes: #1061317.
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1061317