commit: 62306e5005656ea05a0ef00b2ffb57ebba8d7e24 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Mon Nov 15 13:28:37 2021 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Mon Nov 15 13:37:47 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62306e50
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 <AT> 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(+) 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.bec...@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() {