Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 736846 - media-sound/yoshimi-1.7.1-r1: The ebuild is installing to one or more unexpected paths
Summary: media-sound/yoshimi-1.7.1-r1: The ebuild is installing to one or more unexpec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Reva Denis
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-12 07:26 UTC by Joonas Niilola
Modified: 2020-08-22 16:06 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 Joonas Niilola gentoo-dev 2020-08-12 07:26:25 UTC
media-sound/yoshimi-1.7.1-r1
 * The ebuild is installing to one or more unexpected paths:
 * 
 *   /usr/share/doc/yoshimi-1.7.1
 * 
 * Please fix the ebuild to use correct FHS/Gentoo policy paths.

It's caused by this weird and wrong src_install:

src_install() {
	cmake_src_install
	mv "${D}"/usr/share/doc/yoshimi "${D}"/usr/share/doc/${P}
}

'P' should be 'PF' here, and external command (mv) needs to be appended with 
|| die "failed to move doc directory."
Comment 1 Joonas Niilola gentoo-dev 2020-08-12 07:27:40 UTC
Saying "weird" because ideally you'd add a patch to correct the doc dir, or check whether cmake accepts a configure option for it.
Comment 2 Larry the Git Cow gentoo-dev 2020-08-22 16:06:11 UTC
The bug has been closed via the following commit(s):

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

commit ab860e693eaa9c4c7a0962d3ccf352136fe4178f
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-08-21 22:44:58 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-08-22 16:05:55 +0000

    media-sound/yoshimi: 1.7.2 version bump, fix doc install dir
    
    Closes: https://bugs.gentoo.org/736846
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-sound/yoshimi/Manifest             |  1 +
 media-sound/yoshimi/yoshimi-1.7.2.ebuild | 50 ++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+)