Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 854600 - dev-python/matplotlib: broken _version.py installed (was: media-gfx/freecad-0.19.4-r1: cmake error finding matplotlib)
Summary: dev-python/matplotlib: broken _version.py installed (was: media-gfx/freecad-0...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-27 15:22 UTC by Stephen Cavilia
Modified: 2022-06-29 09:07 UTC (History)
3 users (show)

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


Attachments
build log (build.log,347.07 KB, text/plain)
2022-06-27 15:23 UTC, Stephen Cavilia
Details
emerge --info (emerge-info.txt,8.72 KB, text/plain)
2022-06-27 15:24 UTC, Stephen Cavilia
Details
emerge --info matplotlib (matplotlib.txt,9.88 KB, text/plain)
2022-06-29 01:24 UTC, Stephen Cavilia
Details
CMakeOutput.log (CMakeOutput.log,94.18 KB, text/plain)
2022-06-29 01:25 UTC, Stephen Cavilia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Cavilia 2022-06-27 15:22:48 UTC
freecad 0.19.4-r1 fails to build with the following error from CMake:

CMake Error at cMake/FindMatplotlib.cmake:39 (list):
  list index: 2 out of range (-2, 1)
Call Stack (most recent call first):
  cMake/FreeCAD_Helpers/SetupMatplotlib.cmake:4 (find_package)
  CMakeLists.txt:73 (SetupMatplotlib)


-- -- matplotlib-0.0 has been found.

...

==============
Summary report
==============

-- Matplotlib:          0.0-- 

matplotlib 3.5.2-r2 is installed

Reproducible: Always
Comment 1 Stephen Cavilia 2022-06-27 15:23:27 UTC
Created attachment 788051 [details]
build log
Comment 2 Stephen Cavilia 2022-06-27 15:24:06 UTC
Created attachment 788054 [details]
emerge --info
Comment 3 Alexey Shvetsov archtester gentoo-dev 2022-06-28 11:48:34 UTC
Also see same issue
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-28 11:50:57 UTC
Please include /var/tmp/portage/media-gfx/freecad-0.19.4-r1/work/FreeCAD-0.19.4_build/CMakeFiles/CMakeOutput.log.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-28 11:51:15 UTC
(In reply to Sam James from comment #4)
> Please include
> /var/tmp/portage/media-gfx/freecad-0.19.4-r1/work/FreeCAD-0.19.4_build/
> CMakeFiles/CMakeOutput.log.

... and emerge --info dev-python/matplotlib
Comment 6 Stephen Cavilia 2022-06-29 01:24:25 UTC
Created attachment 788555 [details]
emerge --info matplotlib
Comment 7 Stephen Cavilia 2022-06-29 01:25:38 UTC
Created attachment 788558 [details]
CMakeOutput.log
Comment 8 veig29 2022-06-29 08:53:54 UTC
Hi,

I have same issue here.

I think issue that version in matplotlib/_version.py is set to 0.0:

❯ cat /usr/lib/python3.10/site-packages/matplotlib/_version.py
# coding: utf-8
# file generated by setuptools_scm
# don't change, don't track in version control
__version__ = version = '0.0'
__version_tuple__ = version_tuple = (0, 0)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-29 09:04:40 UTC
(In reply to veig29 from comment #8)
> Hi,
> 
> I have same issue here.
> 
> I think issue that version in matplotlib/_version.py is set to 0.0:
> 
> ❯ cat /usr/lib/python3.10/site-packages/matplotlib/_version.py
> # coding: utf-8
> # file generated by setuptools_scm
> # don't change, don't track in version control
> __version__ = version = '0.0'
> __version_tuple__ = version_tuple = (0, 0)

on it, thanks
Comment 10 Larry the Git Cow gentoo-dev 2022-06-29 09:07:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64ebc71df972b6d6d801bf9195a449ebc8cb4bf1

commit 64ebc71df972b6d6d801bf9195a449ebc8cb4bf1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-29 09:07:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-29 09:07:52 +0000

    dev-python/matplotlib: fix installed _version.py
    
    Closes: https://bugs.gentoo.org/854600
    Signed-off-by: Sam James <sam@gentoo.org>

 .../{matplotlib-3.5.1-r1.ebuild => matplotlib-3.5.1-r2.ebuild}         | 3 +++
 .../{matplotlib-3.5.2-r2.ebuild => matplotlib-3.5.2-r3.ebuild}         | 3 +++
 2 files changed, 6 insertions(+)