Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 702168 - sys-apps/bat - QA Notice: the following files are outside of the prefix: /usr/bin/bat
Summary: sys-apps/bat - QA Notice: the following files are outside of the prefix: /usr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-06 14:22 UTC by gerion
Modified: 2019-12-06 20:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gerion 2019-12-06 14:22:54 UTC
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
Comment 1 gerion 2019-12-06 14:38:28 UTC
Is this a problem of the eclass?

See: https://bugs.gentoo.org/702042
Comment 2 Georgy Yakovlev archtester gentoo-dev 2019-12-06 17:47:30 UTC
 --root="${D}/usr" 

In src_install.
So yeah, eclass problem.
Try changing it to “${ED}/usr” and see if it helps.
Comment 3 gerion 2019-12-06 19:48:12 UTC
(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
```
Comment 4 Georgy Yakovlev archtester gentoo-dev 2019-12-06 19:50:41 UTC
I was looking from cellphone, ofc there's another line in eclass should be

rm -f "${ED}/usr/.crates.toml"
Comment 5 gerion 2019-12-06 20:02:54 UTC
Yes, that works. Thank you.
Comment 6 Georgy Yakovlev archtester gentoo-dev 2019-12-06 20:04:06 UTC
thanks for testing and reporting =)
Comment 7 Larry the Git Cow gentoo-dev 2019-12-06 20:04:11 UTC
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(-)