#1101734 dh-cargo: should not attempt to build/test/install crate in --arch-all build

#1101734#5
Date:
2025-03-31 09:29:38 UTC
From:
To:
Dear Maintainer,

from #debian-rust today:

<f_g> for chameleon, you probably want to skip the build for the :all packages
      (those only ship symlinks/docs, right?)
<f_g> could maybe be fixed in dh-cargo, to only build as part of the -arch
      build, and not for -indep
<f_g> something for forky, where I want to split of `build` from `install` as well
<f_g> | h01ger: it's actually the auto_install step that triggers the build atm
        with dh-cargo, so you'd need to override that
<f_g> and maybe auto_test, depending on circumstences
<h01ger> i just looked at
https://buildd.debian.org/status/package.php?p=rust-sequoia-chameleon-gnupg
         and it fails in dh_auto_tests
<f_g> I didn't have this particular use case in my mind, because debcargo only
      generates :any packages, but of course it's valid to override d/control
      to add :all packages :-/
<f_g> would you mind filing a dh-cargo bug?
<f_g> this should only affect debcargo+dh-cargo packages that add an :all package..
      a quick grep indicates chameleon is the only such package ;)
<f_g> (there are only 30 crates left that override d/control at all! a lot fewer
      than I thought)

Thanks for maintaining dh-cargo!