Hi Fabian, On 21.04.22 at 08:43 Fabian Vogt wrote:
Am Mittwoch, 20. April 2022, 21:52:05 CEST schrieb Johannes Kastl:
As I have no clue from rust, and the Rust packaging documentation does not mention stripping, how would I do that properly for a SUSE/openSUSE package?
It looks like you debuginfo is disabled in the project: https://build.opensuse.org/repositories/home:ojkastl_buildservice/hurl
That basically means it no longer passes "-g" to CFLAGS/CXXFLAGS, but it also skips stripping of binaries at the end of build. rust doesn't care about CFLAGS/CXXFLAGS and rpm-build/rust doesn't handle the debuginfo flag otherwise, so the binaries end up with debuginfo despite the debuginfo flag disabled and don't get stripped.
If you just enable debuginfo in the project (usually the default), the binaries should be stripped again and the warnings disappear.
Thanks for the information, I was not aware of the fact that disabling debuginfo on project level has influence on rpmlint warnings. Good to know. I just enabled debuginfo again on project level, no idea why I disabled it in the first place.... Kind regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537