Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 815157 - media-gfx/krita-4.4.8: missing USE deps on dev-python/PyQt5
Summary: media-gfx/krita-4.4.8: missing USE deps on dev-python/PyQt5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-27 13:45 UTC by YOSHIOKA Takuma
Modified: 2021-12-23 11:34 UTC (History)
1 user (show)

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


Attachments
media-gfx:krita-4.4.8:20210927-133932.log.gz (media-gfx:krita-4.4.8:20210927-133932.log.gz,241.60 KB, application/gzip)
2021-09-27 13:48 UTC, YOSHIOKA Takuma
Details
List of QtGui-related files installed by PyQt5-5.15.4-r1 (qtgui-sip-files-pyq5-5.15.4-r1.txt,4.20 KB, text/plain)
2021-09-27 13:49 UTC, YOSHIOKA Takuma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description YOSHIOKA Takuma 2021-09-27 13:45:46 UTC
dev-python/PyQt5-5.15.5-pre2107091435 does not provide .sip files for QtGui, while PyQt5-5.15.4-r1 does.

This leads to build failure of media-gfx/krita-4.4.8 with error `sip-generate.py: Unable to find file "QtGui/QtGuimod.sip"`.
krita-4.4.8 can be successfully emerged with PyQt5-5.15.4-r1.

I don't know any other packages (than krita) depending on PyQt5 will fail to build or not.

Reproducible: Always

Steps to Reproduce:
1. Emerge dev-python/PyQt5-5.15.5_pre2107091435.
2. Emerge media-gfx/krita-4.4.8.

Actual Results:  
Krita fails to build due to `sip-generate.py: Unable to find file "QtGui/QtGuimod.sip"`.

Expected Results:  
Krita being successfully emerged without errors.

## dev-python/PyQt5-5.15.5_pre2107091435 not installing any QtGui-related files?

```
$ equery -q list PyQt5
dev-python/PyQt5-5.15.5_pre2107091435
$ qlist --exact PyQt5 | grep QtGui
$
```

(I'll attach a result for the same command with PyQt4-5.15.4-r1.)


## `emerge --info`:

```
Portage 3.0.24 (python 3.9.7-final-0, default/linux/amd64/17.1/systemd, gcc-11.2.0, glibc-2.33-r7, 5.14.8-gentoo x86_64)
=================================================================
System uname: Linux-5.14.8-gentoo-x86_64-AMD_Ryzen_7_3800X_8-Core_Processor-with-glibc2.33
KiB Mem:    32800992 total,  14404016 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 27 Sep 2021 11:51:41 +0000
Head commit of repository gentoo: f0d895be1de54dc94760153eae2f7bfafb3fb87e

Timestamp of repository guru: Sat, 25 Sep 2021 17:21:16 +0000
Head commit of repository guru: d6874e2fd6819e0bfd4184919a5fd682315daf91

Timestamp of repository haskell: Mon, 27 Sep 2021 11:06:29 +0000
Head commit of repository haskell: f94b8b32ee5fbaa85044364352cafca6a7795cca

Timestamp of repository steam-overlay: Tue, 21 Sep 2021 13:51:38 +0000
Head commit of repository steam-overlay: 39a165b2db31544095fd7965176d6135a4f3e118

sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r2::gentoo
dev-lang/python:          3.9.7::gentoo, 3.10.0_rc2::gentoo
dev-lang/rust:            1.55.0::gentoo
dev-util/cmake:           3.21.3::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/sandbox:         2.25::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.4::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            10.3.0-r2::gentoo, 11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    eclass-overrides: lo48576
    sync-git-verify-commit-signature: true

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    eclass-overrides: lo48576

haskell
    location: /var/db/repos/haskell
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/haskell.git
    masters: gentoo
    eclass-overrides: lo48576

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    eclass-overrides: lo48576

force-python3
    location: /var/db/repos/force-python3
    masters: gentoo
    priority: 100
    eclass-overrides: lo48576

lo48576
    location: /var/db/repos/lo48576
    masters: gentoo
    priority: 100
    eclass-overrides: lo48576

Installed sets: @fav/fonts, @packages/fcitx, @packages/minecraft-deps, @packages/obs-studio, @packages/podman, @packages/youtube-dl, @purpose/heavy-build, @system/gentoo-utils, @system/xorg-basic-utils
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
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="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="     https://ftp.iij.ad.jp/pub/linux/gentoo/     https://ftp.riken.jp/Linux/gentoo/     https://ftp.jaist.ac.jp/pub/Linux/Gentoo/     http://ftp.iij.ad.jp/pub/linux/gentoo/     http://ftp.riken.jp/Linux/gentoo/     http://ftp.jaist.ac.jp/pub/Linux/Gentoo/     "
LANG="ja_JP.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16"
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"
USE="X aac acl acpi alsa amd64 bluetooth bluray bzip2 cairo cdr cjk cli crypt css curl dbus dri dvd dvdr egl exif ffmpeg flac fontconfig fortran gdbm gmp gnome-keyring gtk iconv icu inotify ipv6 jpeg jpeg2k lame libglvnd libnotify libtirpc linguas_en linguas_ja luajit lzma m17n-lib matroska mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp opus pam pcre pipewire png policykit pulseaudio readline screencast seccomp split-usr sqlite ssl startup-notification systemd taglib tcpd theora threads tiff tls truetype udev udisks unicode upower usb vaapi vdpau vorbis vulkan wavpack wayland wifi xattr xft xinerama zlib zsh-completion zstd" ABI_X86="64" ADA_TARGET="gnat_2019" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 wacom" KERNEL="linux" L10N="en ja" 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-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 python3_10" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
```
Comment 1 YOSHIOKA Takuma 2021-09-27 13:48:25 UTC
Created attachment 741690 [details]
media-gfx:krita-4.4.8:20210927-133932.log.gz

Gzipped build log.
Comment 2 YOSHIOKA Takuma 2021-09-27 13:49:35 UTC
Created attachment 741693 [details]
List of QtGui-related files installed by PyQt5-5.15.4-r1
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2021-09-28 00:46:16 UTC
> $ equery -q list PyQt5
> dev-python/PyQt5-5.15.5_pre2107091435
> $ qlist --exact PyQt5 | grep QtGui
> $
This is strange. The location of the .sip files changed between 5.15.4-r1 and 5.15.5_pre*, but they _should_ be installed. On my system:

$ qlist -e PyQt5 | grep QtGuimod
/usr/lib/python3.8/site-packages/PyQt5/bindings/QtGui/QtGuimod.sip
/usr/lib/python3.9/site-packages/PyQt5/bindings/QtGui/QtGuimod.sip
/usr/lib/python3.10/site-packages/PyQt5/bindings/QtGui/QtGuimod.sip

Did you build PyQt5 with USE=gui?
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2021-09-28 00:54:18 UTC
That being said, I suspect krita will still fail later on because:

> -- Found SIP version: 4.19.25
> -- Found PyQt5 version: 5.15.5.dev2107091435

...and I doubt that sip4 + PyQt5-5.15.5_pre* (build with the new build system) will work.
Comment 5 YOSHIOKA Takuma 2021-09-28 14:02:30 UTC
I found krita can be emerged successfully with dev-python/PyQt5-5.15.5_pre2107091435 with USE="gui widgets".
I didn't noticed the flags since necessary files was insalled without the two flags with PyQt5-5.15.4-r1.

Is the current situation (USE="gui widgets" are necessary to install related .sip files) intended, or is it unintentional regression?
If this is intended, I'll report the problem as media-gfx/krita's ebuild issue.
Comment 6 Davide Pesavento (RETIRED) gentoo-dev 2021-09-29 03:12:58 UTC
Yes the change is intended. The fact that all .sip files were previously installed, regardless of USE flags, was purely accidental (we were simply following upstream), but without those USE flags you didn't have the corresponding PyQt5 modules installed so things have always been non-functional.

I'm guessing that 1) krita's build system checks only (or at most) for PyQt5.QtCore at build time, and 2) you never used the functionality in krita that depends on PyQt, so you never noticed things were broken.
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2021-09-29 03:15:21 UTC
Reassigning to krita's maintainers.
Comment 8 Larry the Git Cow gentoo-dev 2021-09-30 17:53:56 UTC
The bug has been closed via the following commit(s):

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

commit 6ccc1e4b9fa3e027b13068fd7cfd84277be68ec0
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-09-30 17:52:35 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-09-30 17:53:42 +0000

    media-gfx/krita: DEPEND on dev-python/PyQt5[declarative,gui,widgets]
    
    Thanks-to: YOSHIOKA Takuma <lo48576@hard-wi.red>
    Closes: https://bugs.gentoo.org/815157
    Package-Manager: Portage-3.0.26, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-gfx/krita/krita-4.4.8-r1.ebuild | 129 ++++++++++++++++++++++++++++++++++
 1 file changed, 129 insertions(+)
Comment 9 Larry the Git Cow gentoo-dev 2021-12-23 11:34:46 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=d5ced80ce8345c0033a9e02c995ecc0fa8dbaa20

commit d5ced80ce8345c0033a9e02c995ecc0fa8dbaa20
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-09-30 17:52:35 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-12-23 11:33:47 +0000

    media-gfx/krita: DEPEND on dev-python/PyQt5[declarative,gui,widgets]
    
    Thanks-to: YOSHIOKA Takuma <lo48576@hard-wi.red>
    Bug: https://bugs.gentoo.org/815157
    Package-Manager: Portage-3.0.26, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-gfx/krita/krita-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)