Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 760342 - sci-libs/cgnslib-3.4.0 USE=doc FileNotFoundError: [Errno 2] No such file or directory: b'*pdf'
Summary: sci-libs/cgnslib-3.4.0 USE=doc FileNotFoundError: [Errno 2] No such file or d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2020-12-16 19:57 UTC by Bernd
Modified: 2020-12-27 03:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cgnslib-3.4.0:20201216-193549.log (cgnslib-3.4.0:20201216-193549.log,201.28 KB, text/plain)
2020-12-16 19:58 UTC, Bernd
Details
emerge-info-cgnslib-3.4.0.txt (emerge-info-cgnslib-3.4.0.txt,14.85 KB, text/plain)
2020-12-16 19:58 UTC, Bernd
Details
0001-sci-libs-cgnslib-fix-doc-installation.patch (0001-sci-libs-cgnslib-fix-doc-installation.patch,1.85 KB, patch)
2020-12-19 09:20 UTC, Bernd
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2020-12-16 19:57:25 UTC
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
Comment 1 Bernd 2020-12-16 19:58:05 UTC
Created attachment 678520 [details]
cgnslib-3.4.0:20201216-193549.log

build log
Comment 2 Bernd 2020-12-16 19:58:35 UTC
Created attachment 678523 [details]
emerge-info-cgnslib-3.4.0.txt

output of emerge --info =cgnslib-3.4.0
Comment 3 Bernd 2020-12-19 09:20:03 UTC
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.
Comment 4 Bernd 2020-12-19 09:21:33 UTC
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.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-12-20 03:26:43 UTC
(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.
Comment 6 Larry the Git Cow gentoo-dev 2020-12-27 03:36:59 UTC
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(-)