Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 624554 - dev-python/matplotlib: does not install almost any files
Summary: dev-python/matplotlib: does not install almost any files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-11 16:31 UTC by Maciej Piechotka
Modified: 2017-07-15 21:42 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 Maciej Piechotka 2017-07-11 16:31:51 UTC
>>> Emerging (1 of 1) dev-python/matplotlib-2.0.2::gentoo
 * matplotlib-2.0.2.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                             [ ok ]
>>> cfg-update-1.8.2-r1: Creating checksum index...
>>> Unpacking source...
>>> Unpacking matplotlib-2.0.2.tar.gz to /var/tmp/portage/dev-python/matplotlib-2.0.2/work
>>> Source unpacked in /var/tmp/portage/dev-python/matplotlib-2.0.2/work
>>> Preparing source in /var/tmp/portage/dev-python/matplotlib-2.0.2/work/matplotlib-2.0.2 ...
 * Applying matplotlib-2.0.2-nose-fixes.patch ...                                                                                                                                                           [ ok ]
 * Applying matplotlib-2.0.2-freetype-spurious-failure.patch ...                                                                                                                                            [ ok ]
 * Will copy sources from /var/tmp/portage/dev-python/matplotlib-2.0.2/work/matplotlib-2.0.2
 * python2_7: copying to /var/tmp/portage/dev-python/matplotlib-2.0.2/work/matplotlib-2.0.2-python2_7
 * python3_4: copying to /var/tmp/portage/dev-python/matplotlib-2.0.2/work/matplotlib-2.0.2-python3_4
 * python3_6: copying to /var/tmp/portage/dev-python/matplotlib-2.0.2/work/matplotlib-2.0.2-python3_6
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/matplotlib-2.0.2/work/matplotlib-2.0.2 ...
 * python2_7: running distutils-r1_run_phase python_configure
 * python3_4: running distutils-r1_run_phase python_configure
 * python3_6: running distutils-r1_run_phase python_configure
 * python3_6: running distutils-r1_run_phase python_configure_all
>>> Source configured.
>>> 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_4: running distutils-r1_run_phase python_compile
 * python3_6: running distutils-r1_run_phase python_compile
 * python3_6: running distutils-r1_run_phase python_compile_all
>>> Source compiled.
>>> Test phase [not enabled]: dev-python/matplotlib-2.0.2

>>> Install matplotlib-2.0.2 into /var/tmp/portage/dev-python/matplotlib-2.0.2/image/ category dev-python
 * python2_7: running distutils-r1_run_phase python_install
 * python3_4: running distutils-r1_run_phase python_install
 * python3_6: running distutils-r1_run_phase python_install
 * python3_6: running distutils-r1_run_phase python_install_all
>>> Completed installing matplotlib-2.0.2 into /var/tmp/portage/dev-python/matplotlib-2.0.2/image/

 * Final size of build directory: 381084 KiB
 * Final size of installed tree: 260 KiB

ecompressdir: bzip2 -9 /usr/share/doc

>>> Installing (1 of 1) dev-python/matplotlib-2.0.2::gentoo
 * checking 12 files for package collisions
>>> Merging dev-python/matplotlib-2.0.2 to /
--- /usr/
--- /usr/lib64/
--- /usr/lib64/python2.7/
--- /usr/lib64/python2.7/site-packages/
--- /usr/lib64/python2.7/site-packages/mpl_toolkits/
>>> /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.4/
--- /usr/lib64/python3.4/site-packages/
--- /usr/lib64/python3.4/site-packages/mpl_toolkits/
>>> /usr/lib64/python3.4/site-packages/mpl_toolkits/__init__.py
--- /usr/lib64/python3.4/site-packages/mpl_toolkits/__pycache__/
>>> /usr/lib64/python3.4/site-packages/mpl_toolkits/__pycache__/__init__.cpython-34.pyc
>>> /usr/lib64/python3.4/site-packages/mpl_toolkits/__pycache__/__init__.cpython-34.pyo
--- /usr/lib64/python3.6/
--- /usr/lib64/python3.6/site-packages/
--- /usr/lib64/python3.6/site-packages/mpl_toolkits/
>>> /usr/lib64/python3.6/site-packages/mpl_toolkits/__init__.py
--- /usr/lib64/python3.6/site-packages/mpl_toolkits/__pycache__/
>>> /usr/lib64/python3.6/site-packages/mpl_toolkits/__pycache__/__init__.cpython-36.pyc
>>> /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/share/
--- /usr/share/doc/
--- /usr/share/doc/matplotlib-2.0.2/
>>> /usr/share/doc/matplotlib-2.0.2/CHANGELOG.bz2
>>> /usr/share/doc/matplotlib-2.0.2/README.rst.bz2
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
--- replaced obj /usr/share/doc/matplotlib-2.0.2/README.rst.bz2
--- replaced obj /usr/share/doc/matplotlib-2.0.2/CHANGELOG.bz2
--- replaced dir /usr/share/doc/matplotlib-2.0.2
--- replaced dir /usr/share/doc
--- replaced dir /usr/share
--- replaced obj /usr/lib64/python3.6/site-packages/mpl_toolkits/__pycache__/__init__.cpython-36.pyc
--- replaced obj /usr/lib64/python3.6/site-packages/mpl_toolkits/__pycache__/__init__.cpython-36.opt-2.pyc
--- replaced obj /usr/lib64/python3.6/site-packages/mpl_toolkits/__pycache__/__init__.cpython-36.opt-1.pyc
--- replaced dir /usr/lib64/python3.6/site-packages/mpl_toolkits/__pycache__
--- replaced obj /usr/lib64/python3.6/site-packages/mpl_toolkits/__init__.py
--- replaced dir /usr/lib64/python3.6/site-packages/mpl_toolkits
--- replaced dir /usr/lib64/python3.6/site-packages
--- replaced dir /usr/lib64/python3.6
--- replaced obj /usr/lib64/python3.4/site-packages/mpl_toolkits/__pycache__/__init__.cpython-34.pyo
--- replaced obj /usr/lib64/python3.4/site-packages/mpl_toolkits/__pycache__/__init__.cpython-34.pyc
--- replaced dir /usr/lib64/python3.4/site-packages/mpl_toolkits/__pycache__
--- replaced obj /usr/lib64/python3.4/site-packages/mpl_toolkits/__init__.py
--- replaced dir /usr/lib64/python3.4/site-packages/mpl_toolkits
--- replaced dir /usr/lib64/python3.4/site-packages
--- replaced dir /usr/lib64/python3.4
--- replaced obj /usr/lib64/python2.7/site-packages/mpl_toolkits/__init__.pyo
--- replaced obj /usr/lib64/python2.7/site-packages/mpl_toolkits/__init__.pyc
--- replaced obj /usr/lib64/python2.7/site-packages/mpl_toolkits/__init__.py
--- replaced dir /usr/lib64/python2.7/site-packages/mpl_toolkits
--- replaced dir /usr/lib64/python2.7/site-packages
--- replaced dir /usr/lib64/python2.7
--- replaced dir /usr/lib64
--- replaced dir /usr
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
>>> dev-python/matplotlib-2.0.2 merged.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
Comment 1 Jonas Stein gentoo-dev 2017-07-11 16:38:40 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
Comment 2 Maciej Piechotka 2017-07-12 07:15:31 UTC
(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.
Comment 3 Andrey Grozin gentoo-dev 2017-07-12 08:10:33 UTC
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 ~ #
Comment 4 Andrey Grozin gentoo-dev 2017-07-12 08:12:24 UTC
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;
Comment 5 Andrey Grozin gentoo-dev 2017-07-12 08:26:32 UTC
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.
Comment 6 Tadej Borovšak 2017-07-15 21:04:03 UTC
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
Comment 7 Patrice Clement gentoo-dev 2017-07-15 21:42:40 UTC
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(+)