diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-05-07 11:01:28 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-05-07 12:18:45 +0200 |
commit | 32165f04d49082773dbf6b78afe5506cba522f76 (patch) | |
tree | 4c5e602277276d1913b1a63398ab389367278a12 | |
parent | f76e45b5a8c59b1b8e4b806d2a2a09e6baf4d4e2 (diff) | |
download | meta-qt5-32165f04d49082773dbf6b78afe5506cba522f76.tar.gz |
qtbase-native: fix install paths
* 5.0.2+git was installing uic in wrong directory STAGING_DIR_NATIVE
was there twice, while debuging this I've noticed that headers and docs
are installed in this wrong directory also in other versions
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | recipes-qt/qt5/qtbase-native.inc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase-native.inc b/recipes-qt/qt5/qtbase-native.inc index b3007a50..0d76d2f5 100644 --- a/recipes-qt/qt5/qtbase-native.inc +++ b/recipes-qt/qt5/qtbase-native.inc | |||
@@ -88,5 +88,20 @@ do_configure_prepend() { | |||
88 | } | 88 | } |
89 | 89 | ||
90 | do_install() { | 90 | do_install() { |
91 | # Fix install paths for all | ||
92 | find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g" | ||
93 | |||
91 | oe_runmake install INSTALL_ROOT=${D} | 94 | oe_runmake install INSTALL_ROOT=${D} |
95 | |||
96 | if [ -d ${D}${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE} ] ; then | ||
97 | echo "Some files are installed in wrong directory ${D}${STAGING_DIR_NATIVE}" | ||
98 | cp -ra ${D}${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE}/* ${D}${STAGING_DIR_NATIVE} | ||
99 | rm -rf ${D}${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE} | ||
100 | # remove empty dirs | ||
101 | TMP=`dirname ${D}/${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE}` | ||
102 | while test ${TMP} != ${D}${STAGING_DIR_NATIVE}; do | ||
103 | rmdir ${TMP} | ||
104 | TMP=`dirname ${TMP}`; | ||
105 | done | ||
106 | fi | ||
92 | } | 107 | } |