| Summary: | dev-python/matplotlib: does not install almost any files | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Maciej Piechotka <uzytkownik2> |
| Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | grozin, hendrik, jstein |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Maciej Piechotka
2017-07-11 16:31:51 UTC
Thank you for the report. Please explain what the problem is and attach the logfiles Which file is missing? https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Report_a_build-time_bug_.28emerge_failed.29 (In reply to Jonas Stein from comment #1) > Thank you for the report. > Please explain what the problem is and attach the logfiles > Which file is missing? > > https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Report_a_build- > time_bug_.28emerge_failed.29 Err. I posted the build log as comment along with list of installed files (all 12 of them). I can almost certainly say - almost all of them. These are *all* files installed by matplotlib-2.0.2 except documentation: dns ~ # qlist dev-python/matplotlib | grep -v -e '/usr/share/doc/matplotlib-2.0.2/' /usr/lib64/python2.7/site-packages/mpl_toolkits/__init__.py /usr/lib64/python2.7/site-packages/mpl_toolkits/__init__.pyc /usr/lib64/python2.7/site-packages/mpl_toolkits/__init__.pyo /usr/lib64/python3.5/site-packages/mpl_toolkits/__init__.py /usr/lib64/python3.5/site-packages/mpl_toolkits/__pycache__/__init__.cpython-35.pyc /usr/lib64/python3.5/site-packages/mpl_toolkits/__pycache__/__init__.cpython-35.opt-2.pyc /usr/lib64/python3.5/site-packages/mpl_toolkits/__pycache__/__init__.cpython-35.opt-1.pyc /usr/lib64/python3.6/site-packages/mpl_toolkits/__init__.py /usr/lib64/python3.6/site-packages/mpl_toolkits/__pycache__/__init__.cpython-36.opt-1.pyc /usr/lib64/python3.6/site-packages/mpl_toolkits/__pycache__/__init__.cpython-36.opt-2.pyc /usr/lib64/python3.6/site-packages/mpl_toolkits/__pycache__/__init__.cpython-36.pyc dns ~ # Now I try to re-emerge it and get
>>> Compiling source in /var/tmp/portage/dev-python/matplotlib-2.0.2/work/matplotlib-2.0.2 ...
* python2_7: running distutils-r1_run_phase python_compile
* python3_5: running distutils-r1_run_phase python_compile
* python3_6: running distutils-r1_run_phase python_compile
* python2_7: running distutils-r1_run_phase python_compile_all
Traceback (most recent call last):
File "./make.py", line 12, in <module>
import matplotlib
ImportError: No module named matplotlib
* ERROR: dev-python/matplotlib-2.0.2::gentoo failed (compile phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 115: Called src_compile
* environment, line 4352: Called distutils-r1_src_compile
* environment, line 1263: Called _distutils-r1_run_common_phase 'python_compile_all'
* environment, line 446: Called multibuild_foreach_variant 'distutils-r1_run_phase' 'python_compile_all'
* environment, line 2803: Called _multibuild_run 'distutils-r1_run_phase' 'python_compile_all'
* environment, line 2801: Called distutils-r1_run_phase 'python_compile_all'
* environment, line 1251: Called python_compile_all
* environment, line 3324: Called die
* The specific snippet of code:
* VARTEXFONTS="${T}"/fonts "${EPYTHON}" ./make.py --small html || die;
With USE=-doc emerge "succeeds" and installs only these files: dns ~ # qlist matplotlib /usr/lib64/python2.7/site-packages/mpl_toolkits/__init__.py /usr/lib64/python2.7/site-packages/mpl_toolkits/__init__.pyc /usr/lib64/python2.7/site-packages/mpl_toolkits/__init__.pyo /usr/lib64/python3.5/site-packages/mpl_toolkits/__init__.py /usr/lib64/python3.5/site-packages/mpl_toolkits/__pycache__/__init__.cpython-35.pyc /usr/lib64/python3.5/site-packages/mpl_toolkits/__pycache__/__init__.cpython-35.opt-2.pyc /usr/lib64/python3.5/site-packages/mpl_toolkits/__pycache__/__init__.cpython-35.opt-1.pyc /usr/lib64/python3.6/site-packages/mpl_toolkits/__init__.py /usr/lib64/python3.6/site-packages/mpl_toolkits/__pycache__/__init__.cpython-36.opt-1.pyc /usr/lib64/python3.6/site-packages/mpl_toolkits/__pycache__/__init__.cpython-36.opt-2.pyc /usr/lib64/python3.6/site-packages/mpl_toolkits/__pycache__/__init__.cpython-36.pyc /usr/share/doc/matplotlib-2.0.2/README.rst.bz2 /usr/share/doc/matplotlib-2.0.2/CHANGELOG.bz2 dns ~ # Just to check: grozin@dns ~ $ python Python 3.6.1 (default, Apr 30 2017, 11:32:57) [GCC 5.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'matplotlib' >>> grozin@dns ~ $ So, after emerge matplotlib, matplotlib is *not* installed. Cause of this bug is a wrap_setup() function in ebuild that fails to call actual compile command. I created a patch and pull requests with changes at https://bugs.gentoo.org/show_bug.cgi?id=624554 commit 2680e441fa13ed000b774a813512a653e1c0c8f6 (HEAD -> master, origin/master, origin/HEAD) Author: Tadej Borovšak <tadeboro@gmail.com> AuthorDate: Sat Jul 15 22:56:01 2017 +0200 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: Sat Jul 15 23:42:06 2017 +0200 dev-python/matplotlib: fix wrap_setup function. Wrapper for python_compile() function only prepared environment for the compile call, but never executed it. Gentoo-Bug: https://bugs.gentoo.org/624554 Closes: https://github.com/gentoo/gentoo/pull/5112 dev-python/matplotlib/matplotlib-2.0.2.ebuild | 1 + 1 file changed, 1 insertion(+) |