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.
cargo.eclass appears fixed in this regard