Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682456 - dev-util/cbindgen-0.8.2: QA Notice: the following files are outside of the prefix
Summary: dev-util/cbindgen-0.8.2: QA Notice: the following files are outside of the pr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-03 20:04 UTC by Alex Wilson
Modified: 2021-01-18 18:53 UTC (History)
1 user (show)

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 Alex Wilson 2019-04-03 20:04:56 UTC
While emerging firefox, cbindgen-0.8.2 attempted to install files outside the prefix. Which resulted in the following error: 

>>> Completed installing cbindgen-0.8.2 into /dev/shm/portage/dev-util/cbindgen-0.8.2/image

 * Final size of build directory: 213156 KiB (208.1 MiB)
 * Final size of installed tree:    8772 KiB (  8.5 MiB)

 * QA Notice: the following files are outside of the prefix:
 * /usr
 * /usr/bin
 * /usr/bin/cbindgen
 * ERROR: dev-util/cbindgen-0.8.2::gentoo failed:
 *   Aborting due to QA concerns: there are files installed outside the prefix
 * 
 * Call stack:
 *   misc-functions.sh, line 586:  Called install_qa_check
 *   misc-functions.sh, line 132:  Called source 'install_symlink_html_docs'
 *            05prefix, line 114:  Called install_qa_check_prefix
 *            05prefix, line  27:  Called die
 * The specific snippet of code:
 *                      die "Aborting due to QA concerns: there are files installed outside the prefix"

I worked around this by patching $EPREFIX/usr/portage/eclass/cargo.eclass with the following:
$ diff usr/portage/eclass/cargo.old.eclass usr/portage/eclass/cargo.eclass
135c135
<       cargo install -j $(makeopts_jobs) --root="${D}/usr" $(usex debug --debug "") "$@" \
---
>       cargo install -j $(makeopts_jobs) --root="${ED}/usr" $(usex debug --debug "") "$@" \

After that patch to the cargo.eclass it installed it in the prefix correctly.
Comment 1 Fabian Groffen gentoo-dev 2021-01-18 18:53:37 UTC
cargo.eclass appears fixed in this regard