qt5location: fix plugins build dependency

Do not build the plugins before the dependency on module positioning for
the plugin subdir position is available (add Add upstream patch
0001-Fix-plugins-build-dependency.patch [1]).

Fixes [2]:

  cp -dpfr .../output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/qt/plugins/position .../output/target/usr/lib/qt/plugins/
  cp: cannot stat '.../output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/qt/plugins/position': No such file or directory

[1] https://code.qt.io/cgit/qt/qtlocation.git/patch/?id=3ac051c4549575634cecc706175b019f4ed4c3bf
[2] http://autobuild.buildroot.net/results/bc1/bc13abf3bb2fe1c991aec2334ee658c9641d1fd5

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Peter Seiderer 2017-07-24 20:35:13 +02:00 committed by Thomas Petazzoni
parent 7c31aafcd4
commit 52995092e1

View File

@ -0,0 +1,42 @@
From 3ac051c4549575634cecc706175b019f4ed4c3bf Mon Sep 17 00:00:00 2001
From: Peter Seiderer <ps.report@gmx.net>
Date: Sat, 22 Jul 2017 22:47:05 +0200
Subject: Fix plugins build dependency
Do not build the plugins before the dependency on module positioning for
the plugin subdir position is available.
Task-number: QTBUG-62098
Change-Id: Ic7473db937359f3dad47aef0ffa3671be8cbd349
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Upstream: https://code.qt.io/cgit/qt/qtlocation.git/patch/?id=3ac051c4549575634cecc706175b019f4ed4c3bf
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
src/src.pro | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/src.pro b/src/src.pro
index d0a1ee4e7..0c0bf50b1 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -7,8 +7,6 @@ SUBDIRS += positioning
positioning.depends = 3rdparty/clip2tri
qtHaveModule(quick) {
- plugins.depends += positioning
-
SUBDIRS += location
location.depends += positioning 3rdparty/clip2tri
@@ -18,6 +16,7 @@ qtHaveModule(quick) {
imports.depends += positioning location
}
+plugins.depends += positioning
SUBDIRS += plugins
!android:contains(QT_CONFIG, private_tests) {
--
cgit v1.1-6-g87c4