summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-11-15 14:28:37 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2021-11-15 14:37:47 +0100
commit62306e5005656ea05a0ef00b2ffb57ebba8d7e24 (patch)
tree717d2f43a9071b677cd7976d3e9fdedc3c496c6a /media-gfx/krita
parentmedia-plugins/kodi-visualization-projectm: 19.0.1 version bump (diff)
downloadgentoo-62306e5005656ea05a0ef00b2ffb57ebba8d7e24.tar.gz
gentoo-62306e5005656ea05a0ef00b2ffb57ebba8d7e24.tar.bz2
gentoo-62306e5005656ea05a0ef00b2ffb57ebba8d7e24.zip
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>
Diffstat (limited to 'media-gfx/krita')
-rw-r--r--media-gfx/krita/files/krita-4.4.8-prefer-newer-sip-to-build.patch56
-rw-r--r--media-gfx/krita/krita-4.4.8-r1.ebuild1
2 files changed, 57 insertions, 0 deletions
diff --git a/media-gfx/krita/files/krita-4.4.8-prefer-newer-sip-to-build.patch b/media-gfx/krita/files/krita-4.4.8-prefer-newer-sip-to-build.patch
new file mode 100644
index 000000000000..c60b53ffc64b
--- /dev/null
+++ b/media-gfx/krita/files/krita-4.4.8-prefer-newer-sip-to-build.patch
@@ -0,0 +1,56 @@
+From d2f29d77db58b54a8bcabfb68df66e4dd44f0c27 Mon Sep 17 00:00:00 2001
+From: Heiko Becker <heiko.becker@kde.org>
+Date: Fri, 12 Nov 2021 12:27:07 +0100
+Subject: [PATCH] Try (and thus prefer) sip >=5 first
+
+If one has sip 4.x and sip 6.x installed sip 4 is picked up
+("Found SIP version: 4.19.24") just because it is searched first.
+
+This matters not only because it is nice to use the "latest and
+greatest", but also because software using the latest PyQt5 (including
+krita) can't be built with sip 4 at the moment and the maintainer is
+apparently in no hurry to fix it [1].
+
+[1] https://www.riverbankcomputing.com/pipermail/pyqt/2021-November/044345.html
+---
+ cmake/modules/FindSIP.py | 19 ++++++++++---------
+ 1 file changed, 10 insertions(+), 9 deletions(-)
+
+diff --git a/cmake/modules/FindSIP.py b/cmake/modules/FindSIP.py
+index 7b92abd36e..600805c329 100644
+--- a/cmake/modules/FindSIP.py
++++ b/cmake/modules/FindSIP.py
+@@ -15,6 +15,16 @@ def osAwareSuffix():
+ return os.path.join("lib", "python3.8", "site-packages","sipconfig.py") if os.name != 'nt' else os.path.join("lib","krita-python-libs","sipconfig.py")
+
+ try:
++ import sipbuild
++
++ print("sip_version:%06.0x" % sipbuild.version.SIP_VERSION)
++ print("sip_version_str:%s" % sipbuild.version.SIP_VERSION_STR)
++
++ import shutil
++
++ # sip v5 and higher need to invoke sip-build
++ print("sip_bin:%s" % shutil.which("sip-build"))
++except ImportError: # Code for SIP <5
+ import sipconfig
+
+ sipcfg = sipconfig.Configuration()
+@@ -41,13 +51,4 @@ try:
+ print("sip_bin:%s" % sip_bin)
+ print("default_sip_dir:%s" % default_sip_dir)
+ print("sip_inc_dir:%s" % sip_inc_dir)
+-except ImportError: # Code for SIP v5+
+- import sipbuild
+-
+- print("sip_version:%06.0x" % sipbuild.version.SIP_VERSION)
+- print("sip_version_str:%s" % sipbuild.version.SIP_VERSION_STR)
+
+- import shutil
+-
+- # sip v5 and higher need to invoke sip-build
+- print("sip_bin:%s" % shutil.which("sip-build"))
+--
+GitLab
+
diff --git a/media-gfx/krita/krita-4.4.8-r1.ebuild b/media-gfx/krita/krita-4.4.8-r1.ebuild
index 614c5a0ad5d4..dedc461115e7 100644
--- a/media-gfx/krita/krita-4.4.8-r1.ebuild
+++ b/media-gfx/krita/krita-4.4.8-r1.ebuild
@@ -92,6 +92,7 @@ PATCHES=(
"${WORKDIR}"/${PN}-4.2.9-patchset/${PN}-4.2.9-ecm-findopenexr.patch
"${FILESDIR}"/${PN}-4.4.2-quazip1.patch
"${FILESDIR}"/${PN}-4.4.7-pykrita-crash-on-exit.patch # KDE-Bug #417465, git master
+ "${FILESDIR}"/${P}-prefer-newer-sip-to-build.patch # bug 822843
)
pkg_setup() {