Re: [yocto-patches] [meta-selinux][PATCH]] libsepol: disable LTO to fix buildpaths QA failure
Thomas Perrot <[email protected]>
| Newsgroups | org.yoctoproject.lists.yocto-patches |
|---|---|
| Message-ID | <[email protected]> |
Hello Yi, On Thu, 2026-04-02 at 16:31 +0800, Yi Zhao wrote: > Hi Thomas, > > > Could you please provide the build steps to reproduce this QA > failure? To reproduce it, LTO is required to be enabled. For example: DISTRO_FEATURES:append = " lto" require conf/distro/include/lto.inc Kind regards, Thomas > I > can not reproduce the issue, even without applying this patch. > > > Thanks, > > Yi > > On 3/28/26 23:58, Thomas Perrot via lists.yoctoproject.org wrote: > > From: Thomas Perrot <[email protected]> > > > > Fat LTO objects in the static library embed original source paths > > in > > .gnu.lto_* IR sections. Unlike DWARF output, these sections are not > > affected by -ffile-prefix-map, causing TMPDIR references to survive > > into the installed libsepol-staticdev package. > > > > Signed-off-by: Thomas Perrot <[email protected]> > > --- > > recipes-security/selinux/libsepol_3.10.bb | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/recipes-security/selinux/libsepol_3.10.bb b/recipes- > > security/selinux/libsepol_3.10.bb > > index 0423a2a6ea31..0a51aba28ee8 100644 > > --- a/recipes-security/selinux/libsepol_3.10.bb > > +++ b/recipes-security/selinux/libsepol_3.10.bb > > @@ -13,4 +13,8 @@ inherit lib_package > > > > DEPENDS = "flex-native" > > > > +# LTO fat objects in static library embed original source paths in > > .gnu.lto_* IR > > +# sections which are not affected by -ffile-prefix-map, causing > > buildpaths QA failure > > +LTO = "" > > + > > BBCLASSEXTEND = "native" -- Thomas Perrot, Bootlin Embedded Linux and kernel engineering https://bootlin.com
signature.asc
(application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEh0B3xqajCiMDqBIhn8ALBXH+Cu0FAmnl8kIACgkQn8ALBXH+ Cu3nDAv+NDcX7gbBGtnliZUfKyEAr53kbzd0d9NPdOq2rmO0hGZ8AK5GYJE7KJSE w+eu/nyJQsSUDkEP9bfIMQ6uANaA7QvS8GVNmJl3jWNICo4lW/sJB2MLpAf86TYf sE8/eU6Ax1ppHekImEhjmXKI7yz9dHCyQu7LKjxBfTGaGJobZVCY/3Pzcj6GXmBn Eb4onTO96TPKqp/HsaRofNVroum67wiuIY4cc942ZloJytwWeytEl8SkPzm6drh0 wWtua5K3I7WztspWkgkoWCs5zq9dGn9xgFOR8HjAJNJ4deyrmSiK+nq9bg5xJZPn RvUu77maWnTrWchn7iqFnHrOh7+z0GQGnlzlV6rMRMC9xuouiadxwZDm4g1m/jqx 9EfF8a9O986qz/dMJ1GbDBMZtcYGyvlvOmvrwH1EQwTDMjNppFn6Uj6C/aWxRF25 2hBgapCPhXpi2CSdGSUORGapwyStcqXZjrzK0K8IhcHTQZf4Vlv+dOQ/OfD+q39g +qK0c1oy =tKgD -----END PGP SIGNATURE-----