Build a non-stripped rust-coreutils binary for dh_setup_copyright
Rust binaries stripped at linking time are smaller than binaries stripped with dh_strip. Since we want the smaller binary possible for rust-coreutils, we strip debug symbols at linking time, but that means dh_setup_copyright is then not able to extract required data. As a workaround we build here a non-stripped binary only for dh_setup_copyright. See infrastructure/apertis-issues#431 (closed)
This is only a workaround until we can get an equally small binary with dh_strip.
Merge request reports
Activity
requested review from @wlozano
- Resolved by Walter Lozano
The approach seems correct, however, the output file rust-coreutils_bin2sources_amd64.json does not look complete, I don't see as many entries as I would expect. I haven't confirmed this, so I would suggest you to first build rust-coreutils from a previous version to confirm (like 0.0.17-2+apertis4).
My dev intuition tells me that you need to take into account the comment in https://gitlab.apertis.org/pkg/rust-coreutils/-/blob/apertis/v2024pre/debian/rules#L9 which points to the changes in 6305e130
- Resolved by Walter Lozano
mentioned in issue infrastructure/apertis-issues#431 (closed)
mentioned in merge request !34 (closed)
mentioned in merge request !35 (closed)