Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635694 - sys-process/glances ebuild missing ${EPREFIX}...
Summary: sys-process/glances ebuild missing ${EPREFIX}...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: tsmksubc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-28 16:20 UTC by Paul Preney
Modified: 2018-04-15 17:27 UTC (History)
2 users (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 Paul Preney 2017-10-28 16:20:43 UTC
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.)
Comment 1 tsmksubc 2017-11-04 14:55:05 UTC
Version bump with ${EPREFIX} added https://github.com/gentoo/gentoo/pull/6116
Comment 2 Patrice Clement gentoo-dev 2018-04-15 17:25:00 UTC
1b016139ee17c351bb388cecdcc01ad17e3dc792
Comment 3 Larry the Git Cow gentoo-dev 2018-04-15 17:27:50 UTC
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(-)}