#977627 librust-block-buffer-dev: should Provides: librust-block-buffer+block-padding-dev

Package:
librust-block-buffer-dev
Source:
rust-block-buffer
Description:
Buffer type for block processing of data - Rust source code
Submitter:
Daniel Kahn Gillmor
Date:
2022-06-01 15:27:04 UTC
Severity:
normal
#977627#5
Date:
2020-12-17 21:19:59 UTC
From:
To:
In an attempt to avoid creating an empty "feature" package, the
packaging for rust-block-buffer removed the optionalness of
block-buffer's dependency on block-padding.

The result is that the debcargo-generated .deb doesn't know that it
should add any Provides: entries like
librust-block-buffer+block-padding-dev.

This makes it so a pending update to rust-sha3 can't currently build,
because it depends on block-buffer with the block-padding feature.

I tried patching in a few lines to rust-block-buffer's Cargo.toml:

~~~~
[features]
block-padding = []
~~~~

But the result from that was this error:

~~~~
Something failed: failed to parse manifest at `…/debcargo-conf/build/block-buffer/Cargo.toml`

Caused by: Features and dependencies cannot have the same name: `block-padding`
~~~~

If we can release a version of debcaro with the collapse_features
mechanism, then an update of rust-block-buffer with that enabled should
resolve this.

In the meantime, i'm going to work around it by fiddling with the
dependencies of rust-sha3.

#977627#12
Date:
2022-06-01 15:24:02 UTC
From:
To:
The patch dropping the optional flag from the block-padding dependency has been dropped with te upgrade to 0.10.2