Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666682 - app-misc/neofetch-5.0.0 installs in the wrong path
Summary: app-misc/neofetch-5.0.0 installs in the wrong path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Muhammad Herdiansyah
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-09-21 09:55 UTC by Pascal
Modified: 2018-09-28 11:55 UTC (History)
3 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 Pascal 2018-09-21 09:55:01 UTC
neofetch installs in the wrong path, making it difficult to call without explicit path.

    $ neofetch
    -bash: neofetch: command not found

    $ /usr/usr/bin/neofetch --version
    Neofetch 5.0.0


equery confirms something seems fishy:

 $ equery files neofetch
Unavailable repository 'gentoo' referenced by masters entry in '/var/git/overlay/pascalbrax/metadata/layout.conf'
 * Searching for neofetch ...
 * Contents of app-misc/neofetch-5.0.0:
/usr
/usr/usr
/usr/usr/bin
/usr/usr/bin/neofetch
/usr/usr/share
/usr/usr/share/man
/usr/usr/share/man/man1
/usr/usr/share/man/man1/neofetch.1

The ebuild tested is the latest available, as in bug #665476 (marked as RESOLV FIXED).

 $ cat neofetch-5.0.0.ebuild
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=7

if [[ ${PV} != *9999* ]]; then
        SRC_URI="https://github.com/dylanaraps/${PN}/archive/${PV}/${P}.tar.gz"
        KEYWORDS="~amd64 ~x86 ~amd64-fbsd"
else
        inherit git-r3
        EGIT_REPO_URI="https://github.com/dylanaraps/neofetch.git"
fi

DESCRIPTION="Simple information system script"
HOMEPAGE="https://github.com/dylanaraps/neofetch"
LICENSE="MIT-with-advertising"
SLOT="0"
IUSE="X"

RDEPEND="sys-apps/pciutils
        X? (
                media-gfx/imagemagick
                media-libs/imlib2
                www-client/w3m[imlib]
                x11-apps/xprop
                x11-apps/xrandr
                x11-apps/xwininfo
        )"

src_install() {
        emake DESTDIR="${ED}/usr" install
}
Comment 1 Pascal 2018-09-21 09:59:52 UTC
Blocking app-misc/neofetch-5.0.0 and emerging 4.0.2 installs correctly in the right path.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-09-28 11:55:56 UTC
commit ac93f5d4b432cf5ec40270b6d79a655112e75f43
Author:     Benda Xu <heroxbd@gentoo.org>
AuthorDate: Sun Sep 23 09:10:25 2018
Commit:     Benda Xu <heroxbd@gentoo.org>
CommitDate: Sun Sep 23 09:14:43 2018

    app-misc/neofetch: fix double "/usr".
    
    Bug: https://bugs.gentoo.org/665476
    Package-Manager: Portage-2.3.49, Repoman-2.3.10