Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654534 - app-editors/nano-2.9.6 writes files outside EPREFIX
Summary: app-editors/nano-2.9.6 writes files outside EPREFIX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-01 15:21 UTC by Paul Preney
Modified: 2018-05-02 08:34 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 Paul Preney 2018-05-01 15:21:49 UTC
Building nano-2.9.6 installs files outside the prefix, e.g., from a Gentoo Prefix installation attempt:

 * QA Notice: the following files are outside of the prefix:
 * /trash
 * /trash/nanorc.5.html
 * /trash/faq.html
 * /trash/nano.html
 * /trash/nano.1.html
 * /trash/rnano.1.html
 * ERROR: app-editors/nano-2.9.6::gentoo failed:
 *   Aborting due to QA concerns: there are files installed outside the prefix

The issue is fixed by changing nano-2.9.6.ebuild's src_configure() section, i.e.,

src_configure() {
  use static && append-ldflags -static
  local myconf=(
    --bindir="${EPREFIX}"/bin
    --htmldir=/trash
    $(use_enable !minimal color)
    $(use_enable !minimal multibuffer)
    $(use_enable !minimal nanorc)
    --disable-wrapping-as-root
    $(use_enable magic libmagic)
[snip]

so that the bare path:

    --htmldir=/trash

is changed to have an EPREFIX:

    --htmldir="${EPREFIX}"/trash

:-)
Comment 1 Sammy Pfeiffer 2018-05-02 08:16:05 UTC
This blocks the actual bootstrapping of Gentoo Prefix.

Until fixed upstream, a quick workaround (for anyone that got blocked like me):


echo ">app-editors/nano-2.9.5" >> $EPREFIX/etc/portage/package.mask


And execute the bootstrap.sh script again, answering the questions in the same way as before.
Comment 2 Larry the Git Cow gentoo-dev 2018-05-02 08:34:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e1ec3634241d918a3a133e52efba38f4cb95b2c

commit 9e1ec3634241d918a3a133e52efba38f4cb95b2c
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2018-05-02 08:34:03 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2018-05-02 08:34:20 +0000

    app-editors/nano: Fixed prefix installations.
    
    Closes: https://bugs.gentoo.org/654534
    Package-Manager: Portage-2.3.33, Repoman-2.3.9

 app-editors/nano/nano-2.9.6.ebuild | 3 ++-
 app-editors/nano/nano-9999.ebuild  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)