[Pkg-rust-maintainers] dh-cargo does not respect LTO options from DEB_BUILD_OPTIONS

Ximin Luo infinity0 at debian.org
Mon Apr 24 02:30:26 BST 2023


Zixing Liu:
> [..]
> 
> 
> I guess we could make the Cargo wrapper at /usr/share/cargo/bin/cargo to handle the LTO switches since it's closer to the real Cargo and easier to override in the packaging configurations.
> I will post my patches on the Debian Salsa when I finish the implementation.
> 
> 
>     Ximin is currently semi-afk, so I am not sure if he'll respond (soon).
> 
> 
> Understood. I will ping them on the Merge Request regarding the review process.
> 

Hello, I am still semi-afk - actually in China on semi-holiday atm - but I wanted to quickly say that the Cargo wrapper (/usr/share/cargo/bin/cargo) already passes on dpkg-buildflags' LDFLAGS which is -Wl,-z,relro on Debian. So this seems like a suitable place for what you're proposed, as it is similar to dpkg-buildflags.

I don't expect to have much free time myself to view the MR, but I'm happy for Fabian and/or the rest of the team to go ahead along these lines.

Best,
Ximin

-- 
GPG: ed25519/56034877E1F87C35
https://github.com/infinity0/pubkeys.git




More information about the Pkg-rust-maintainers mailing list