Bug#1063735: python-maturin - upcoming rust-indexmap update.

2024-06-01 Thread John Paul Adrian Glaubitz
Package: python-maturin
Followup-For: Bug #1063735
Control: severity -1 serious

Hello,

I am setting the severity to serious now as this actually causes python-maturin
to fails to build from source [1]:

cargo generate-lockfile --offline
error: failed to select a version for the requirement `indexmap = "^1.9.3"`
candidate versions found which didn't match: 2.2.6
location searched: directory source `/usr/share/cargo/registry` (which is 
replacing registry `crates-io`)
required by package `maturin v1.3.2 (/<>)`
perhaps a crate was updated and forgotten to be re-vendored?

Thanks,
Adrian

> [1] 
> https://buildd.debian.org/status/fetch.php?pkg=python-maturin=sparc64=1.3.2-1=1717193660=0

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Bug#1063735: python-maturin - upcoming rust-indexmap update.

2024-02-11 Thread Peter Michael Green

Package: python-maturin

Now that rust-ahash 0.8 is in trixie and noble I hope to update
rust-hashbrown and rust-indexmap soon to versions 0.14.x
and version 2.x.x respectively. The new versions are currently
available in experimental.

Currently the debian dependency on rust-indexmap
has no upper limit, but the cargo dependency does have
an upper limit.

python-maturin upstream did not make any code changes
when bumping the dependency to 2.x and after removing
the upper limit I was able to build python-maturin
successfully against the new indexmap.

A debdiff is attatched which removes the upper limit
diff -Nru python-maturin-1.3.2/debian/changelog 
python-maturin-1.3.2/debian/changelog
--- python-maturin-1.3.2/debian/changelog   2024-01-21 00:21:43.0 
+
+++ python-maturin-1.3.2/debian/changelog   2024-02-11 03:59:53.0 
+
@@ -1,3 +1,10 @@
+python-maturin (1.3.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Relax cargo dependency on indexmap.
+
+ -- Peter Michael Green   Sun, 11 Feb 2024 03:59:53 +
+
 python-maturin (1.3.2-1) unstable; urgency=medium
 
   [ Andreas Tille ]
diff -Nru python-maturin-1.3.2/debian/patches/relax-rust-indexmap 
python-maturin-1.3.2/debian/patches/relax-rust-indexmap
--- python-maturin-1.3.2/debian/patches/relax-rust-indexmap 1970-01-01 
00:00:00.0 +
+++ python-maturin-1.3.2/debian/patches/relax-rust-indexmap 2024-02-11 
03:59:33.0 +
@@ -0,0 +1,13 @@
+Index: python-maturin-1.3.2/Cargo.toml
+===
+--- python-maturin-1.3.2.orig/Cargo.toml
 python-maturin-1.3.2/Cargo.toml
+@@ -61,7 +61,7 @@ once_cell = "1.7.2"
+ rustc_version = "0.4.0"
+ semver = "1.0.13"
+ target-lexicon = "0.12.8"
+-indexmap = "1.9.3"
++indexmap = ">= 1.9.3"
+ pyproject-toml = "0.7.0"
+ python-pkginfo = "0.5.5"
+ textwrap = "0.16.0"
diff -Nru python-maturin-1.3.2/debian/patches/series 
python-maturin-1.3.2/debian/patches/series
--- python-maturin-1.3.2/debian/patches/series  2024-01-21 00:21:43.0 
+
+++ python-maturin-1.3.2/debian/patches/series  2024-02-11 03:59:15.0 
+
@@ -18,3 +18,4 @@
 relax-pyproject-toml
 relax-python-pkginfo
 relax-tracing-subscriber
+relax-rust-indexmap