diff options
author | Bernhard Kaindl <43588962+bernhardkaindl@users.noreply.github.com> | 2021-11-17 13:42:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-17 07:42:49 -0500 |
commit | 2765861705d3f48e8504c2f0b3e26ade6f5a65dc (patch) | |
tree | 80c15dda3532d95ff383a98a8cb55571d23a4ca5 /var | |
parent | ac8993ac38839c7b0a73805c237f522ea4bd6407 (diff) | |
download | spack-2765861705d3f48e8504c2f0b3e26ade6f5a65dc.tar.gz spack-2765861705d3f48e8504c2f0b3e26ade6f5a65dc.tar.bz2 spack-2765861705d3f48e8504c2f0b3e26ade6f5a65dc.tar.xz spack-2765861705d3f48e8504c2f0b3e26ade6f5a65dc.zip |
qt+webkit: Build needs Py2, but mesa/Meson needs Py3 (#27466)
mesa inherits MesonPackage (since October 2020) which depends on Py@3.
The conflicts('mesa') enables a regular build of `qt@5.7:5.15+webkit`
without having to specify the exact version by causing the concretizer
to select mesa18 which does not depend on python@3.
Co-authored-by: Bernhard Kaindl <bernhard.kaindl@ait.ac.at>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/qt/package.py | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/qt/package.py b/var/spack/repos/builtin/packages/qt/package.py index 324d29ad42..0073b1db56 100644 --- a/var/spack/repos/builtin/packages/qt/package.py +++ b/var/spack/repos/builtin/packages/qt/package.py @@ -193,10 +193,25 @@ class Qt(Package): depends_on("flex", type='build') depends_on("bison", type='build') depends_on("gperf") - depends_on("python@2.7.5:2", type='build') + + # qtwebengine@5.7:5.15 are based on Google Chromium versions which depend on Py2 + with when('@5.7:5.15'): + depends_on('python@2.7.5:2', type='build') + # mesa inherits MesonPackage (since October 2020) which depends on Py@3. + # The conflicts('mesa') enables a regular build of `qt@5.7:5.15+webkit` + # without having to specify the exact version by causing the concretizer + # to select mesa18 which does not depend on python@3. + conflicts('mesa') + + with when('@5.10:'): + depends_on('nss@3.62:') with when('@5.7:'): - depends_on("nss") + # https://www.linuxfromscratch.org/blfs/view/svn/x/qtwebengine.html + depends_on('ninja', type='build') + + # https://doc.qt.io/qt-5.15/qtwebengine-platform-notes.html + with when('@5.7: platform=linux'): depends_on("libdrm") depends_on("libxcomposite") depends_on("libxcursor") |