Source: rust-cbindgen-web
Version: 0.26.0-3~deb11u1
Severity: serious
Tags: ftbfs patch

Hello,

rust-cbindgen-web build-deps on cargo-mozilla and rustc-web,
but rustc-web depends on cargo-web that conflicts with cargo-mozilla.

So, these build-deps are unresolvable. I was able to build it by
using cargo-web as build-deps instead of cargo-mozilla and by
patching cargo-web to provide cargo since its required to fulfill
dependencies of dh-cargo.

Thank you.

Best,
Dylan
From 6e17b32c5670fec3ea3f3b2331a5b7985a184ba5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dylan=20A=C3=AFssi?= <dylan.ai...@collabora.com>
Date: Thu, 10 Oct 2024 10:39:28 +0200
Subject: [PATCH] Make cargo-web provides cargo
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Without it we have a build-deps conflicts preventing to build
rust-cbindgen-web because it build-deps on cargo-mozilla AND rustc-web,
but rustc-web depends on cargo-web that conflicts with cargo-mozilla.
Using cargo-web instead of cargo-mozilla is not currently possible
because cargo-web doesn't fulfill dependencies of dh-cargo which is
also a build-deps of rust-cbindgen-web.

Signed-off-by: Dylan Aïssi <dylan.ai...@collabora.com>
---
 debian/control | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/control b/debian/control
index afc21c439..a3dc415a2 100644
--- a/debian/control
+++ b/debian/control
@@ -318,6 +318,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends},
          gcc | clang | c-compiler
 Suggests: cargo-web-doc, python3
 Conflicts: cargo, cargo-mozilla
+Provides: cargo (= ${binary:Version})
 Description: Rust package manager
  Cargo is a tool that allows Rust projects to declare their various
  dependencies, and ensure that you'll always get a repeatable build.
-- 
GitLab

From 0bd1502f022011b55f1475b54b9364cf82f12ce3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dylan=20A=C3=AFssi?= <dylan.ai...@collabora.com>
Date: Thu, 10 Oct 2024 15:32:39 +0200
Subject: [PATCH] Build-deps on cargo-web instead of cargo-mozilla to avoid
 conflict with rustc-web
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Dylan Aïssi <dylan.ai...@collabora.com>
---
 debian/control | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 68405a2..5b255d7 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: utils
 Priority: optional
 Build-Depends: debhelper (>= 12),
  dh-cargo (>= 24),
- cargo-mozilla:native,
+ cargo-web:native,
  rustc-web:native (>= 1.64),
  libstd-rust-web-dev,
  help2man,
-- 
GitLab

Reply via email to