Package: rust-blosc2-rs
Version: 0.4.0-1
Severity: serious
Tags: patch
Justification: uninstallable
User: [email protected]
Usertags: origin-ubuntu stonking ubuntu-patch

Hi,

librust-blosc2-rs-dev is uninstallable on all architectures, which is why
rust-blosc2-rs never migrated to testing:

  librust-blosc2-rs-dev Depends:
librust-blosc2-sys-0.4+regenerate-bindings-dev

rust-blosc2-sys 0.4.0+dfsg-1 doesn't provide that: its
debian/patches/drop-static
removes the "regenerate-bindings" feature (together with "shared" and
"static"), so it only provides the +bindgen variant.

rust-blosc2-rs's own debian/patches/drop-static removes "shared" and
"static"
but keeps

  regenerate-bindings = ["blosc2-sys/regenerate-bindings"]

so debcargo still generates the +regenerate-bindings feature package and the
dependency on the blosc2-sys feature that no longer exists.

The attached change extends rust-blosc2-rs's drop-static patch to also drop
the regenerate-bindings feature, matching blosc2-sys. debian/control then
needs
regenerating with debcargo (the librust-blosc2-rs+regenerate-bindings-dev
provides and the librust-blosc2-sys-0.4+regenerate-bindings-dev dependency
go
away). I checked the updated patch applies cleanly to the 0.4.0 upstream
source.

We hit this in Ubuntu, where the package is stuck in proposed for the same
reason.

Thanks,
Sebastien Bacher
--- a/debian/patches/drop-static
+++ b/debian/patches/drop-static
@@ -2,7 +2,7 @@
 ===================================================================
 --- blosc2-rs.orig/Cargo.toml
 +++ blosc2-rs/Cargo.toml
-@@ -63,11 +63,9 @@ version = "0.8.5"
+@@ -63,11 +63,8 @@ version = "0.8.5"
  deactivate-zlib = ["blosc2-sys/deactivate-zlib"]
  deactivate-zlib-optim = ["blosc2-sys/deactivate-zlib-optim"]
  deactivate-zstd = ["blosc2-sys/deactivate-zstd"]
@@ -11,7 +11,7 @@
  prefer-external-lz4 = ["blosc2-sys/prefer-external-lz4"]
  prefer-external-zlib = ["blosc2-sys/prefer-external-zlib"]
  prefer-external-zstd = ["blosc2-sys/prefer-external-zstd"]
- regenerate-bindings = ["blosc2-sys/regenerate-bindings"]
+-regenerate-bindings = ["blosc2-sys/regenerate-bindings"]
 -shared = ["blosc2-sys/shared"]
 -static = ["blosc2-sys/static"]
  use-system-blosc2 = ["blosc2-sys/use-system-blosc2"]

Reply via email to