commit: 333a65ec4744d0d64362756ea88ec0f3b855d603
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 3 18:38:50 2015 +0000
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Thu Dec 3 18:39:34 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=333a65ec
dev-python/PyQt5: add several missing REQUIRED_USE
Apparently configure.py does not list all these dependencies, and
does not check if they are satisfied at build time. But their lack
causes ImportErrors at runtime.
Gentoo-Bug: 567394
Package-Manager: portage-2.2.26
dev-python/PyQt5/PyQt5-5.5.1.ebuild | 14 ++++++++++++++
dev-python/PyQt5/PyQt5-5.5.ebuild | 2 ++
2 files changed, 16 insertions(+)
diff --git a/dev-python/PyQt5/PyQt5-5.5.1.ebuild
b/dev-python/PyQt5/PyQt5-5.5.1.ebuild
index 24b724f..b0d903d 100644
--- a/dev-python/PyQt5/PyQt5-5.5.1.ebuild
+++ b/dev-python/PyQt5/PyQt5-5.5.1.ebuild
@@ -29,14 +29,28 @@ KEYWORDS="~amd64 ~arm ~x86"
IUSE="dbus debug declarative designer doc examples gles2 gui help multimedia
network opengl positioning printsupport sensors serialport sql svg
testlib webchannel webkit websockets widgets x11extras xmlpatterns"
+
+# The requirements below were extracted from configure.py
+# and from the output of 'grep -r "%Import " "${S}"/sip'
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
+ declarative? ( gui network )
+ designer? ( widgets )
+ help? ( gui widgets )
+ multimedia? ( gui network )
+ opengl? ( gui widgets )
positioning? ( gui )
+ printsupport? ( widgets )
sensors? ( gui )
serialport? ( gui )
sql? ( widgets )
+ svg? ( gui widgets )
testlib? ( widgets )
webchannel? ( network )
+ webkit? ( gui network printsupport widgets )
+ websockets? ( network )
+ widgets? ( gui )
+ xmlpatterns? ( network )
"
# Minimal supported version of Qt.
diff --git a/dev-python/PyQt5/PyQt5-5.5.ebuild
b/dev-python/PyQt5/PyQt5-5.5.ebuild
index 6ce5a51..f7a2f64 100644
--- a/dev-python/PyQt5/PyQt5-5.5.ebuild
+++ b/dev-python/PyQt5/PyQt5-5.5.ebuild
@@ -29,6 +29,8 @@ KEYWORDS="amd64 arm ~x86"
IUSE="dbus debug declarative designer doc examples gles2 gui help multimedia
network opengl positioning printsupport sensors serialport sql svg
testlib webchannel webkit websockets widgets x11extras xmlpatterns"
+
+# The requirements below were extracted from configure.py
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
positioning? ( gui )