Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835194 - sci-libs/gmsh-4.9.5-r1 does not install with +examples USE flag
Summary: sci-libs/gmsh-4.9.5-r1 does not install with +examples USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthias Maier
URL: https://github.com/gentoo/gentoo/pull...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-03-15 08:35 UTC by Etienne Lorriaux
Modified: 2022-06-06 05:50 UTC (History)
3 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 Etienne Lorriaux 2022-03-15 08:35:26 UTC
Hello,

since version 4.9.5-r1 of the ebuild, I'm not able to merge it anymore, it fails during install phase.

Actually gmsh distribution does not contain a 'demos' folder anymore, thus the commmand 'dodoc demos' is failing.

Current workaround is to remove 'examples' flag.



Reproducible: Always

Steps to Reproduce:
1. add +examples USE flag
2. emerge gmsh
Actual Results:  
-----
-- Installing: /var/tmp/portage/sci-libs/gmsh-4.9.5-r1/image/usr/share/doc/gmsh-4.9.5-r1/examples/struct/struct.geo
-- Installing: /var/tmp/portage/sci-libs/gmsh-4.9.5-r1/image/usr/share/man/man1/gmsh.1
Traceback (most recent call last):
  File "/usr/lib/portage/python3.10/doins.py", line 607, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/lib/portage/python3.10/doins.py", line 596, in main
    if _doins(
  File "/usr/lib/portage/python3.10/doins.py", line 439, in _doins
    return install_runner.install_file(source, os.path.dirname(dest))
  File "/usr/lib/portage/python3.10/doins.py", line 373, in install_file
    return self._ins_runner.run(source, dest_dir)
  File "/usr/lib/portage/python3.10/doins.py", line 181, in run
    sstat = os.stat(source)
FileNotFoundError: [Errno 2] No such file or directory: b'demos'
 * ERROR: sci-libs/gmsh-4.9.5-r1::gentoo failed (install phase):
 *   dodoc failed
 * 
 * If you need support, post the output of `emerge --info '=sci-libs/gmsh-4.9.5-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/gmsh-4.9.5-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-libs/gmsh-4.9.5-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/gmsh-4.9.5-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/gmsh-4.9.5-r1/work/gmsh-4.9.5-source'
 * S: '/var/tmp/portage/sci-libs/gmsh-4.9.5-r1/work/gmsh-4.9.5-source'

>>> Failed to emerge sci-libs/gmsh-4.9.5-r1, Log file:

>>>  '/var/tmp/portage/sci-libs/gmsh-4.9.5-r1/temp/build.log'
-----

Expected Results:  
Ebuild merged
Comment 1 Larry the Git Cow gentoo-dev 2022-06-06 05:49:32 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7124c42f8e7ff9926f8474f49cc0c9a3870391d7

commit 7124c42f8e7ff9926f8474f49cc0c9a3870391d7
Author:     Fabio Rossi <rossi.f@inwind.it>
AuthorDate: 2022-05-24 11:57:04 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2022-06-06 05:49:21 +0000

    sci-libs/gmsh: various improvements
    
    * removed deprecated dep
    * fixed installation with USE=examples
    * fixed detection of opencascade
    * now the private API is also exported with USE=shared
    
    Signed-off-by: Fabio Rossi <rossi.f@inwind.it>
    Bug: https://bugs.gentoo.org/835702
    Bug: https://bugs.gentoo.org/835194
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 sci-libs/gmsh/files/gmsh-4.9.5-opencascade.patch | 20 ++++++
 sci-libs/gmsh/gmsh-4.9.5-r2.ebuild               | 80 ++++++++++++++++++++++++
 2 files changed, 100 insertions(+)