Package: python-libcst
Version: 1.4.0-1.1
Severity: serious
Tags: patch
python-libcst's Cargo.toml asks for version 1.x of the thiserror
crate. Currently Debian has two versions of the crates, version
1.x in the librust-thiserror-1-dev package and version 2.x in
the librust-thiserror-dev package. Your package currently has
A debian dependency on librust-thiserror-dev which leads to a
FTBFS.
I initially ran into this issue while working on raspbian, but
it's also showing up on "reproducible builds", so it's in no
way raspbian specify.
After adjusting the Dependency I was able to build the package
successfully in a raspbian trixie-staing environment. I did
not encounter bug 1094054
diff -Nru python-libcst-1.4.0/debian/changelog
python-libcst-1.4.0/debian/changelog
--- python-libcst-1.4.0/debian/changelog 2024-11-19 20:39:05.000000000
+0000
+++ python-libcst-1.4.0/debian/changelog 2025-02-13 12:47:33.000000000
+0000
@@ -1,3 +1,9 @@
+python-libcst (1.4.0-1.1+rpi1) trixie-staging; urgency=medium
+
+ * Fix build-dependency for thiserror crate.
+
+ -- Peter Michael Green <plugw...@raspbian.org> Thu, 13 Feb 2025 12:47:33
+0000
+
python-libcst (1.4.0-1.1) unstable; urgency=medium
* Non-maintainer upload.
diff -Nru python-libcst-1.4.0/debian/control python-libcst-1.4.0/debian/control
--- python-libcst-1.4.0/debian/control 2024-11-19 20:39:05.000000000 +0000
+++ python-libcst-1.4.0/debian/control 2025-02-13 12:47:29.000000000 +0000
@@ -9,7 +9,7 @@
librust-paste-dev,
librust-peg-dev,
librust-pyo3-dev,
- librust-thiserror-dev,
+ librust-thiserror-1-dev,
librust-trybuild-dev,
librust-getopts-dev,
pybuild-plugin-pyproject,