Package: python3-setuptools-rust
Version: 1.5.2-2
Severity: wishlist
X-Debbugs-Cc: aeru...@aerusso.net

Dear Maintainer,

I'm trying to backport matrix-synapse, which build-depends on this package. I am unable to use it for this purpose because python3-setuptools-rust requires cargo, and does not allow for cargo-web to satisfy that requirement.

I've attached a trivial patch that simplifies the build-dependency. If this is acceptable, I'd like to also get this updated version into backports.

I'll add that I've applies this patch onto 1.5.2-2 and can confirm that cargo-web indeed interacts well enough with python3-setuptools-rust as packaged to actually build something.

Best,
Antonio Russo
From 0acc174812eb3020e57ed05e4c7e5d5efd6d18c9 Mon Sep 17 00:00:00 2001
From: Antonio Enrico Russo <aeru...@aerusso.net>
Date: Wed, 18 Sep 2024 18:39:10 -0600
Subject: [PATCH] Relax rust dependency

The cargo dependency automatically pulls in a compatible version of
rust, so remove that redundant requirement.  Additionally, cargo-web is
allowed to satisfy the cargo dependency.

Signed-off-by: Antonio Enrico Russo <aeru...@aerusso.net>
---
 debian/control | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index dd0b005..b48120d 100644
--- a/debian/control
+++ b/debian/control
@@ -22,7 +22,7 @@ Vcs-Git: https://salsa.debian.org/python-team/packages/python-setuptools-rust.gi
 Vcs-Browser: https://salsa.debian.org/python-team/packages/python-setuptools-rust
 
 Package: python3-setuptools-rust
-Depends: python3-setuptools, ${misc:Depends}, ${python3:Depends}, rustc, cargo
+Depends: python3-setuptools, ${misc:Depends}, ${python3:Depends}, cargo | cargo-web
 Architecture: all
 Description: Setuptools Rust extension plugin
  setuptools-rust is a plugin for setuptools to build Rust Python
-- 
2.45.1

Reply via email to