Package: src:yarsync
Version: 0.3.1-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/202512/

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:yarsync, 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:131: Building wheel for python3.14 with "build" 
module
I: pybuild base:317: python3.14 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_yarsync  
* Building wheel...
/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:82: 
SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!

        
********************************************************************************
        Please use a simple string containing a SPDX expression for 
`project.license`. You can also use `project.license-files`. (Both options 
available on setuptools>=77.0.0).

        By 2026-Feb-18, you need to update your project and remove deprecated 
calls
        or your builds will no longer be supported.

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

!!
  corresp(dist, value, root_dir)
/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:61: 
SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

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

        License :: OSI Approved :: GNU General Public License v3 (GPLv3)

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

!!
  dist._finalize_license_expression()
/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 :: GNU General Public License v3 (GPLv3)

        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_py
creating build/lib/yarsync
copying yarsync/version.py -> build/lib/yarsync
copying yarsync/yarsync.py -> build/lib/yarsync
copying yarsync/__init__.py -> build/lib/yarsync
creating build/lib/docs/source
copying docs/source/conf.py -> build/lib/docs/source
running egg_info
creating yarsync.egg-info
writing yarsync.egg-info/PKG-INFO
writing dependency_links to yarsync.egg-info/dependency_links.txt
writing entry points to yarsync.egg-info/entry_points.txt
writing requirements to yarsync.egg-info/requires.txt
writing top-level names to yarsync.egg-info/top_level.txt
writing manifest file 'yarsync.egg-info/SOURCES.txt'
reading manifest file 'yarsync.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'yarsync.egg-info/SOURCES.txt'
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/yarsync
copying build/lib/yarsync/version.py -> build/bdist.linux-x86_64/wheel/./yarsync
copying build/lib/yarsync/yarsync.py -> build/bdist.linux-x86_64/wheel/./yarsync
copying build/lib/yarsync/__init__.py -> 
build/bdist.linux-x86_64/wheel/./yarsync
creating build/bdist.linux-x86_64/wheel/docs
creating build/bdist.linux-x86_64/wheel/docs/source
copying build/lib/docs/source/conf.py -> 
build/bdist.linux-x86_64/wheel/./docs/source
running install_egg_info
Copying yarsync.egg-info to 
build/bdist.linux-x86_64/wheel/./yarsync-0.3.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/yarsync-0.3.dist-info/WHEEL
creating 
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_yarsync/.tmp-4fi8kylq/yarsync-0.3-py3-none-any.whl'
 and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'docs/source/conf.py'
adding 'yarsync/__init__.py'
adding 'yarsync/version.py'
adding 'yarsync/yarsync.py'
adding 'yarsync-0.3.dist-info/licenses/LICENSE'
adding 'yarsync-0.3.dist-info/METADATA'
adding 'yarsync-0.3.dist-info/WHEEL'
adding 'yarsync-0.3.dist-info/entry_points.txt'
adding 'yarsync-0.3.dist-info/top_level.txt'
adding 'yarsync-0.3.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built yarsync-0.3-py3-none-any.whl
I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.14 with 
"installer" module
I: pybuild plugin_pyproject:131: Building wheel for python3.13 with "build" 
module
I: pybuild base:317: python3.13 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_yarsync  
* Building wheel...
/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:82: 
SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!

        
********************************************************************************
        Please use a simple string containing a SPDX expression for 
`project.license`. You can also use `project.license-files`. (Both options 
available on setuptools>=77.0.0).

        By 2026-Feb-18, you need to update your project and remove deprecated 
calls
        or your builds will no longer be supported.

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

!!
  corresp(dist, value, root_dir)
/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:61: 
SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

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

        License :: OSI Approved :: GNU General Public License v3 (GPLv3)

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

!!
  dist._finalize_license_expression()
/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 :: GNU General Public License v3 (GPLv3)

        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_py
creating build/lib/build/lib/yarsync
copying build/lib/yarsync/version.py -> build/lib/build/lib/yarsync
copying build/lib/yarsync/yarsync.py -> build/lib/build/lib/yarsync
copying build/lib/yarsync/__init__.py -> build/lib/build/lib/yarsync
creating build/lib/build/lib/docs/source
copying build/lib/docs/source/conf.py -> build/lib/build/lib/docs/source
running egg_info
writing yarsync.egg-info/PKG-INFO
writing dependency_links to yarsync.egg-info/dependency_links.txt
writing entry points to yarsync.egg-info/entry_points.txt
writing requirements to yarsync.egg-info/requires.txt
writing top-level names to yarsync.egg-info/top_level.txt
reading manifest file 'yarsync.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'yarsync.egg-info/SOURCES.txt'
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/build
creating build/bdist.linux-x86_64/wheel/build/lib
creating build/bdist.linux-x86_64/wheel/build/lib/yarsync
copying build/lib/build/lib/yarsync/version.py -> 
build/bdist.linux-x86_64/wheel/./build/lib/yarsync
copying build/lib/build/lib/yarsync/yarsync.py -> 
build/bdist.linux-x86_64/wheel/./build/lib/yarsync
copying build/lib/build/lib/yarsync/__init__.py -> 
build/bdist.linux-x86_64/wheel/./build/lib/yarsync
creating build/bdist.linux-x86_64/wheel/build/lib/docs
creating build/bdist.linux-x86_64/wheel/build/lib/docs/source
copying build/lib/build/lib/docs/source/conf.py -> 
build/bdist.linux-x86_64/wheel/./build/lib/docs/source
creating build/bdist.linux-x86_64/wheel/yarsync
copying build/lib/yarsync/version.py -> build/bdist.linux-x86_64/wheel/./yarsync
copying build/lib/yarsync/yarsync.py -> build/bdist.linux-x86_64/wheel/./yarsync
copying build/lib/yarsync/__init__.py -> 
build/bdist.linux-x86_64/wheel/./yarsync
creating build/bdist.linux-x86_64/wheel/docs
creating build/bdist.linux-x86_64/wheel/docs/source
copying build/lib/docs/source/conf.py -> 
build/bdist.linux-x86_64/wheel/./docs/source
running install_egg_info
Copying yarsync.egg-info to 
build/bdist.linux-x86_64/wheel/./yarsync-0.3.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/yarsync-0.3.dist-info/WHEEL
creating 
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_yarsync/.tmp-q8cbr02m/yarsync-0.3-py3-none-any.whl'
 and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'build/lib/docs/source/conf.py'
adding 'build/lib/yarsync/__init__.py'
adding 'build/lib/yarsync/version.py'
adding 'build/lib/yarsync/yarsync.py'
adding 'docs/source/conf.py'
adding 'yarsync/__init__.py'
adding 'yarsync/version.py'
adding 'yarsync/yarsync.py'
adding 'yarsync-0.3.dist-info/licenses/LICENSE'
adding 'yarsync-0.3.dist-info/METADATA'
adding 'yarsync-0.3.dist-info/WHEEL'
adding 'yarsync-0.3.dist-info/entry_points.txt'
adding 'yarsync-0.3.dist-info/top_level.txt'
adding 'yarsync-0.3.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built yarsync-0.3-py3-none-any.whl
I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.13 with 
"installer" module
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_yarsync/build; 
python3.14 -m pytest --ignore=tests/test_clone.py --ignore=tests/test_status.py
============================= test session starts ==============================
platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_yarsync/build
configfile: pyproject.toml
plugins: cov-5.0.0, typeguard-4.4.4, mock-3.15.1
collected 31 items

tests/test_commit.py ......                                              [ 19%]
tests/test_env_vars.py .                                                 [ 22%]
tests/test_init.py ...                                                   [ 32%]
tests/test_log.py .FF.                                                   [ 45%]
tests/test_pull_push.py ......                                           [ 64%]
tests/test_remote.py .                                                   [ 67%]
tests/test_sync.py ..                                                    [ 74%]
tests/test_ys_helpers.py .....F..                                        [100%]

=================================== FAILURES ===================================
________________________________ test_log_empty ________________________________

mocker = <pytest_mock.plugin.MockerFixture object at 0x7f2a0704d450>

    def test_log_empty(mocker):
        os.chdir(TEST_DIR_EMPTY)
        mocker_print = mocker.patch("sys.stdout")
    
        args = ["yarsync", "log"]
        ys = YARsync(args)
    
        # call _log
        res = ys()
        call = mocker.call
        assert res == 0
>       assert mocker_print.mock_calls == [
            call.write('No synchronization directory found.'),
            call.write('\n'),
            call.write('No synchronization information found.'),
            call.write('\n'),
            call.write('No commits found'), call.write('\n')
        ]
E       AssertionError: assert [call.fileno(...l.write('\n')] == 
[call.write('...l.write('\n')]
E         
E         At index 0 diff: call.fileno() != call.write('No synchronization 
directory found.')
E         Left contains 388 more items, first extra item: call.fileno()
E         Use -v to get more diff

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_yarsync/build/tests/test_log.py:31: 
AssertionError
___________________________________ test_log ___________________________________

mocker = <pytest_mock.plugin.MockerFixture object at 0x7f2a072075c0>

    def test_log(mocker):
        os.chdir(TEST_DIR)
        mocker_print = mocker.patch("sys.stdout")
    
        args = ["yarsync", "log"]
        ys = YARsync(args)
    
        # call _log
        res = ys()
        call = mocker.call
        assert res == 0
    
        # # the date on Python 3.6 is still different (see test_commit.py)
        # if sys.version_info.minor <= 6:
        #     # will be UTC
        #     time1_str = time.strftime(ys.DATEFMT, time.localtime(1))
        # else:
        #     time1_str = "Thu, 01 Jan 1970 03:00:01 MSK"
        time1_str = time.strftime(ys.DATEFMT, time.localtime(1))
        # this time is fixed in log
        time2_str = "Thu, 01 Jan 1970 03:00:02 MSK"
    
>       assert mocker_print.mock_calls == [
            # todo: missing synchronization should be tested somewhere.
            # call.write('No synchronization directory found.'),
            # call.write('\n'),
            # call.write('No synchronization information found.'),
            # call.write('\n'),
            call.write('commit 3 is missing'),
            call.write('\n'),
            call.write('log 3\n'),
            call.write(''),
            call.write('\n'),
            call.write('commit 2 <-> other_repo'),
            call.write('\n'),
            call.write('When: {}\nWhere: user@host\n'.format(time2_str)),
            call.write(''),
            call.write('\n'),
            call.write('commit 1'),
            call.write('\n'),
            call.write('Log is missing\nWhen: {}\n'.format(time1_str)),
            call.write(''),
        ]
E       AssertionError: assert [call.fileno(...all.write('')] == 
[call.write('...r_repo'), ...]
E         
E         At index 0 diff: call.fileno() != call.write('commit 3 is missing')
E         Left contains 388 more items, first extra item: call.fileno()
E         Use -v to get more diff

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_yarsync/build/tests/test_log.py:62: 
AssertionError
__________________________________ test_print __________________________________

mocker = <pytest_mock.plugin.MockerFixture object at 0x7f2a06cc47d0>

    def test_print(mocker):
        # ys must be initialised with some settings.
        os.chdir(TEST_DIR)
    
        mocker_print = mocker.patch("sys.stdout")
        call = mocker.call
    
        # default verbosity
        args = ["yarsync", "log"]
        ys = YARsync(args)  # command is not called
        assert ys.print_level == ys._default_print_level
    
        ys._print("debug", level=2)
>       assert mocker_print.mock_calls == [
            call.write('debug'), call.write('\n')
        ]
E       AssertionError: assert [call.fileno(...l.write('\n')] == 
[call.write('...l.write('\n')]
E         
E         At index 0 diff: call.fileno() != call.write('debug')
E         Left contains 388 more items, first extra item: call.fileno()
E         Use -v to get more diff

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_yarsync/build/tests/test_ys_helpers.py:134:
 AssertionError
=========================== short test summary info ============================
FAILED tests/test_log.py::test_log_empty - AssertionError: assert [call.filen...
FAILED tests/test_log.py::test_log - AssertionError: assert [call.fileno(...a...
FAILED tests/test_ys_helpers.py::test_print - AssertionError: assert [call.fi...
========================= 3 failed, 28 passed in 1.33s =========================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_yarsync/build; python3.14 -m pytest 
--ignore=tests/test_clone.py --ignore=tests/test_status.py
I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_yarsync/build; 
python3.13 -m pytest --ignore=tests/test_clone.py --ignore=tests/test_status.py
============================= test session starts ==============================
platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_yarsync/build
configfile: pyproject.toml
plugins: cov-5.0.0, typeguard-4.4.4, mock-3.15.1
collected 31 items

tests/test_commit.py ......                                              [ 19%]
tests/test_env_vars.py .                                                 [ 22%]
tests/test_init.py ...                                                   [ 32%]
tests/test_log.py ....                                                   [ 45%]
tests/test_pull_push.py ......                                           [ 64%]
tests/test_remote.py .                                                   [ 67%]
tests/test_sync.py ..                                                    [ 74%]
tests/test_ys_helpers.py ........                                        [100%]

============================== 31 passed in 1.26s ==============================
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 
3.13" returned exit code 13
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Reply via email to