With doc USE flag, the install fails with -- Installing: /var/tmp/portage/sci-libs/cgnslib-3.4.0/image/usr/share/cgnstools/vtk.tcl Traceback (most recent call last): File "/usr/lib/portage/python3.7/doins.py", line 594, in <module> sys.exit(main(sys.argv[1:])) File "/usr/lib/portage/python3.7/doins.py", line 585, in main os.path.dirname(source)): File "/usr/lib/portage/python3.7/doins.py", line 434, in _doins return install_runner.install_file(source, os.path.dirname(dest)) File "/usr/lib/portage/python3.7/doins.py", line 370, in install_file return self._ins_runner.run(source, dest_dir) File "/usr/lib/portage/python3.7/doins.py", line 179, in run sstat = os.stat(source) FileNotFoundError: [Errno 2] No such file or directory: b'*pdf' * ERROR: sci-libs/cgnslib-3.4.0::gentoo failed (install phase): * dodoc failed Omitting the flag, finishes the build successfully. Reproducible: Always Steps to Reproduce: 1. USE=doc emerge =sci-libs/cgnslib-3.4.0 2. 3. build log and emerge --info as attachments
Created attachment 678520 [details] cgnslib-3.4.0:20201216-193549.log build log
Created attachment 678523 [details] emerge-info-cgnslib-3.4.0.txt output of emerge --info =cgnslib-3.4.0
Created attachment 678778 [details, diff] 0001-sci-libs-cgnslib-fix-doc-installation.patch Patch to fix the issue. The patch also addresses a warning about an unused cmake variable (CMAKE_USED_SHARED) which had a typo and a pkgcheck warning about indentation in the sed statement in src_prepare.
I can provide a PR for this if desired and try to update to EAPI 7 and migrate to using cmake.eclass in a second commit.
(In reply to Bernd from comment #4) > I can provide a PR for this if desired and try to update to EAPI 7 and > migrate to using cmake.eclass in a second commit. Yes please. Ping me if nobody else gets to merging it then.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee7fdbf09d7a8ce5a87d6c828a21720fcb731ded commit ee7fdbf09d7a8ce5a87d6c828a21720fcb731ded Author: Bernd Waibel <waebbl@gmail.com> AuthorDate: 2020-12-19 09:08:35 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-12-27 03:35:36 +0000 sci-libs/cgnslib: fix doc installation Also fixes a typo with CMAKE_USE_SHARED variable Closes: https://bugs.gentoo.org/760342 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Bernd Waibel <waebbl@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> sci-libs/cgnslib/cgnslib-3.4.0.ebuild | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)