Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836616 - media-gfx/freecad-0.19.4 build failure due to Qt (5.15?) rcc not found
Summary: media-gfx/freecad-0.19.4 build failure due to Qt (5.15?) rcc not found
Status: RESOLVED DUPLICATE of bug 836433
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-01 22:47 UTC by cJ
Modified: 2022-04-01 22:49 UTC (History)
0 users

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 cJ 2022-04-01 22:47:18 UTC
Build failure for media-gfx/freecad-0.19.4::gentoo [0.19.2-r6::gentoo] USE="addonmgr drawing%* fem idf image inspection material openscad part-design path points raytracing robot show surface techdraw tux -cloud -debug -headless -pcl -plot -ship -test" PYTHON_SINGLE_TARGET="python3_9* -python3_8*" 0 KiB

FAILED: src/Mod/Material/Material_rc.py /var/tmp/portage/media-gfx/freecad-0.19.4/work/FreeCAD-0.19.4_build/src/Mod/Material/Material_rc.pycd /var/tmp/portage/media-gfx/freecad-0.19.4/work/FreeCAD-0.19.4_build/src/Mod/Material && PYSIDE2RCCBINARY-NOTFOUND --generator=python --compress-algo=zlib --compress=1 /var/tmp/portage/media-gfx/freecad-0.19.4/work/FreeCAD-0.19.4/src/Mod/Material/Resources/Material.qrc -o /var/tmp/portage/media-gfx/freecad-0.19.4/work/FreeCAD-0.19.4_build/src/Mod/Material/Material_rc.py && sed -i /^#\ /d /var/tmp/portage/media-gfx/freecad-0.19.4/work/FreeCAD-0.19.4_build/src/Mod/Material/Material_rc.py
/bin/sh: line 1: PYSIDE2RCCBINARY-NOTFOUND: command not found

I have dev-python/pyside2 and the rest of Qt at v5.15 (rcc is handled by qtcore since 5.15).

Apparently the cMake/FindPySide2Tools.cmake has issues resulting in a successful  src_configure but failing compilation.


Configure says:
[...]
=======================
PySide2Tools not found.
=======================
[...]
-- PySide2Tools:        not found
[...]

Resulting in a CMakeCache with:

PYSIDE2RCCBINARY:FILEPATH=PYSIDE2RCCBINARY-NOTFOUND


Most ebuilds patch the build system with an extra argument to use rcc at /usr/lib*/qt/bin:
 RCC=$(qt5_get_bindir)/rcc
or:
 sed -i -e "s|   rcc|    \"$(qt5_get_bindir)\"/rcc|" themes/Makefile || die

This should probably be done with FreeCAD too.


Reproducible: Always
Comment 1 cJ 2022-04-01 22:49:04 UTC
Hadn't noticed https://bugs.gentoo.org/836433 when posting this, sorry.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-01 22:49:27 UTC
Thanks for the report. As you noted, seems like a dupe, but thanks nonetheless!

*** This bug has been marked as a duplicate of bug 836433 ***