Installation fails on prefix: >>> Completed installing sys-apps/bat-0.12.0 into /srv/scratch/entrup/gentoo/var/tmp/portage/sys-apps/bat-0.12.0/image * Final size of build directory: 412592 KiB (402.9 MiB) * Final size of installed tree: 5540 KiB ( 5.4 MiB) * QA Notice: the following files are outside of the prefix: * /usr * /usr/bin * /usr/bin/bat * ERROR: sys-apps/bat-0.12.0::gentoo failed: * Aborting due to QA concerns: there are files installed outside the prefix Reproducible: Always Steps to Reproduce: 1. emerge bat
Is this a problem of the eclass? See: https://bugs.gentoo.org/702042
--root="${D}/usr" In src_install. So yeah, eclass problem. Try changing it to “${ED}/usr” and see if it helps.
(In reply to Georgy Yakovlev from comment #2) > --root="${D}/usr" > > In src_install. > So yeah, eclass problem. > Try changing it to “${ED}/usr” and see if it helps. It works partially. One rust ebuild is installable but then I get a file collision error: ``` >>> Installing (1 of 1) media-video/rav1e-9999::gentoo * This package will overwrite one or more files that may belong to other * packages (see list below). You can use a command such as `portageq * owners / <filename>` to identify the installed package that owns a * file. If portageq reports that only one package owns a file then do * NOT file a bug report. A bug report is only useful if it identifies at * least two or more packages that are known to install the same file(s). * If a collision occurs and you can not explain where the file came from * then you should simply ignore the collision since there is not enough * information to determine if a real problem exists. Please do NOT file * a bug report at https://bugs.gentoo.org/ unless you report exactly * which two packages install the same file(s). See * https://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how * to solve the problem. And once again, please do NOT file a bug report * unless you have completely understood the above message. * * Detected file collision(s): * * /srv/scratch/entrup/gentoo/usr/.crates.toml * * Searching all installed packages for file collisions... * * Press Ctrl-C to Stop * * sys-apps/bat-0.12.0:0::gentoo * /usr/.crates.toml ```
I was looking from cellphone, ofc there's another line in eclass should be rm -f "${ED}/usr/.crates.toml"
Yes, that works. Thank you.
thanks for testing and reporting =)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ee4123a38e4a84f0f74530054477b4336b1fcb0 commit 2ee4123a38e4a84f0f74530054477b4336b1fcb0 Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2019-12-06 19:51:34 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2019-12-06 20:04:00 +0000 cargo.eclass: fix cargo_src_install() on prefix Closes: https://bugs.gentoo.org/702168 Closes: https://bugs.gentoo.org/702042 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> eclass/cargo.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)