[From nobody Mon Nov  2 21:35:06 2026
Received: (at submit) by bugs.debian.org; 6 Jun 2026 12:35:08 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-20.9 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,FOURLA,FROMDEVELOPER,HAS_PACKAGE,NO_RELAYS,
 XMAILER_REPORTBUG autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 16; hammy, 150; neutral, 147; spammy,
 0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
 0.000-+--X-Debbugs-Cc, 0.000-+--H*Ad:N*Bug, 0.000-+--H*Ad:N*Tracking,
 0.000-+--HTo:N*Debian
Return-path: &lt;georgesk@debian.org&gt;
Received: via submission by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;georgesk@debian.org&gt;) id 1wVqF2-003VNv-22
 for submit@bugs.debian.org; Sat, 06 Jun 2026 12:35:08 +0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Georges Khaznadar &lt;georgesk@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: librust-bigdecimal-dev: bigdecimal depends on libm version 0.2.6;
 current version of libm is 0.2.15
Message-ID: &lt;178074930480.771039.5850789427278014933.reportbug@georges.khaznadar.fr&gt;
X-Mailer: reportbug 13.2.1+nmu0
Date: Sat, 06 Jun 2026 14:35:04 +0200
Delivered-To: submit@bugs.debian.org

Package: librust-bigdecimal-dev
Version: 0.4.10-1+b1
Severity: normal
X-Debbugs-Cc: georgesk@debian.org

Hello, I am trying to package cbor2 (https://tracker.debian.org/pkg/cbor2)
whose code used to be in C++ language, and is now in Rust language.

Here is an excerpt of Cargo.toml which applies to cbor2:
---------------------------------8&lt;--------------------------
[dependencies]
bigdecimal = &quot;0.4.10&quot;
half = &quot;2.7.1&quot;
num-bigint = &quot;*&quot;
pyo3 = { version = &quot;0.28.0&quot;, features = [&quot;extension-module&quot;, &quot;num-bigint&quot;,
&quot;bigdecimal&quot;] }
---------------------------------8&lt;--------------------------

So I added packages librust-bigdecimal-dev, librust-half-dev, librust-pyo3-dev
as build-dependencies for package cbor2.

Unfortunately, the build fails, with the following message:

---------------------------------8&lt;--------------------------
error: failed to select a version for the requirement `libm = &quot;^0.2.6&quot;` (locked
to 0.2.16)
candidate versions found which didn't match: 0.2.15
location searched: directory source `/usr/share/cargo/registry` (which is
replacing registry `crates-io`)
required by package `bigdecimal v0.4.10`
    ... which satisfies dependency `bigdecimal = &quot;^0.4.10&quot;` (locked to 0.4.10)
of package `cbor2 v0.1.0 (/build/cbor2-6.1.2/rust)`
perhaps a crate was updated and forgotten to be re-vendored?
As a reminder, you're using offline mode (--offline) which can sometimes cause
surprising resolution failures, if this error is too confusing you may wish to
retry without `--offline`.
error: `cargo metadata --manifest-path rust/Cargo.toml --format-version 1`
failed with code 101
---------------------------------8&lt;--------------------------

Thank you for any help about this.

Best regards,                     Georges.



-- System Information:
Debian Release: forky/sid
  APT prefers stable
  APT policy: (900, 'stable'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.0.7+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages librust-bigdecimal-dev depends on:
ii  librust-autocfg-dev [librust-autocfg-1+default-dev]            1.5.0-1+b1
ii  librust-libm-dev [librust-libm-0.2+default-dev]                0.2.15-1+b1
pn  librust-num-bigint-0.4+std-dev                                 &lt;none&gt;
ii  librust-num-bigint-dev [librust-num-bigint-0.4-dev]            0.4.6-1+b1
pn  librust-num-integer-0.1+std-dev                                &lt;none&gt;
ii  librust-num-integer-dev [librust-num-integer-0.1-dev]          0.1.46-2+b1
pn  librust-num-traits-0.2+std-dev                                 &lt;none&gt;
ii  librust-num-traits-dev [librust-num-traits-0.2-dev]            0.2.19-2+b1
pn  librust-serde-1+derive-dev                                     &lt;none&gt;
ii  librust-serde-dev [librust-serde-1-dev]                        1.0.228-3+b1
pn  librust-serde-json-1+alloc-dev                                 &lt;none&gt;
ii  librust-serde-json-dev [librust-serde-json-1+arbitrary-precis  1.0.149-1
    ion-dev]

librust-bigdecimal-dev recommends no packages.

librust-bigdecimal-dev suggests no packages.

-- no debconf information
]