qt5base: unconditionally install Qt5printSupport if widgets are enabled
authorPeter Korsgaard <peter@korsgaard.com>
Thu, 13 Nov 2014 14:45:41 +0000 (15:45 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 13 Nov 2014 14:48:57 +0000 (15:48 +0100)
The qt5 build system currently unconditionally builds and installs into
staging Qt5PrintSupport if widgets are enabled, so ensure it also gets
installed into target to make sure we don't end up with dynamic linker
errors at runtime:

test: error while loading shared libraries: libQt5PrintSupport.so.5: cannot
open shared object file: No such file or directory

From src.pro:

!contains(QT_CONFIG, no-gui) {
        ..
        !wince*:!winrt {
            SUBDIRS += src_printsupport
            src_plugins.depends += src_printsupport
        }

}

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/qt5/qt5base/Config.in

index f4eedec1fd70aad32600c4a270eae16cb5e3594b..e5679beb82f4a6baeeb747704352dbcdd631ad5d 100644 (file)
@@ -209,10 +209,8 @@ config BR2_PACKAGE_QT5BASE_DEFAULT_QPA
          different platform at runtime with the -platform option.
 
 config BR2_PACKAGE_QT5BASE_PRINTSUPPORT
-       bool "print support module"
-       select BR2_PACKAGE_QT5BASE_WIDGETS
-       help
-         This option enables the Qt5PrintSupport
+       depends on BR2_PACKAGE_QT5BASE_WIDGETS
+       def_bool y
 
 config BR2_PACKAGE_QT5BASE_FONTCONFIG
        bool "fontconfig support"