Package: src:python-jq
Version: 1.8.0+dfsg-1
Severity: serious
Tags: ftbfs trixie sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --with python3 --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_jq  
* Building wheel...
/usr/lib/python3/dist-packages/setuptools/dist.py:759: 
SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        
********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX 
license expression:

        License :: OSI Approved :: BSD License

        See 
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license 
for details.
        
********************************************************************************

!!
  self._finalize_license_expression()
running bdist_wheel
running build
running build_ext
/usr/lib/python3/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: 
Cython directive 'language_level' not set, using '3str' for now (Py3). This has 
changed from earlier releases! File: /<<PKGBUILDDIR>>/jq.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
Compiling jq.pyx because it changed.
[1/1] Cythonizing jq.pyx
building 'jq' extension
creating build/temp.linux-x86_64-cpython-313
x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.13 -c jq.c -o 
build/temp.linux-x86_64-cpython-313/jq.o
jq.c: In function ‘__pyx_f_2jq_jv_string_to_py_string’:
jq.c:12259:24: warning: assignment discards ‘const’ qualifier from pointer 
target type [-Wdiscarded-qualifiers]
12259 |   __pyx_v_string_value = jv_string_value(__pyx_v_value);
      |                        ^
creating build/lib.linux-x86_64-cpython-313
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g 
-fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-313/jq.o -L/usr/lib/x86_64-linux-gnu -ljq 
-lonig -o build/lib.linux-x86_64-cpython-313/jq.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/jq.cpython-313-x86_64-linux-gnu.so 
-> build/bdist.linux-x86_64/wheel/.
running install_egg_info
running egg_info
creating jq.egg-info
writing jq.egg-info/PKG-INFO
writing dependency_links to jq.egg-info/dependency_links.txt
writing top-level names to jq.egg-info/top_level.txt
writing manifest file 'jq.egg-info/SOURCES.txt'
reading manifest file 'jq.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'deps/*.tar.gz'
adding license file 'LICENSE'
writing manifest file 'jq.egg-info/SOURCES.txt'
Copying jq.egg-info to build/bdist.linux-x86_64/wheel/./jq-1.8.0.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/jq-1.8.0.dist-info/WHEEL
creating 
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_jq/.tmp-2t57w8rr/jq-1.8.0-cp313-cp313-linux_x86_64.whl'
 and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'jq.cpython-313-x86_64-linux-gnu.so'
adding 'jq-1.8.0.dist-info/licenses/LICENSE'
adding 'jq-1.8.0.dist-info/METADATA'
adding 'jq-1.8.0.dist-info/WHEEL'
adding 'jq-1.8.0.dist-info/top_level.txt'
adding 'jq-1.8.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built jq-1.8.0-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 base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_jq/build; 
python3.13 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.13.5, pytest-8.3.5, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_jq/build
configfile: tox.ini
plugins: typeguard-4.4.2
collected 65 items

tests/jq_old_tests.py .........F.....                                    [ 23%]
tests/jq_tests.py ......................F...........................     [100%]

=================================== FAILURES ===================================
_______________ test_value_error_is_raised_if_program_is_invalid _______________

    def test_value_error_is_raised_if_program_is_invalid():
        try:
>           jq("!")

tests/jq_old_tests.py:74: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
jq.pyx:426: in jq.jq
    ???
jq.pyx:136: in jq.compile
    ???
jq.pyx:253: in jq._Program.__cinit__
    ???
jq.pyx:224: in jq._JqStatePool.__cinit__
    ???
jq.pyx:170: in jq._compile
    ???
jq.pyx:153: in jq._compile
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   ValueError: jq: error: syntax error, unexpected INVALID_CHARACTER, 
expecting end of file at <top-level>, line 1, column 1:
E       !
E       ^
E   jq: 1 compile error

jq.pyx:164: ValueError

During handling of the above exception, another exception occurred:

    def test_value_error_is_raised_if_program_is_invalid():
        try:
            jq("!")
            assert False, "Expected error"
        except ValueError as error:
            expected_error_strs = [
                # jq 1.6
                "jq: error: syntax error, unexpected INVALID_CHARACTER, 
expecting $end (Unix shell quoting issues?) at <top-level>, line 1:\n!\njq: 1 
compile error",
                # jq 1.7
                "jq: error: syntax error, unexpected INVALID_CHARACTER, 
expecting end of file (Unix shell quoting issues?) at <top-level>, line 
1:\n!\njq: 1 compile error",
                # jq 1.6 -win
                "jq: error: syntax error, unexpected INVALID_CHARACTER, 
expecting $end (Windows cmd shell quoting issues?) at <top-level>, line 
1:\n!\njq: 1 compile error",
                # jq 1.7 -win
                "jq: error: syntax error, unexpected INVALID_CHARACTER, 
expecting end of file (Windows cmd shell quoting issues?) at <top-level>, line 
1:\n!\njq: 1 compile error",
            ]
>           assert str(error) in expected_error_strs
E           AssertionError: assert 'jq: error: syntax error, unexpected 
INVALID_CHARACTER, expecting end of file at <top-level>, line 1, column 1:\n    
!\n    ^\njq: 1 compile error' in ['jq: error: syntax error, unexpected 
INVALID_CHARACTER, expecting $end (Unix shell quoting issues?) at <top-level>, 
l..._CHARACTER, expecting end of file (Windows cmd shell quoting issues?) at 
<top-level>, line 1:\n!\njq: 1 compile error']
E            +  where 'jq: error: syntax error, unexpected INVALID_CHARACTER, 
expecting end of file at <top-level>, line 1, column 1:\n    !\n    ^\njq: 1 
compile error' = str(ValueError('jq: error: syntax error, unexpected 
INVALID_CHARACTER, expecting end of file at <top-level>, line 1, column 1:\n    
!\n    ^\njq: 1 compile error'))

tests/jq_old_tests.py:87: AssertionError
_______________ test_value_error_is_raised_if_program_is_invalid _______________

    def test_value_error_is_raised_if_program_is_invalid():
        try:
>           jq.compile("!")

tests/jq_tests.py:194: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
jq.pyx:136: in jq.compile
    ???
jq.pyx:253: in jq._Program.__cinit__
    ???
jq.pyx:224: in jq._JqStatePool.__cinit__
    ???
jq.pyx:170: in jq._compile
    ???
jq.pyx:153: in jq._compile
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   ValueError: jq: error: syntax error, unexpected INVALID_CHARACTER, 
expecting end of file at <top-level>, line 1, column 1:
E       !
E       ^
E   jq: 1 compile error

jq.pyx:164: ValueError

During handling of the above exception, another exception occurred:

    def test_value_error_is_raised_if_program_is_invalid():
        try:
            jq.compile("!")
            assert False, "Expected error"
        except ValueError as error:
            expected_error_strs = [
                # jq 1.6
                "jq: error: syntax error, unexpected INVALID_CHARACTER, 
expecting $end (Unix shell quoting issues?) at <top-level>, line 1:\n!\njq: 1 
compile error",
                # jq 1.7
                "jq: error: syntax error, unexpected INVALID_CHARACTER, 
expecting end of file (Unix shell quoting issues?) at <top-level>, line 
1:\n!\njq: 1 compile error",
                # jq 1.6 -win
                "jq: error: syntax error, unexpected INVALID_CHARACTER, 
expecting $end (Windows cmd shell quoting issues?) at <top-level>, line 
1:\n!\njq: 1 compile error",
                # jq 1.7 -win
                "jq: error: syntax error, unexpected INVALID_CHARACTER, 
expecting end of file (Windows cmd shell quoting issues?) at <top-level>, line 
1:\n!\njq: 1 compile error",
            ]
>           assert str(error) in expected_error_strs
E           AssertionError: assert 'jq: error: syntax error, unexpected 
INVALID_CHARACTER, expecting end of file at <top-level>, line 1, column 1:\n    
!\n    ^\njq: 1 compile error' in ['jq: error: syntax error, unexpected 
INVALID_CHARACTER, expecting $end (Unix shell quoting issues?) at <top-level>, 
l..._CHARACTER, expecting end of file (Windows cmd shell quoting issues?) at 
<top-level>, line 1:\n!\njq: 1 compile error']
E            +  where 'jq: error: syntax error, unexpected INVALID_CHARACTER, 
expecting end of file at <top-level>, line 1, column 1:\n    !\n    ^\njq: 1 
compile error' = str(ValueError('jq: error: syntax error, unexpected 
INVALID_CHARACTER, expecting end of file at <top-level>, line 1, column 1:\n    
!\n    ^\njq: 1 compile error'))

tests/jq_tests.py:207: AssertionError
=========================== short test summary info ============================
FAILED tests/jq_old_tests.py::test_value_error_is_raised_if_program_is_invalid
FAILED tests/jq_tests.py::test_value_error_is_raised_if_program_is_invalid - ...
========================= 2 failed, 63 passed in 0.10s =========================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_jq/build; python3.13 -m pytest tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 
returned exit code 13
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202506/

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 could not 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:python-jq, so that this is still
visible in the BTS web page for this package.

Thanks.

Reply via email to