Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616498 - cmake-multilib.eclass: einstalldocs is called both in install & install_all
Summary: cmake-multilib.eclass: einstalldocs is called both in install & install_all
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-24 14:53 UTC by Michał Górny
Modified: 2021-12-20 06:04 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-04-24 14:53:34 UTC
cmake-utils_src_install() calls einstalldocs in ${S} to install documentation. At the same time, multilib_src_install_all() does the same. So if cmake is used in a multilib ebuild, the docs are installed twice.

This usually goes unnoticed. However, if someone redefines DOCS to a subset of default in multilib_src_install_all() (or multilib_src_install()), the other call ignores the override.

I think it'd be most reasonable to disarm einstalldocs in the default multilib_src_install() defined by cmake-multilib, by setting DOCS=() HTML_DOCS=(). This will kill the duplicate (or well, more than duplicate because of multilib) install, leaving the more predictable call in _all(). It won't help when people redefine multilib_src_install() but still a step forward.
Comment 1 Michael Palimaka (kensington) gentoo-dev 2018-03-13 10:54:43 UTC
Any news here?
Comment 2 Andreas Sturmlechner gentoo-dev 2019-07-04 19:34:28 UTC
ping
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-07-04 19:41:22 UTC
Do you have an ebuild broken by this?