Hi Johannes,

Quoting Johannes Schauer Marin Rodrigues (2025-10-01 17:42:36)
> I'm a rust noob trying to package the crate boringtun using
> debcargo-conf. When trying to build it, the following build dependencies
> are being generated but missing:
> 
> librust-x25519-dalek-2.0+default-dev (<< 2.0.1-~~)
> librust-x25519-dalek-2.0+reusable-secrets-dev (<< 2.0.1-~~)
> librust-x25519-dalek-2.0+static-secrets-dev (<< 2.0.1-~~)
> 
> I was told by the folks in #debian-rust that src:rust-curve25519-dalek
> already packaged the x25519-dalek crate and that one possible solution
> to my issue would be if librust-x25519-dalek-dev would provide its
> virtual package with a "2.0" instead of just a "2" in their name.
> Indeed, librust-x25519-dalek-dev provides:
> 
> librust-x25519-dalek-2+default-dev (= 2.0.1+4.2.0+dfsg-1)
> librust-x25519-dalek-2+reusable-secrets-dev (= 2.0.1+4.2.0+dfsg-1)
> librust-x25519-dalek-2+static-secrets-dev (= 2.0.1+4.2.0+dfsg-1)
> 
> The difference in the name is the "2" versus the "2.0". Would that be
> possible?

What is the purpose for such declaration?

I am aware that Rust team tooling automatically generates such tight
package relation declaration, but why?

According to (my understanding of) semver specification, There should
be no structural reason to need feature "default" more narrowly than
the level of a stable version "2".

The reason I avoid providing it is that a) I see no need for it, and
b) it bloats the Debian packaging database.

 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/
 * Sponsorship: https://ko-fi.com/drjones

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature

Reply via email to