Source: python-traits
Version: 6.4.3-1
Severity: normal
Tags: upstream patch
User: debian-pyt...@lists.debian.org
Usertags: python3.13
Forwarded: https://github.com/enthought/traits/issues/1765

This package failed build from source when test-built against a version of
python3-defaults that incudes 3.13 as a supported version.

To reproduce this issue, build against python3-defaults (python3-all-dev etc.)
from Debian experimental.

What's new in Python 3.13:
https://docs.python.org/3.13/whatsnew/3.13.html

Looks like this has been dealt with upstream.

Log snippet:

copying traits/observation/tests/test_named_trait_observer.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/observation/tests
copying traits/observation/tests/test_dict_item_observer.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/observation/tests
copying traits/observation/tests/test_observer_graph.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/observation/tests
copying traits/observation/tests/test_generated_parser.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/observation/tests
copying traits/observation/tests/test_trait_change_event.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/observation/tests
copying traits/observation/tests/test_dict_change_event.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/observation/tests
copying traits/observation/tests/test_set_item_observer.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/observation/tests
copying traits/observation/tests/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/observation/tests
copying traits/observation/tests/test_trait_added_observer.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/observation/tests
copying traits/observation/tests/test_filtered_trait_observer.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/observation/tests
copying traits/observation/tests/test_has_traits_helpers.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/observation/tests
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/util/tests
copying traits/util/tests/test_weakidddict.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/util/tests
copying traits/util/tests/test_async_trait_wait.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/util/tests
copying traits/util/tests/test_import_symbol.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/util/tests
copying traits/util/tests/test_trait_documenter.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/util/tests
copying traits/util/tests/test_record_containers.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/util/tests
copying traits/util/tests/test_record_events.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/util/tests
copying traits/util/tests/test_resource.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/util/tests
copying traits/util/tests/test_camel_case.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/util/tests
copying traits/util/tests/test_message_records.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/util/tests
copying traits/util/tests/test_deprecated.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/util/tests
copying traits/util/tests/test_clean_strings.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/util/tests
copying traits/util/tests/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/util/tests
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/tests
copying traits/examples/tests/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/tests
copying traits/examples/tests/test_etsdemo_info.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/tests
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/tests/test-data
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/tests/test-data/historical-pickles
copying traits/tests/test-data/historical-pickles/README -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/tests/test-data/historical-pickles
copying 
traits/tests/test-data/historical-pickles/hipt-t5.2.0-p4-float-ctrait.pkl -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/tests/test-data/historical-pickles
copying 
traits/tests/test-data/historical-pickles/hipt-t5.2.0-p0-float-ctrait.pkl -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/tests/test-data/historical-pickles
copying 
traits/tests/test-data/historical-pickles/hipt-t5.2.0-p2-float-ctrait.pkl -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/tests/test-data/historical-pickles
copying 
traits/tests/test-data/historical-pickles/hipt-t5.2.0-p3-float-ctrait.pkl -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/tests/test-data/historical-pickles
copying 
traits/tests/test-data/historical-pickles/hipt-t5.2.0-p1-float-ctrait.pkl -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/tests/test-data/historical-pickles
copying 
traits/tests/test-data/historical-pickles/hipt-t5.2.0-p5-float-ctrait.pkl -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/tests/test-data/historical-pickles
copying traits/tests/test-data/historical-pickles/generate_pickles.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/tests/test-data/historical-pickles
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/introduction
copying traits/examples/introduction/1_validation.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/introduction
copying traits/examples/introduction/6_visualization.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/introduction
copying traits/examples/introduction/default.css -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/introduction
copying traits/examples/introduction/5_documentation.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/introduction
copying traits/examples/introduction/0_introduction.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/introduction
copying traits/examples/introduction/4_properties.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/introduction
copying traits/examples/introduction/3_observation.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/introduction
copying traits/examples/introduction/index.rst -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/introduction
copying traits/examples/introduction/2_initialization.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/introduction
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/introduction/images
copying traits/examples/introduction/images/sample_0001.png -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/introduction/images
copying traits/examples/introduction/images/sample_0002.png -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/introduction/images
copying traits/examples/introduction/images/LICENSE.txt -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/examples/introduction/images
running build_ext
building 'traits.ctraits' extension
creating build/temp.linux-aarch64-cpython-312
creating build/temp.linux-aarch64-cpython-312/traits
aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security 
-mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC 
-I/usr/include/python3.12 -c traits/ctraits.c -o 
build/temp.linux-aarch64-cpython-312/traits/ctraits.o
traits/ctraits.c: In function ‘has_traits_dealloc’:
traits/ctraits.c:811:5: warning: ‘UsingDeprecatedTrashcanMacro’ is deprecated 
[-Wdeprecated-declarations]
  811 |     Py_TRASHCAN_SAFE_BEGIN(obj);
      |     ^~~~~~~~~~~~~~~~~~~~~~
traits/ctraits.c: In function ‘trait_dealloc’:
traits/ctraits.c:2954:5: warning: ‘UsingDeprecatedTrashcanMacro’ is deprecated 
[-Wdeprecated-declarations]
 2954 |     Py_TRASHCAN_SAFE_BEGIN(trait);
      |     ^~~~~~~~~~~~~~~~~~~~~~
aarch64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security 
-mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-aarch64-cpython-312/traits/ctraits.o 
-L/usr/lib/aarch64-linux-gnu -o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_traits/build/traits/ctraits.cpython-312-aarch64-linux-gnu.so
dh_auto_build: error: pybuild --build -i python{version} -p "3.13 3.12" 
returned exit code 13
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-09-11T15:47:09Z


If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/701531/

This bug has been filed at "normal" severity, as we haven't started the
transition to add 3.13 as a supported version, yet. This will be raised to RC
as soon as that happens, hopefully well before trixie.

Thanks,

Stefano

Reply via email to