[Pkg-rust-maintainers] SOLVED: guidance on building a binary package from a crate when the default featureset is insufficient
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Feb 2 07:25:31 GMT 2022
On Wed 2022-02-02 01:47:35 -0500, Daniel Kahn Gillmor wrote:
> I'm trying to upgrade sequoia-sop in debian from 0.22.2 to 0.25.0. I'm
> failing because it wants to build a binary crate, but the binary target
> depends on a non-default feature of the crate itself.
[…]
> as far as i can tell, the problem is related to this argument to cargo:
>
> --cfg 'feature="default"'
>
> Which of course will not build the binary, since the binary depends on
> the non-default "cli" feature.
Turns out what i needed to do was to override dh_auto_test and
explicitly pass --features=cli, like so in debian/rules:
override_dh_auto_install:
dh_auto_install -O--buildsystem=cargo -- --features=cli
I'll upload 0.25.0-1 after i have a chance to test it a bit, and of
course it will need to make its way through NEW as well, since the -dev
package isn't in debian yet (i'm using collapse_features=true for this
package to avoid conflict with the ftp-team).
--dkg
More information about the Pkg-rust-maintainers
mailing list