Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 776310 - sci-mathematics/topcom-0.17.8-r1 doesn't install with -doc
Summary: sci-mathematics/topcom-0.17.8-r1 doesn't install with -doc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-03-15 07:59 UTC by François Bissey
Modified: 2022-05-07 19:54 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 François Bissey 2021-03-15 07:59:10 UTC
When `USE=-doc` is used the install fails with
make[1]: Entering directory '/dev/shm/portage/sci-mathematics/topcom-0.17.8-r1/work/topcom-0.17.8/examples'
make[2]: Entering directory '/dev/shm/portage/sci-mathematics/topcom-0.17.8-r1/work/topcom-0.17.8/examples'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/dev/shm/portage/sci-mathematics/topcom-0.17.8-r1/work/topcom-0.17.8/examples'
make[1]: Leaving directory '/dev/shm/portage/sci-mathematics/topcom-0.17.8-r1/work/topcom-0.17.8/examples'
make[1]: Entering directory '/dev/shm/portage/sci-mathematics/topcom-0.17.8-r1/work/topcom-0.17.8'
make[2]: Entering directory '/dev/shm/portage/sci-mathematics/topcom-0.17.8-r1/work/topcom-0.17.8'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/dev/shm/portage/sci-mathematics/topcom-0.17.8-r1/work/topcom-0.17.8'
make[1]: Leaving directory '/dev/shm/portage/sci-mathematics/topcom-0.17.8-r1/work/topcom-0.17.8'
Traceback (most recent call last):
  File "/usr/lib/portage/python3.9/doins.py", line 594, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/lib/portage/python3.9/doins.py", line 582, in main
    if _doins(
  File "/usr/lib/portage/python3.9/doins.py", line 434, in _doins
    return install_runner.install_file(source, os.path.dirname(dest))
  File "/usr/lib/portage/python3.9/doins.py", line 370, in install_file
    return self._ins_runner.run(source, dest_dir)
  File "/usr/lib/portage/python3.9/doins.py", line 179, in run
    sstat = os.stat(source)
FileNotFoundError: [Errno 2] No such file or directory: b'/dev/shm/portage/sci-mathematics/topcom-0.17.8-r1/distdir/TOPCOM-manual.html'
 * ERROR: sci-mathematics/topcom-0.17.8-r1::gentoo failed (install phase):
 *   dodoc failed

This is because 
1) HTML_DOCS is defined globally but the corresponding file is only fetched when USE=doc is enabled
2) in EAPI 6 and over HTML_DOCS is automatically installed in the default src_install phase as used in this ebuild

PR coming soon.

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2021-03-16 22:42:31 UTC
The bug has been referenced in the following commit(s):

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

commit 2f1b6afe266c1d9ead2393dae1bb4ddbffc95f54
Author:     François Bissey <frp.bissey@gmail.com>
AuthorDate: 2021-03-15 08:07:15 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2021-03-16 22:42:05 +0000

    sci-mathematics/topcom: define HTML_DOCS only when doc is in USE.
    
    Package-Manager: Portage-3.0.13, Repoman-3.0.2
    Bug: https://bugs.gentoo.org/776310
    Signed-off-by: François René Pierre Bissey <frp.bissey@gmail.com>
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 sci-mathematics/topcom/topcom-0.17.8-r1.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Comment 2 Michael Orlitzky gentoo-dev 2022-05-07 19:54:31 UTC
Looks like I forgot to close this when it was fixed.