#1144303 borgbackup2: FTBFS: TypeError: Configuration.__init__() got an unexpected keyword argument 'tag'

#1144303#5
Date:
2026-08-13 12:58:47 UTC
From:
To:
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/202608/

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

Thanks.
--------------------------------------------------------------------------------
[...]
[9/9] Cythonizing src/borg/legacy/crypto/low_level.pyx
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
    main()
    ~~~~^^
  File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
                             ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 280, in build_wheel
    return _build_backend().build_wheel(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        wheel_directory, config_settings, metadata_directory
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 435, in build_wheel
    return _build(['bdist_wheel'])
  File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 426, in _build
    return self._build_with_temp_dir(
           ~~~~~~~~~~~~~~~~~~~~~~~~~^
        cmd,
        ^^^^
    ...<3 lines>...
        self._arbitrary_args(config_settings),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 407, in _build_with_temp_dir
    self.run_setup()
    ~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 320, in run_setup
    exec(code, locals())
    ~~~~^^^^^^^^^^^^^^^^
  File "<string>", line 263, in <module>
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 117, in setup
    return distutils.core.setup(**attrs)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 148, in setup
    _setup_distribution = dist = klass(attrs)
                                 ~~~~~^^^^^^^
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 323, in __init__
    _Distribution.__init__(self, dist_attrs)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 309, in __init__
    self.finalize_options()
    ~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 786, in finalize_options
    ep(self)
    ~~^^^^^^
  File "/usr/lib/python3/dist-packages/setuptools_scm/_integration/setuptools.py", line 159, in infer_version
    result.apply(dist)
    ~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3/dist-packages/setuptools_scm/_integration/version_inference.py", line 28, in apply
    version_string = infer_version_string(
        self.dist_name,
    ...<2 lines>...
        force_write_version_files=True,
    )
  File "/usr/lib/python3/dist-packages/setuptools_scm/_integration/version_inference.py", line 94, in infer_version_string
    config = _config_module.Configuration.from_file(
        dist_name=dist_name, pyproject_data=pyproject_data, **(overrides or {})
    )
  File "/usr/lib/python3/dist-packages/setuptools_scm/_config.py", line 293, in from_file
    return cls.from_data(relative_to=relative_to, data=args)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/setuptools_scm/_config.py", line 313, in from_data
    return cls(
        relative_to=relative_to,
    ...<2 lines>...
        **data,
    )
TypeError: Configuration.__init__() got an unexpected keyword argument 'tag'

TIP pass --env-dir and --sdist-extract-dir to keep the build environment and sources, then see https://build.pypa.io/en/stable/how-to/troubleshooting.html#debug-a-failed-build for help debugging a failed build
ERROR Backend subprocess exited when trying to invoke build_wheel
E: pybuild pybuild:485: build: plugin pyproject failed with: exit code=1: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14
dh_auto_build: error: pybuild --build -i python{version} -p 3.14 --parallel=2 returned exit code 13
make: *** [debian/rules:35: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1144303#10
Date:
2026-08-24 16:37:24 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
borgbackup2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1144303@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gianfranco Costamagna <locutusofborg@debian.org> (supplier of updated borgbackup2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 24 Aug 2026 11:27:19 +0200
Source: borgbackup2
Built-For-Profiles: noudeb
Architecture: source
Version: 2.0.0b22-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Borg Collective <team+borg@tracker.debian.org>
Changed-By: Gianfranco Costamagna <locutusofborg@debian.org>
Closes: 1144303
Changes:
 borgbackup2 (2.0.0b22-2) unstable; urgency=medium
 .
   * Fix missing  python3-backports.zstd during build
   * Revert 5237f9a00274a2348bde79210741f136225fb44c to fix build with older
     setuptools-scm (Closes: #1144303)
Checksums-Sha1:
 c837cc1115f0cdf5e34116d73284e195713bf69e 3156 borgbackup2_2.0.0b22-2.dsc
 49c634d2322853f3fdd6ec25f502423ae60f7fe0 27800 borgbackup2_2.0.0b22-2.debian.tar.xz
 101e39c481f1289e8f8f59859768f899dbd82e67 10514 borgbackup2_2.0.0b22-2_source.buildinfo
Checksums-Sha256:
 389d5319e500ed53bdbdecc492b61287669ce5eba0996e0bc0af6e6e01eac25e 3156 borgbackup2_2.0.0b22-2.dsc
 35683ed9535d402aaf5d559b9ce8025512b80251b3578a86a6152966f80062e7 27800 borgbackup2_2.0.0b22-2.debian.tar.xz
 0a23031598983f9445ef1a965535bc17719ae3d30c0486b22e23af08ba4c4f0a 10514 borgbackup2_2.0.0b22-2_source.buildinfo
Files:
 502163c8405d5300e155fe7c783df203 3156 admin - borgbackup2_2.0.0b22-2.dsc
 2b0663964746b2bf77f5981a94298d18 27800 admin - borgbackup2_2.0.0b22-2.debian.tar.xz
 1aa57da4cdd4f766898811dc93338e76 10514 admin - borgbackup2_2.0.0b22-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEkpeKbhleSSGCX3/w808JdE6fXdkFAmqMbwcACgkQ808JdE6f
Xdn1Zg/+LwNmZHljrLN2W6L+lIn9e2EXh704dugj1TUCrlRB2z87k4/Byx7k0nir
32sEDOSxXy18zK/xvgKTvTqtBCnF35l7ZSNyeuUd+zLiM/ZZ2qErzEHPfvoz7qw/
uPoDfhWKpXxZ7kZa/AJZHGtnarSM3OJzuyRn3DI2JtwJU1RA5UVpd+La8+Dh6wiL
dUt1mfd+4oIZPvqP4ZQo6jDBiM++i90Ol6AY/DhA2zwAfRRycH3b9X/6X3W+XxaD
m0PcIMsRLOS+N44/FZVPQ0O3G2hNvvAXAyj0dkR5E7jx3ipYSgMn5OFtdCD6wjaw
isbdQRUAngeqADU0efkvMH1fsltsPuBNule75mr9pEzxxpv7zA2PxxBbbxkgb2+u
jfE2Jmr+yuihsZphcczIYXOgrA7Ssab19Wz3PiQlze/aRJe5cU13UXoMvZRcl0n6
bdxjAF4Q3jcVVTm2GtzgRgcHnuCwSt7tzelDHZiwI0Ip08Q4ZqogyRcTqwRjhDib
Jw7vNSIVAcmeYH8pL0t1z0WNOgu3SAE6uMxWV1Dg7mca2lNktG2Dwm4B/8lMCLas
KqFPimSZM9TxJYRUrWwLdZq/XH607VpuRsrBUvgCgWCKNj9Km/G38ZeACV675baG
PCQQC2CDIguraIwX++8SZMnxEKaETsoDjHPcaQ0MuYaPE0x/jKo=
=zlqS
-----END PGP SIGNATURE-----