Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 789780 - media-gfx/freecad: add python-3.9 support
Summary: media-gfx/freecad: add python-3.9 support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernd
URL:
Whiteboard:
Keywords: PullRequest
Depends on: 723744
Blocks: py39, python3.9-compat
  Show dependency tree
 
Reported: 2021-05-13 05:39 UTC by David Kredba
Modified: 2021-10-20 15:09 UTC (History)
5 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 David Kredba 2021-05-13 05:39:43 UTC
Please add python-3.9 support.
Comment 1 David Kredba 2021-05-13 05:42:02 UTC
There is a note about it in the ebuild:
# vtk needs updating to use 3.9
Comment 2 Paul Jewell 2021-06-06 12:21:14 UTC
(In reply to David Kredba from comment #1)
> There is a note about it in the ebuild:
> # vtk needs updating to use 3.9

sci-libs/vtk has been updated now (if I understand the ebuild correctly!). Here is the PYTHON_COMPAT line in the vtk-9.0.1 ebuild:

PYTHON_COMPAT=( python3_{7,8,9} )
Comment 3 Bernd 2021-06-06 12:35:17 UTC
(In reply to Paul Jewell from comment #2)
> Here is the PYTHON_COMPAT line in the vtk-9.0.1 ebuild:
> 
> PYTHON_COMPAT=( python3_{7,8,9} )

There are several issues with opencascade and freecad building against vtk-9, which needs patching both of them. It will take some more time to fix these.

The relevant PR to get python-3.9 into freecad is https://github.com/gentoo/gentoo/pull/21110 which adds py39 support to vtk-8.
Comment 4 Christoph Loehr 2021-06-07 06:04:03 UTC
(In reply to Bernd from comment #3)
> (In reply to Paul Jewell from comment #2)
> > Here is the PYTHON_COMPAT line in the vtk-9.0.1 ebuild:
> > 
> > PYTHON_COMPAT=( python3_{7,8,9} )
> 
> There are several issues with opencascade and freecad building against
> vtk-9, which needs patching both of them. It will take some more time to fix
> these.
> 
> The relevant PR to get python-3.9 into freecad is
> https://github.com/gentoo/gentoo/pull/21110 which adds py39 support to vtk-8.

I can confirm that updating freecad to python-3.9 worked for me with these patches.
Comment 5 Bernd 2021-06-07 06:06:51 UTC
(In reply to Christoph Loehr from comment #4)
> I can confirm that updating freecad to python-3.9 worked for me with these
> patches.

Good to know :) Thanks for testing it. Anyway, we need to wait with an update for the PR to get merged.
Comment 6 Larry the Git Cow gentoo-dev 2021-06-15 14:42:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ed3c2582763576100bd183a69f83beb00b2dfd4

commit 0ed3c2582763576100bd183a69f83beb00b2dfd4
Author:     Bernd Waibel <waebbl-gentoo@posteo.net>
AuthorDate: 2021-06-11 07:42:09 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-15 14:39:51 +0000

    media-gfx/freecad: add python-3.9 support
    
    Also restrict dependency for opencascade
    
    Closes: https://bugs.gentoo.org/789780
    Package-Manager: Portage-3.0.19, Repoman-3.0.3
    Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
    Closes: https://github.com/gentoo/gentoo/pull/21242
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/freecad/freecad-0.19.2.ebuild | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)