Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/qt5location: handle plugins being conditionally built
@ 2017-07-20 23:33 Joshua Henderson
  2017-07-21  6:26 ` Thomas Petazzoni
  2017-07-21  6:56 ` Peter Seiderer
  0 siblings, 2 replies; 6+ messages in thread
From: Joshua Henderson @ 2017-07-20 23:33 UTC (permalink / raw)
  To: buildroot

This fixes a build issue where the qt5location plugins are not built, but are
attempted to be installed.

The qt5location plugins have dependencies that are automatically resolved
causing plugins to conditionaly be built. This change checks for the existance
of the plugins prior to trying to install them.

Fixes:

    http://autobuild.buildroot.net/results/bc1/bc13abf3bb2fe1c991aec2334ee658c9641d1fd5/build-end.log

Cc: Julien Corjon <corjon.j@ecagroup.com>
Cc: Peter Seiderer <ps.report@gmx.net>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Joshua Henderson <joshua.henderson@microchip.com>
---
 package/qt5/qt5location/qt5location.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/qt5/qt5location/qt5location.mk b/package/qt5/qt5location/qt5location.mk
index e9f1e4d..fcd9fc8 100644
--- a/package/qt5/qt5location/qt5location.mk
+++ b/package/qt5/qt5location/qt5location.mk
@@ -48,7 +48,9 @@ endif
 
 define QT5LOCATION_INSTALL_TARGET_POSITION
 	cp -dpf $(STAGING_DIR)/usr/lib/libQt5Positioning.so.* $(TARGET_DIR)/usr/lib
-	cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/position $(TARGET_DIR)/usr/lib/qt/plugins/
+	if [ -d $(STAGING_DIR)/usr/lib/qt/plugins/position ] ; then \
+		cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/position $(TARGET_DIR)/usr/lib/qt/plugins/ ; \
+	fi
 endef
 
 define QT5LOCATION_INSTALL_TARGET_CMDS
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-07-22 19:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-20 23:33 [Buildroot] [PATCH] package/qt5location: handle plugins being conditionally built Joshua Henderson
2017-07-21  6:26 ` Thomas Petazzoni
2017-07-21 20:55   ` Joshua Henderson
2017-07-21  6:56 ` Peter Seiderer
2017-07-21 20:44   ` Joshua Henderson
2017-07-22 19:31     ` Peter Seiderer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox