Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836433 - media-gfx/freecad-0.19.{2-r7,4} with qt-5.15.3 - /bin/sh: line 1: PYSIDE2RCCBINARY-NOTFOUND: command not found
Summary: media-gfx/freecad-0.19.{2-r7,4} with qt-5.15.3 - /bin/sh: line 1: PYSIDE2RCCB...
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
: 836616 (view as bug list)
Depends on:
Blocks: qtbindir
  Show dependency tree
 
Reported: 2022-03-30 15:05 UTC by Bernd
Modified: 2022-04-02 12:58 UTC (History)
4 users (show)

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


Attachments
freecad-0.19.2-r7:20220330-145706.log.xz (freecad-0.19.2-r7:20220330-145706.log.xz,19.84 KB, application/octet-stream)
2022-03-30 15:07 UTC, Bernd
Details
freecad-0.19.4:20220329-162552.log.xz (freecad-0.19.4:20220329-162552.log.xz,19.98 KB, application/octet-stream)
2022-03-30 15:07 UTC, Bernd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2022-03-30 15:05:27 UTC
The build is from a multilib testing chroot.

Both version fail with the same error:

FAILED: src/Mod/Material/Material_rc.py /var/tmp/portage-ondisk/portage/media-gfx/freecad-0.19.4/work/FreeCAD-
0.19.4_build/src/Mod/Material/Material_rc.py 
cd /var/tmp/portage-ondisk/portage/media-gfx/freecad-0.19.4/work/FreeCAD-0.19.4_build/src/Mod/Material && PYSI
DE2RCCBINARY-NOTFOUND --generator=python --compress-algo=zlib --compress=1 /var/tmp/portage-ondisk/portage/med
ia-gfx/freecad-0.19.4/work/FreeCAD-0.19.4/src/Mod/Material/Resources/Material.qrc -o /var/tmp/portage-ondisk/p
ortage/media-gfx/freecad-0.19.4/work/FreeCAD-0.19.4_build/src/Mod/Material/Material_rc.py && sed -i /^#\ /d /v
ar/tmp/portage-ondisk/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


Reproducible: Always

Steps to Reproduce:
1. unmask qt-5.15.3 packages
2. set desired USE flags
3. emerge ~freecad-0.19.{2,4}



[ebuild     UD] media-gfx/freecad-0.19.2-r7 [9999] USE="addonmgr 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"                                                                
[ebuild     UD] media-gfx/freecad-0.19.4 [9999] 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"                                                         

(chroot-multi) artus /var/db/repos/gentoo-git/sci-libs/vtk # emerge --info freecad
Portage 3.0.30 (python 3.9.12-final-0, default/linux/amd64/17.1/systemd, gcc-11.2.1, glibc-2.34-r10, 5.16.17-gentoo-0 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.16.17-gentoo-0-x86_64-AMD_Ryzen_7_3800X_8-Core_Processor-with-glibc2.34
KiB Mem:    32888652 total,   2803404 free
KiB Swap:   33554428 total,  31701204 free
Head commit of repository gentoo-git: 6d157cf9c7ecb644ca59c667e9b6a6e20c5a2200

Head commit of repository waebbl: c601db15a16219a2c2a2c34def022f1395490cd1

Timestamp of repository gentoo: Sun, 27 Mar 2022 10:04:55 +0000
Head commit of repository gentoo: 864b9f3b5a1f83a177f3f261c9af89acbe07ce83

sh bash 5.1_p16
ld GNU ld (Gentoo 2.38 p3) 2.38
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-lang/perl:             5.34.1::gentoo
dev-lang/python:           2.7.18_p15::gentoo, 3.9.12::gentoo, 3.10.3::gentoo
dev-util/cmake:            3.22.3::gentoo
dev-util/meson:            0.61.4::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          250.4-r1::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r1::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.0-r1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/llvm:            13.0.1::gentoo, 14.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.16::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r10::gentoo
Repositories:

gentoo-git
    location: /var/db/repos/gentoo-git
    sync-type: git
    sync-uri: https://github.com/waebbl/gentoo.git
    masters: gentoo
    priority: 99

waebbl
    location: /var/db/repos/waebbl
    sync-type: git
    sync-uri: https://github.com/waebbl/waebbl-gentoo.git
    masters: gentoo
    priority: 99

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: 100

Installed sets: @tools
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=znver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=znver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--complete-graph --keep-going --fail-clean --usepkg --buildpkg --buildpkg-exclude='x11-drivers/nvidia-drivers virtual/* acct-group/* acct-user/* app-eselect/* dev-util/nvidia-cuda-toolkit' --autounmask=n --binpkg-respect-use=y --binpkg-changed-deps=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=znver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live buildsyspkg cgroup clean-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-elog split-log strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=znver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check"
GENTOO_MIRRORS="https://ftp.fau.de/gentoo/ https://ftp-stud.hs-esslingen.de/pub/Mirrors/Gentoo/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
MAKEOPTS="-j4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp/portage-ondisk"
SHELL="/bin/bash"
USE="X acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl systemd udev unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

media-gfx/freecad-9999::gentoo was built with the following:
USE="addonmgr fem idf image inspection material openscad part-design path points raytracing robot show surface techdraw tux -cloud -debug -headless -pcl -plot -ship -test" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_9 -python3_8"                                                                                                    
FEATURES="usersync sfperms sign ipc-sandbox distlocks preserve-libs unmerge-orphans userfetch ebuild-locks usersandbox merge-sync config-protect-if-modified clean-logs binpkg-docompress unknown-features-warn buildpkg-live qa-unresolved-soname-deps multilib-strict protect-owned binpkg-logs strict news binpkg-dostrip network-sandbox userpriv pid-sandbox split-log strict-keepdir sandbox xattr buildpkg parallel-fetch fail-clean fixlafiles unmerge-logs cgroup split-elog buildsyspkg assume-digests"
Comment 1 Bernd 2022-03-30 15:07:01 UTC
Created attachment 768209 [details]
freecad-0.19.2-r7:20220330-145706.log.xz

build log for ~freecad-0.19.2
Comment 2 Bernd 2022-03-30 15:07:30 UTC
Created attachment 768210 [details]
freecad-0.19.4:20220329-162552.log.xz

build for ~freecad-0.19.4
Comment 3 Ionen Wolkens gentoo-dev 2022-03-30 15:10:22 UTC
Haven't tested but if it's failing to find rcc then it's likely "fails without qtchooser" which can now be depcleaned with qt 5.15.3 (depending on qtchooser is not the right fix, see tracker).
Comment 4 Andreas Sturmlechner gentoo-dev 2022-03-30 16:14:23 UTC
Maybe it needs a pyside2 version bump. bug 835763
Comment 5 Bernd 2022-03-30 19:23:43 UTC
(In reply to Ionen Wolkens from comment #3)
> Haven't tested but if it's failing to find rcc then it's likely "fails
> without qtchooser" which can now be depcleaned with qt 5.15.3 (depending on
> qtchooser is not the right fix, see tracker).

There's no qtchooser installed in the chroot where I tested this. Interestingly, the live ebuild compiles. I'm gonna check the difference in the FindPyside modules and see if I can work out a patch.

Similar with vtk. 9.0.3 builds, but 9.1.0 needs the bindir for qmlplugindump (see bug #836343).

(In reply to Andreas Sturmlechner from comment #4)
> Maybe it needs a pyside2 version bump. bug 835763

I'd agree, if the live ebuild would also fail. But a bump of shiboken and pyside wouldn't hurt to be in par with the other qt packages anyway.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-01 22:49:27 UTC
*** Bug 836616 has been marked as a duplicate of this bug. ***
Comment 7 cJ 2022-04-01 23:24:54 UTC
Just to state that installing qtchooser works around the build issue as it brings rcc & friends to PATH.
Comment 8 Bernd 2022-04-02 08:26:14 UTC
(In reply to cJ from comment #7)
> Just to state that installing qtchooser works around the build issue as it
> brings rcc & friends to PATH.

This could work as an immediate workaround, but in the long term, qtchooser should be avoided, if I see this correctly.
Comment 9 Andreas Sturmlechner gentoo-dev 2022-04-02 11:33:16 UTC
(In reply to Bernd from comment #8)
> (In reply to cJ from comment #7)
> > Just to state that installing qtchooser works around the build issue as it
> > brings rcc & friends to PATH.
> 
> This could work as an immediate workaround, but in the long term, qtchooser
> should be avoided, if I see this correctly.
qtchooser is fine as a user workaround to get on while the few revdeps implicitly depending on it are fixed by their maintainers, but the important bit is to file bugs. It was never correct to depend on it.
Comment 10 Larry the Git Cow gentoo-dev 2022-04-02 12:58:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=728417f0a8ce57a6daaa448100a101d107c25b6d

commit 728417f0a8ce57a6daaa448100a101d107c25b6d
Author:     Bernd Waibel <waebbl-gentoo@posteo.net>
AuthorDate: 2022-04-02 08:22:04 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2022-04-02 12:57:33 +0000

    media-gfx/freecad: fix build of 0.19.4 with Qt 5.15.3
    
    Backport changes from HEAD FindPySide2Tools.cmake to correctly
    find the path for uic and rcc binaries.
    
    Closes: https://bugs.gentoo.org/836433
    Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
    Closes: https://github.com/gentoo/gentoo/pull/24861
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 ...19.4-backport-correctly-find-PySide2Tools.patch | 106 +++++++++++++++++++++
 media-gfx/freecad/freecad-0.19.4.ebuild            |   1 +
 2 files changed, 107 insertions(+)

Additionally, it has been referenced in the following commit(s):

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

commit a45e193674d314658e13674229d19703d7cbdc47
Author:     Bernd Waibel <waebbl-gentoo@posteo.net>
AuthorDate: 2022-04-02 12:20:35 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2022-04-02 12:57:33 +0000

    media-gfx/freecad: drop 0.19.2-r7
    
    Drop the version instead of backporting to this version.
    Use 0.19.4 instead.
    See discussion on https://github.com/gentoo/gentoo/pull/24861
    
    Bug: https://bugs.gentoo.org/836433
    Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-gfx/freecad/Manifest                         |   1 -
 ...-0004809-Security-vulnerability-in-DWG-im.patch |  59 ----
 ...-0001-fix-failing-test-workbench-testcase.patch |  26 --
 ...-Use-run-instead-of-Popen-to-avoid-need-f.patch |  25 --
 ...2-0002-fix-femtest-failure-with-yaml-load.patch |  26 --
 ...19.2-0003-fix-test-when-built-without-GUI.patch |  33 ---
 ...-fix-build-failure-with-opencascade-7.5.2.patch |  30 --
 media-gfx/freecad/freecad-0.19.2-r7.ebuild         | 324 ---------------------
 8 files changed, 524 deletions(-)