Gentoo ebuilds for qemu and kvm have had a sed invocation to prevent stripping for quite some time. Recently, upstream added a configure option to disable stripping. As a side effect of the changes made upstream to support this option, the Gentoo sed call no longer prevents stripping. Thus, binaries which previously were not stripped are now stripped. The fix is to change the ebuild to use the new mechanism to ask the build process not to strip binaries. I will attach a patch to do this. Before applying this patch, merging the build results in the following: * QA Notice: Pre-stripped files found: * /usr/bin/kvm-nbd * /usr/bin/kvm-img * /usr/bin/kvm * /usr/bin/qemu-io * /usr/share/kvm/openbios-ppc * /usr/share/kvm/openbios-sparc64 * /usr/share/kvm/openbios-sparc32 After applying this patch, merging the build produces the following: * QA Notice: Pre-stripped files found: * /usr/share/kvm/openbios-ppc * /usr/share/kvm/openbios-sparc64 * /usr/share/kvm/openbios-sparc32 strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment usr/bin/kvm-nbd usr/bin/kvm-img usr/bin/kvm usr/bin/qemu-io The OpenBIOS files are bundled in the tarball.
Created attachment 190093 [details, diff] Patch to kvm-85-r1 ebuild to request that upstream build process not strip binaries This patch removes the now-ineffective sed call that once prevented stripping, and adds an argument to the upstream configure script to ask that it not strip binaries. This has the useful side effect that when the upstream configure script prints its strip setting, that value is consistent with what actually occurs.
To remove the OpenBIOS pre-stripped BLOBs which will go unused otherwise (there is no support for SPARC or PPC in kvm's userspace ebuild) there used to be also a patch "09_all_qemu-no-blobs.patch" which was dropped from the last patchset. an alternative would be to enable (assumming support for it from emerge is provided, as it is for x86 and amd64) of : RESTRICT="binchecks" this also has the sideffect of removing the scary warning about executable stacks in those binaries which asks for bugs to be filed and that will be otherwise bogus
Fixed in kvm-85-r2