diff mbox

[1/1] qt: ensure that target dir exists before installing there

Message ID 1395709517-1886-1-git-send-email-danomimanchego123@gmail.com
State Accepted
Commit 0ac91f8fc202c3b63463577564e1bbb9ec5483aa
Headers show

Commit Message

Danomi Manchego March 25, 2014, 1:05 a.m. UTC
All of qt.mk's target installs ensure that their destinations exist,
except for /usr/lib.  So do the same for /usr/lib, for consistency,
and in case some combination of custom fs skeleton plus dependency
on Qt leads to installing without a pre-existing /usr/lib directory.

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
---
 package/qt/qt.mk |    1 +
 1 file changed, 1 insertion(+)

Comments

Peter Korsgaard March 26, 2014, 9:43 p.m. UTC | #1
>>>>> "Danomi" == Danomi Manchego <danomimanchego123@gmail.com> writes:

 > All of qt.mk's target installs ensure that their destinations exist,
 > except for /usr/lib.  So do the same for /usr/lib, for consistency,
 > and in case some combination of custom fs skeleton plus dependency
 > on Qt leads to installing without a pre-existing /usr/lib directory.

 > Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>

Committed, thanks.
diff mbox

Patch

diff --git a/package/qt/qt.mk b/package/qt/qt.mk
index bc329f0..507e0db 100644
--- a/package/qt/qt.mk
+++ b/package/qt/qt.mk
@@ -625,6 +625,7 @@  endef
 # Library installation
 ifeq ($(BR2_PACKAGE_QT_SHARED),y)
 define QT_INSTALL_TARGET_LIBS
+	mkdir -p $(TARGET_DIR)/usr/lib
 	for lib in $(QT_INSTALL_LIBS); do \
 		cp -dpf $(STAGING_DIR)/usr/lib/lib$${lib}.so.* $(TARGET_DIR)/usr/lib ; \
 	done