Package: src:aggdraw Version: 1.3.19-1 Severity: serious Tags: ftbfs forky sid
Dear maintainer: During a rebuild of all packages in unstable, this package failed to build. Below you will find the last part of the build log (probably the most relevant part, but not necessarily). If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202511/ About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages. If you cannot reproduce the bug please contact me privately, as I am willing to provide ssh access to a virtual machine where the bug is fully reproducible. If this is really a bug in one of the build-depends, please use reassign and add an affects on src:aggdraw, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] debian/rules clean dh clean --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules binary dh binary --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild dh_auto_build -O--buildsystem=pybuild I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" module I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_aggdraw * Building wheel... Trying freetype-config to find freetype library... Using ctypes to find freetype library... Trying 'pkgconfig' to find freetype library... === freetype found: '/usr' running bdist_wheel running build running build_ext building 'aggdraw' extension creating build/temp.linux-x86_64-cpython-313/agg2/font_freetype creating build/temp.linux-x86_64-cpython-313/agg2/src x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DVERSION=1.3.19 -DHAVE_FREETYPE2 -Iagg2/include -Iagg2/font_freetype -I/usr/include -I/usr/include/freetype -I/usr/include/freetype2 -I/usr/include/python3.13 -c agg2/font_freetype/agg_font_freetype.cpp -o build/temp.linux-x86_64-cpython-313/agg2/font_freetype/agg_font_freetype.o agg2/font_freetype/agg_font_freetype.cpp: In member function âvoid agg::font_engine_freetype_base::update_signature()â: agg2/font_freetype/agg_font_freetype.cpp:766:44: warning: format â%dâ expects argument of type âintâ, but argument 10 has type âFT_Fixedâ {aka âlong intâ} [-Wformat=] 766 | "%s,%u,%d,%d,%d:%dx%d,%d,%d,%d,%d,%d,%d,%08X", | ~^ | | | int | %ld ...... 774 | m_matrix.xx, | ~~~~~~~~~~~ | | | FT_Fixed {aka long int} agg2/font_freetype/agg_font_freetype.cpp:766:47: warning: format â%dâ expects argument of type âintâ, but argument 11 has type âFT_Fixedâ {aka âlong intâ} [-Wformat=] 766 | "%s,%u,%d,%d,%d:%dx%d,%d,%d,%d,%d,%d,%d,%08X", | ~^ | | | int | %ld ...... 775 | m_matrix.xy, | ~~~~~~~~~~~ | | | FT_Fixed {aka long int} agg2/font_freetype/agg_font_freetype.cpp:766:50: warning: format â%dâ expects argument of type âintâ, but argument 12 has type âFT_Fixedâ {aka âlong intâ} [-Wformat=] 766 | "%s,%u,%d,%d,%d:%dx%d,%d,%d,%d,%d,%d,%d,%08X", | ~^ | | | int | %ld ...... 776 | m_matrix.yx, | ~~~~~~~~~~~ | | | FT_Fixed {aka long int} agg2/font_freetype/agg_font_freetype.cpp:766:53: warning: format â%dâ expects argument of type âintâ, but argument 13 has type âFT_Fixedâ {aka âlong intâ} [-Wformat=] 766 | "%s,%u,%d,%d,%d:%dx%d,%d,%d,%d,%d,%d,%d,%08X", | ~^ | | | int | %ld ...... 777 | m_matrix.yy, | ~~~~~~~~~~~ | | | FT_Fixed {aka long int} x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DVERSION=1.3.19 -DHAVE_FREETYPE2 -Iagg2/include -Iagg2/font_freetype -I/usr/include -I/usr/include/freetype -I/usr/include/freetype2 -I/usr/include/python3.13 -c agg2/src/agg_arc.cpp -o build/temp.linux-x86_64-cpython-313/agg2/src/agg_arc.o x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DVERSION=1.3.19 -DHAVE_FREETYPE2 -Iagg2/include -Iagg2/font_freetype -I/usr/include -I/usr/include/freetype -I/usr/include/freetype2 -I/usr/include/python3.13 -c agg2/src/agg_bezier_arc.cpp -o build/temp.linux-x86_64-cpython-313/agg2/src/agg_bezier_arc.o x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DVERSION=1.3.19 -DHAVE_FREETYPE2 -Iagg2/include -Iagg2/font_freetype -I/usr/include -I/usr/include/freetype -I/usr/include/freetype2 -I/usr/include/python3.13 -c agg2/src/agg_curves.cpp -o build/temp.linux-x86_64-cpython-313/agg2/src/agg_curves.o x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DVERSION=1.3.19 -DHAVE_FREETYPE2 -Iagg2/include -Iagg2/font_freetype -I/usr/include -I/usr/include/freetype -I/usr/include/freetype2 -I/usr/include/python3.13 -c agg2/src/agg_path_storage.cpp -o build/temp.linux-x86_64-cpython-313/agg2/src/agg_path_storage.o x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DVERSION=1.3.19 -DHAVE_FREETYPE2 -Iagg2/include -Iagg2/font_freetype -I/usr/include -I/usr/include/freetype -I/usr/include/freetype2 -I/usr/include/python3.13 -c agg2/src/agg_rasterizer_scanline_aa.cpp -o build/temp.linux-x86_64-cpython-313/agg2/src/agg_rasterizer_scanline_aa.o x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DVERSION=1.3.19 -DHAVE_FREETYPE2 -Iagg2/include -Iagg2/font_freetype -I/usr/include -I/usr/include/freetype -I/usr/include/freetype2 -I/usr/include/python3.13 -c agg2/src/agg_trans_affine.cpp -o build/temp.linux-x86_64-cpython-313/agg2/src/agg_trans_affine.o x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DVERSION=1.3.19 -DHAVE_FREETYPE2 -Iagg2/include -Iagg2/font_freetype -I/usr/include -I/usr/include/freetype -I/usr/include/freetype2 -I/usr/include/python3.13 -c agg2/src/agg_vcgen_contour.cpp -o build/temp.linux-x86_64-cpython-313/agg2/src/agg_vcgen_contour.o x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DVERSION=1.3.19 -DHAVE_FREETYPE2 -Iagg2/include -Iagg2/font_freetype -I/usr/include -I/usr/include/freetype -I/usr/include/freetype2 -I/usr/include/python3.13 -c agg2/src/agg_vcgen_stroke.cpp -o build/temp.linux-x86_64-cpython-313/agg2/src/agg_vcgen_stroke.o x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DVERSION=1.3.19 -DHAVE_FREETYPE2 -Iagg2/include -Iagg2/font_freetype -I/usr/include -I/usr/include/freetype -I/usr/include/freetype2 -I/usr/include/python3.13 -c aggdraw.cxx -o build/temp.linux-x86_64-cpython-313/aggdraw.o creating build/lib.linux-x86_64-cpython-313 x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR [too-long-redacted] cpython-313-x86_64-linux-gnu.so installing to build/bdist.linux-x86_64/wheel running install running install_lib creating build/bdist.linux-x86_64/wheel copying build/lib.linux-x86_64-cpython-313/aggdraw.cpython-313-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/. running install_egg_info running egg_info creating aggdraw.egg-info writing aggdraw.egg-info/PKG-INFO writing dependency_links to aggdraw.egg-info/dependency_links.txt writing top-level names to aggdraw.egg-info/top_level.txt writing manifest file 'aggdraw.egg-info/SOURCES.txt' reading manifest file 'aggdraw.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE.txt' writing manifest file 'aggdraw.egg-info/SOURCES.txt' Copying aggdraw.egg-info to build/bdist.linux-x86_64/wheel/./aggdraw-1.3.19.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/aggdraw-1.3.19.dist-info/WHEEL creating '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_aggdraw/.tmp-mho0jojx/aggdraw-1.3.19-cp313-cp313-linux_x86_64.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'aggdraw.cpython-313-x86_64-linux-gnu.so' adding 'aggdraw-1.3.19.dist-info/licenses/LICENSE.txt' adding 'aggdraw-1.3.19.dist-info/METADATA' adding 'aggdraw-1.3.19.dist-info/WHEEL' adding 'aggdraw-1.3.19.dist-info/top_level.txt' adding 'aggdraw-1.3.19.dist-info/RECORD' removing build/bdist.linux-x86_64/wheel Successfully built aggdraw-1.3.19-cp313-cp313-linux_x86_64.whl I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with "installer" module dh_auto_test -O--buildsystem=pybuild I: pybuild pybuild:308: cp selftest.py /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_aggdraw/build I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_aggdraw/build; env PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_aggdraw/build python3.13 selftest.py -v ============================= test session starts ============================== platform linux -- Python 3.13.9, pytest-8.4.2, pluggy-1.6.0 -- /usr/bin/python3.13 cachedir: .pytest_cache rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_aggdraw/build configfile: pyproject.toml plugins: typeguard-4.4.4 collecting ... collected 11 items selftest.py::test_module_init PASSED [ 9%] selftest.py::test_draw PASSED [ 18%] selftest.py::test_flush PASSED [ 27%] selftest.py::test_pen PASSED [ 36%] selftest.py::test_brush PASSED [ 45%] selftest.py::test_graphics PASSED [ 54%] selftest.py::test_graphics2 FAILED [ 63%] selftest.py::test_graphics3 PASSED [ 72%] selftest.py::test_path PASSED [ 81%] selftest.py::test_symbol PASSED [ 90%] selftest.py::test_transform PASSED [100%] =================================== FAILURES =================================== ________________________________ test_graphics2 ________________________________ obj = array([[[0., 0., 0.], [0., 0., 0.], [0., 0., 0.], ..., [0., 0., 0.], [0., 0., ... [0., 0., 0.], ..., [0., 0., 0.], [0., 0., 0.], [0., 0., 0.]]], shape=(800, 600, 3)) mode = 'RGB' def fromarray(obj: SupportsArrayInterface, mode: str | None = None) -> Image: """ Creates an image memory from an object exporting the array interface (using the buffer protocol):: from PIL import Image import numpy as np a = np.zeros((5, 5)) im = Image.fromarray(a) If ``obj`` is not contiguous, then the ``tobytes`` method is called and :py:func:`~PIL.Image.frombuffer` is used. In the case of NumPy, be aware that Pillow modes do not always correspond to NumPy dtypes. Pillow modes only offer 1-bit pixels, 8-bit pixels, 32-bit signed integer pixels, and 32-bit floating point pixels. Pillow images can also be converted to arrays:: from PIL import Image import numpy as np im = Image.open("hopper.jpg") a = np.asarray(im) When converting Pillow images to arrays however, only pixel values are transferred. This means that P and PA mode images will lose their palette. :param obj: Object with array interface :param mode: Optional mode to use when reading ``obj``. Since pixel values do not contain information about palettes or color spaces, this can be used to place grayscale L mode data within a P mode image, or read RGB data as YCbCr for example. See: :ref:`concept-modes` for general information about modes. :returns: An image object. .. versionadded:: 1.1.6 """ arr = obj.__array_interface__ shape = arr["shape"] ndim = len(shape) strides = arr.get("strides", None) try: typekey = (1, 1) + shape[2:], arr["typestr"] except KeyError as e: if mode is not None: typekey = None color_modes: list[str] = [] else: msg = "Cannot handle this data type" raise TypeError(msg) from e if typekey is not None: try: > typemode, rawmode, color_modes = _fromarray_typemap[typekey] ^^^^^^^^^^^^^^^^^^^^^^^^^^^ E KeyError: ((1, 1, 3), '<f8') /usr/lib/python3/dist-packages/PIL/Image.py:3285: KeyError The above exception was the direct cause of the following exception: def test_graphics2(): """See issue #14.""" from aggdraw import Draw, Symbol, Pen from PIL import Image import numpy as np symbol = Symbol("M400 200 L400 400") pen = Pen("red") > image = Image.fromarray(np.zeros((800, 600, 3)), mode="RGB") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ selftest.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ obj = array([[[0., 0., 0.], [0., 0., 0.], [0., 0., 0.], ..., [0., 0., 0.], [0., 0., ... [0., 0., 0.], ..., [0., 0., 0.], [0., 0., 0.], [0., 0., 0.]]], shape=(800, 600, 3)) mode = 'RGB' def fromarray(obj: SupportsArrayInterface, mode: str | None = None) -> Image: """ Creates an image memory from an object exporting the array interface (using the buffer protocol):: from PIL import Image import numpy as np a = np.zeros((5, 5)) im = Image.fromarray(a) If ``obj`` is not contiguous, then the ``tobytes`` method is called and :py:func:`~PIL.Image.frombuffer` is used. In the case of NumPy, be aware that Pillow modes do not always correspond to NumPy dtypes. Pillow modes only offer 1-bit pixels, 8-bit pixels, 32-bit signed integer pixels, and 32-bit floating point pixels. Pillow images can also be converted to arrays:: from PIL import Image import numpy as np im = Image.open("hopper.jpg") a = np.asarray(im) When converting Pillow images to arrays however, only pixel values are transferred. This means that P and PA mode images will lose their palette. :param obj: Object with array interface :param mode: Optional mode to use when reading ``obj``. Since pixel values do not contain information about palettes or color spaces, this can be used to place grayscale L mode data within a P mode image, or read RGB data as YCbCr for example. See: :ref:`concept-modes` for general information about modes. :returns: An image object. .. versionadded:: 1.1.6 """ arr = obj.__array_interface__ shape = arr["shape"] ndim = len(shape) strides = arr.get("strides", None) try: typekey = (1, 1) + shape[2:], arr["typestr"] except KeyError as e: if mode is not None: typekey = None color_modes: list[str] = [] else: msg = "Cannot handle this data type" raise TypeError(msg) from e if typekey is not None: try: typemode, rawmode, color_modes = _fromarray_typemap[typekey] except KeyError as e: typekey_shape, typestr = typekey msg = f"Cannot handle this data type: {typekey_shape}, {typestr}" > raise TypeError(msg) from e E TypeError: Cannot handle this data type: (1, 1, 3), <f8 /usr/lib/python3/dist-packages/PIL/Image.py:3289: TypeError =========================== short test summary info ============================ FAILED selftest.py::test_graphics2 - TypeError: Cannot handle this data type:... ========================= 1 failed, 10 passed in 0.13s ========================= E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_aggdraw/build; env PYTHONPATH={build_dir} python{version} selftest.py -v dh_auto_test: error: pybuild --test -i python{version} -p 3.13 returned exit code 13 make: *** [debian/rules:15: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

