Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 815406 - media-gfx/cura-4.9.1: -DCURA_NO_INSTALL_PLUGINS="Toolbox" disables cura Marketplace
Summary: media-gfx/cura-4.9.1: -DCURA_NO_INSTALL_PLUGINS="Toolbox" disables cura Marke...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: 3D Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-30 07:10 UTC by Henrik Johansson
Modified: 2022-02-11 10:43 UTC (History)
6 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 Henrik Johansson 2021-09-30 07:10:09 UTC
Cura Marketplace does not work in Gentoo making it hard to install plugins etc for the user. Nothing happens when the button is pressed.

This seems to be due to -DCURA_NO_INSTALL_PLUGINS="Toolbox" in the ebuild. This was added in cura-4.7.0-r1.ebuild, seemingly because there is no trimesh package in Gentoo looking at the comment. Removing Toolbox from DCURA_NO_INSTALL_PLUGINS makes cura build with the current dependencies and Marketplace works.

The line...
-DCURA_NO_INSTALL_PLUGINS="AMFReader;Toolbox;TrimeshReader"
...should read...
-DCURA_NO_INSTALL_PLUGINS="AMFReader;TrimeshReader"

This is applicable to the cura-4.9.1 package. I'll make a note of this in the current version bump request as well.

Related:

https://forums.gentoo.org/viewtopic-t-1140270-highlight-cura.html

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1171f18e35bb4beab4e6372046654ae880c2b905
Comment 1 Michael Trommer 2021-12-07 23:23:54 UTC
Confirming bug and that the patch works.
Comment 2 Sylvain 2021-12-20 23:45:47 UTC
I was running the 4.12.1 AppImage.
I did a version bump of the ebuild to 4.12.1 and removed the Toolbox as proposed here.

Now the Marketplace does come up but the Calibration shapes plugin has issues.

Removing and reinstalling it from the ebuild version does not bring back the functionality present in the AppImage version.

IE: In the Ebuild version 
- the menu "Extensions / Part for calibration"  is missing
- The plugin seems disabled all the time even after enabling it and restarting the app.
Comment 3 Henrik Johansson 2021-12-22 12:17:01 UTC
(In reply to Sylvain from comment #2)
> I was running the 4.12.1 AppImage.
> I did a version bump of the ebuild to 4.12.1 and removed the Toolbox as
> proposed here.
> 
> Now the Marketplace does come up but the Calibration shapes plugin has
> issues.
> 
> Removing and reinstalling it from the ebuild version does not bring back the
> functionality present in the AppImage version.
> 
> IE: In the Ebuild version 
> - the menu "Extensions / Part for calibration"  is missing
> - The plugin seems disabled all the time even after enabling it and
> restarting the app.

So you are comparing the 4.12.1 AppImage version of Cura with a bumped 4.12.1 version of Cura in portage with this patch applied? DCURA_NO_INSTALL_PLUGINS does disable some functionality in Cura; could it be that AMFReader or TrimeshReader disables the Calibration shapes plugin? As far as I understand these have been disabled due to missing dependencies.
Comment 4 Sylvain 2021-12-22 13:07:39 UTC
I changed the ebuild to have -DCURA_NO_INSTALL_PLUGINS="" and recompiled without errors.  Unfortunately it changes nothing of what I said in comment 2.
Comment 5 Henrik Johansson 2021-12-22 13:22:11 UTC
(In reply to Sylvain from comment #4)
> I changed the ebuild to have -DCURA_NO_INSTALL_PLUGINS="" and recompiled
> without errors.  Unfortunately it changes nothing of what I said in comment
> 2.

Is trimesh a runtime dependency? There's an import here:

https://github.com/5axes/Calibration-Shapes/blob/master/CalibrationShapes.py

Trimesh ebuild here:

https://gpo.zugaina.org/dev-python/trimesh
Comment 6 Larry the Git Cow gentoo-dev 2022-02-11 10:43:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ad2d8743788c51998183a3d4d12674c27010739

commit 7ad2d8743788c51998183a3d4d12674c27010739
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2022-02-11 10:34:44 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2022-02-11 10:43:11 +0000

    media-gfx/cura: add 4.12.1
    
    Featuring py3.10 support along with the three previously disabled
    plug-ins.
    
    Invoking maintainer time-out on both this and all the ~-${PV}
    dependencies, it has been months.
    
    Note that the latest version upstream is now 4.13.1, however that
    version would diverge quite far from ~-${PV} for Ultimaker dependencies
    - the latest tag for libarcus, libsavitar and fdm-materials is 4.13.0
    and pynest2d has got NO non-beta 4.13 tags. Will leave it to the
    maintainers to decide what to do with this.
    
    Closes: https://bugs.gentoo.org/812935
    Closes: https://bugs.gentoo.org/815406
    Closes: https://bugs.gentoo.org/822714
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 media-gfx/cura/Manifest                            |  1 +
 media-gfx/cura/cura-4.12.1.ebuild                  | 77 ++++++++++++++++++++++
 .../cura/files/cura-4.12.1-code-style-test.patch   | 18 +++++
 3 files changed, 96 insertions(+)