https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-lang/starlark-rust-0.4.0 does not respect CFLAGS/LDFLAGS. Discovered on: amd64 (internal ref: ci) NOTE: This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html To reproduce this issue you may want to add "-frecord-gcc-switches" to CFLAGS/CXXFLAGS/FFLAGS/FCFLAGS and LDFLAGS="${LDFLAGS} -Wl,--defsym=__gentoo_check_ldflags__=0". If this is not something about c/c++ see this bug as an hint to hide the QA warning (with QA_FLAGS_IGNORED) where is not possible to respect CFLAGS/LDFLAGS.
Created attachment 716952 [details] build.log build log and emerge --info
I wonder if there some way to do the equivalent of CFLAGS=-frecord-gcc-switches in RUSTFLAGS so that portage can QA check to see if your RUSTFLAGS visible in the binaries?
> <zmedico> gyakovlev: is there some way to do the equivalent of CFLAGS=-frecord-gcc-switches in RUSTFLAGS so that portage QA check to see if your RUSTFLAGS visible in the binaries? Related bug report is this one about dev-lang/starlark-rust no respecting CFLAGS/LDFLAGS: https://bugs.gentoo.org/796887 > -*- zmedico reassigned the bug to dev-portage > <gyakovlev> zmedico: last time I checked it was an unstable options ( gated behind -Z flag) > <gyakovlev> so it will not work with USE=nightly > <gyakovlev> without* > <zmedico> aha I peaked behind -Z and there was lots of stuff there :-) > <zmedico> can fix it in portage after it's available in stable
Rust packages will have to use QA_FLAGS_IGNORED until we've got some kind of RUSTFLAGS support.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82ff8557c0395218bd635c2e14c71b1ce026afa0 commit 82ff8557c0395218bd635c2e14c71b1ce026afa0 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2021-06-22 20:36:45 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2021-06-22 20:45:43 +0000 dev-lang/starlark-rust: set QA_FLAGS_IGNORED=".*" (bug 796887) Bug: https://bugs.gentoo.org/796887 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Zac Medico <zmedico@gentoo.org> dev-lang/starlark-rust/starlark-rust-0.4.0.ebuild | 3 +++ 1 file changed, 3 insertions(+)