Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 822843 - media-gfx/krita-4.4.8-r1 - sip: .../QtCoremod.sip:23: syntax error
Summary: media-gfx/krita-4.4.8-r1 - sip: .../QtCoremod.sip:23: syntax error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-10 08:24 UTC by Toralf Förster
Modified: 2021-11-15 19:11 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.93 KB, text/plain)
2021-11-10 08:24 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,280.94 KB, text/plain)
2021-11-10 08:24 UTC, Toralf Förster
Details
environment (environment,142.11 KB, text/plain)
2021-11-10 08:24 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,16.01 KB, application/x-bzip)
2021-11-10 08:24 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,6.98 KB, application/x-bzip)
2021-11-10 08:24 UTC, Toralf Förster
Details
media-gfx:krita-4.4.8-r1:20211110-050807.log.bz2 (media-gfx:krita-4.4.8-r1:20211110-050807.log.bz2,113.68 KB, application/x-bzip)
2021-11-10 08:24 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,145.48 KB, application/x-bzip)
2021-11-10 08:24 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-11-10 08:24:43 UTC
ninja: build stopped: subcommand failed.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-j4-20211106-142500

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.56.1 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php7.3
  [2]   php7.4
  [3]   php8.0 *

  HEAD of ::gentoo
commit 4e1f200385ef1ff88d58b1e92b3f64b7759c903d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Nov 10 04:36:42 2021 +0000

    2021-11-10 04:36:40 UTC

emerge -qpvO media-gfx/krita
[ebuild  N    ] media-gfx/krita-4.4.8-r1  USE="fftw gif gsl jpeg pdf raw tiff -color-management -debug -heif -openexr -qtmedia -test -vc" PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2021-11-10 08:24:44 UTC
Created attachment 750096 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-11-10 08:24:46 UTC
Created attachment 750099 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-11-10 08:24:48 UTC
Created attachment 750102 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-11-10 08:24:49 UTC
Created attachment 750105 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-11-10 08:24:50 UTC
Created attachment 750108 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-11-10 08:24:51 UTC
Created attachment 750111 [details]
media-gfx:krita-4.4.8-r1:20211110-050807.log.bz2
Comment 7 Toralf Förster gentoo-dev 2021-11-10 08:24:53 UTC
Created attachment 750114 [details]
temp.tar.bz2
Comment 8 Andreas Sturmlechner gentoo-dev 2021-11-13 17:35:18 UTC
I assume this is all with 
> dev-python/PyQt5-5.15.6
> dev-python/sip-6.4.0
installed?
Comment 9 Davide Pesavento (RETIRED) gentoo-dev 2021-11-13 21:12:19 UTC
I suspect sip-4.19.x is also installed and krita is using that version.
QtCoremod.sip in PyQt5-5.15.6 started using new syntax introduced in sip-6.4, which broke compatibility with sip4. Upstream acknowledged the breakage but won't fix it quickly [1]. And this isn't the first that a new version of PyQt5 is accidentally incompatible with sip4.

If krita can use sip6, I think it's time to start requiring that version and leave sip4 behind. (I want to stabilize sip6 & co. asap)
If krita does not work with sip6, we need to put more pressure on upstream to finally support it (I wonder what other distros are doing here). In the meantime, pin the dependency to =sip-4.19* (or <sip-6 if sip5 works) and =PyQt5-5.15.4*

[1] https://www.riverbankcomputing.com/pipermail/pyqt/2021-November/044346.html
Comment 10 Larry the Git Cow gentoo-dev 2021-11-15 13:37:56 UTC
The bug has been closed via the following commit(s):

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

commit 62306e5005656ea05a0ef00b2ffb57ebba8d7e24
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-11-15 13:28:37 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-11-15 13:37:47 +0000

    media-gfx/krita: Fix build with >=PyQt5-5.15.6
    
    See also:
    ttps://www.riverbankcomputing.com/pipermail/pyqt/2021-November/044346.html
    
    Closes: https://bugs.gentoo.org/822843
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../krita-4.4.8-prefer-newer-sip-to-build.patch    | 56 ++++++++++++++++++++++
 media-gfx/krita/krita-4.4.8-r1.ebuild              |  1 +
 2 files changed, 57 insertions(+)
Comment 11 Kobboi 2021-11-15 17:42:35 UTC
Not sure what this fixes. Fails with sip-4, fails with sip-5.
Comment 12 Thomas Bettler 2021-11-15 17:55:42 UTC
but works fine here with sip-6
Comment 13 Andreas Sturmlechner gentoo-dev 2021-11-15 19:02:56 UTC
(In reply to Kobboi from comment #11)
> Not sure what this fixes. Fails with sip-4, fails with sip-5.

Works for me with sip4, sip-6, PyQt5-5.15.4, PyQt5-5.15.6.
Comment 14 Kobboi 2021-11-15 19:11:04 UTC
Wanted to add an additional comment, but b.g.o was down :)
Comment 15 Kobboi 2021-11-15 19:11:27 UTC
(In reply to Thomas Bettler from comment #12)
> but works fine here with sip-6

It does, and sip-6 is build-time pulled in by PyQt5-5.15.6, but not run-time AFAIK. I just want to make sure we take this opportunity to, if needed, correct the generic sip dependency in krita.