When trying to install glances within Gentoo RAP ( ), the installation step fails since the install wants to write to the /etc directory (and Gentoo RAP is installed into a different EPREFIX). The fix for v2.11 of glances is to add ${EPREFIX} to python_prepare_all() in sys-process/glances/glances-2.11.ebuild, i.e., python_prepare_all() { # Remove duplicate entries of a prebuilt doc build and # ensure install of the file glances.conf in /etc/${PN} sed \ -e '/share\/doc\/glances/d' \ -e "s/'CONTRIBUTING.md',//" \ -e "s:'conf/glances.conf':('${EPREFIX}/etc/glances', ['conf/glances.conf':g" \ -i setup.py || die distutils-r1_python_prepare_all } More specifically, ${EPREFIX} is added to this line: -e "s:'conf/glances.conf':('${EPREFIX}/etc/glances', ['conf/glances.conf':g" \ With this, glances (v2.11) will install properly within a Gentoo RAP session. (Other versions of glances ebuilds would require the same.)
Version bump with ${EPREFIX} added https://github.com/gentoo/gentoo/pull/6116
1b016139ee17c351bb388cecdcc01ad17e3dc792
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cc7894302feb910eadd152e1ad0faf2bf24ad38 commit 5cc7894302feb910eadd152e1ad0faf2bf24ad38 Author: Patrice Clement <monsieurp@gentoo.org> AuthorDate: 2018-04-15 17:27:20 +0000 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: 2018-04-15 17:27:44 +0000 sys-process/glances: clean up old. Closes: https://bugs.gentoo.org/635694 Package-Manager: Portage-2.3.24, Repoman-2.3.6 sys-process/glances/Manifest | 5 -- sys-process/glances/glances-2.10-r1.ebuild | 73 ------------------------------ sys-process/glances/glances-2.10.ebuild | 72 ----------------------------- sys-process/glances/glances-2.11.ebuild | 73 ------------------------------ sys-process/glances/glances-2.7.1.ebuild | 72 ----------------------------- sys-process/glances/glances-2.8.1.ebuild | 72 ----------------------------- sys-process/glances/glances-2.9.1.ebuild | 72 ----------------------------- 7 files changed, 439 deletions(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1939b9cc4d76902fa405ecc2a05fa1f198f8e0f8 commit 1939b9cc4d76902fa405ecc2a05fa1f198f8e0f8 Author: Patrice Clement <monsieurp@gentoo.org> AuthorDate: 2018-04-15 17:26:10 +0000 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: 2018-04-15 17:27:43 +0000 sys-process/glances: stable for amd64. mark stable for the remaining arches using the ALLARCHES policy. Bug: https://bugs.gentoo.org/635694 Package-Manager: Portage-2.3.24, Repoman-2.3.6 sys-process/glances/glances-2.11.1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)}