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
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(-)
Looks like I forgot to close this when it was fixed.