Qt: add options to disable docs and gui#20078
Conversation
- Add `~gui` option for minimal build - Add `+doc` option to install docs, and attempt to disable the implicit llvm dependency if not - Removes the 'freetype' option which hasn't worked reliably in qt5, as many of the gui components implicitly rely on freetype. - Add and test version 5.15 (and skip qtlocation if disabling opengl) - Refactor some of the dependency logic I've tested this on linux with 5.15.2 and 4.8.7 in a couple of different configurations.
|
Should we disable the gui by default to reduce the number of deps? |
No, most packages that depend on qt do so for the GUI so their recipes would all have to change. Using qt for the non GUI components is the exception, not the rule. |
|
Thanks for this! I actually gave [email protected] a try a few days ago but couldn't get it to build (probably the qtlocation problem). [email protected] builds fine for me, let me try it with cube (which probably also needs the |
|
Just gave this another try. When I build with Any idea? |
Are you building with |
|
Nope, all variants are set to the defaults (except for I think I figured it out: qt seems to try to call --- a/var/spack/repos/builtin/packages/qt/package.py
+++ b/var/spack/repos/builtin/packages/qt/package.py
@@ -584,10 +584,9 @@ def configure(self, spec, prefix):
def build(self, spec, prefix):
make()
- if '+doc' in spec:
- make('docs')
def install(self, spec, prefix):
make("install")
if '+doc' in spec:
+ make('docs')
make('install_docs') |
* Qt: add options to disable docs and gui - Add `~gui` option for minimal build - Add `+doc` option to install docs, and attempt to disable the implicit llvm dependency if not - Removes the 'freetype' option which hasn't worked reliably in qt5, as many of the gui components implicitly rely on freetype. - Add and test version 5.15 (and skip qtlocation if disabling opengl) - Refactor some of the dependency logic I've tested this on linux with 5.15.2 and 4.8.7 in a couple of different configurations. * Address reviewer feedback and correctly disable llvm * Fix qt doc generation
~guioption for minimal build+docoption to install docs, and attempt to disable the implicitllvm dependency if not
many of the gui components implicitly rely on freetype.
I've tested this on linux with 5.15.2 and 4.8.7 in a couple of different
configurations.