summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-07-10 00:14:58 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-12 22:55:45 +0100
commitde2d6436404e1ea6afc152befcc873619960c0d4 (patch)
tree2a6758f42a71b29225b7141655855c2f52b3f0c1
parente2cf27032731fa2057326d81a9319e45b447858d (diff)
downloadpoky-de2d6436404e1ea6afc152befcc873619960c0d4.tar.gz
qt4: fixes for sed command
* There is no $$QT_BUILD_TREE/bin/lrelease in any .pro file, so remove the sed command. * Only translations/translations.pro has "qtPrepareTool(LRELEASE", so use the file name directly rather than find all the .pro files. * The SEDME in linux.conf had been gone in 2010, and no '-Wl,-rpath-link' in linux.conf either, so remove the sed commands. (From OE-Core rev: e519ce3675a90ce6583ced9ddb84260ff08bc74b) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-qt/qt4/qt4-4.8.7.inc8
-rw-r--r--meta/recipes-qt/qt4/qt4.inc3
2 files changed, 2 insertions, 9 deletions
diff --git a/meta/recipes-qt/qt4/qt4-4.8.7.inc b/meta/recipes-qt/qt4/qt4-4.8.7.inc
index 67fad3ab94..5257e760e0 100644
--- a/meta/recipes-qt/qt4/qt4-4.8.7.inc
+++ b/meta/recipes-qt/qt4/qt4-4.8.7.inc
@@ -52,13 +52,9 @@ FILES_${QT_BASE_NAME}-tests-dbg = "${prefix}/tests/qt4/*/.debug"
52FILES_${QT_BASE_NAME}-tests = "${prefix}/tests/qt4/*" 52FILES_${QT_BASE_NAME}-tests = "${prefix}/tests/qt4/*"
53 53
54do_configure_prepend() { 54do_configure_prepend() {
55 for pro in $(find ${S} -name "*.pro") ; do 55 sed -i 's:qtPrepareTool(LRELEASE, lrelease):LRELEASE = ${OE_QMAKE_LRELEASE}:g' \
56 sed -i \ 56 ${S}/translations/translations.pro
57 -e 's:$$QT_BUILD_TREE/bin/lrelease:${OE_QMAKE_LRELEASE}:g' \
58 -e 's:qtPrepareTool(LRELEASE, lrelease):LRELEASE = ${OE_QMAKE_LRELEASE}:g' $pro
59 done
60 57
61 sed -i s:SEDME:${S}: ${WORKDIR}/linux.conf
62 sed -i \ 58 sed -i \
63 -e /QMAKE_MOC\ /d \ 59 -e /QMAKE_MOC\ /d \
64 -e /QMAKE_UIC\ /d \ 60 -e /QMAKE_UIC\ /d \
diff --git a/meta/recipes-qt/qt4/qt4.inc b/meta/recipes-qt/qt4/qt4.inc
index f1c792b572..2058e54d3d 100644
--- a/meta/recipes-qt/qt4/qt4.inc
+++ b/meta/recipes-qt/qt4/qt4.inc
@@ -350,9 +350,6 @@ do_install() {
350 -e 's#-ljscore##g' \ 350 -e 's#-ljscore##g' \
351 ${D}${libdir}/*.la ${D}${libdir}/*.prl ${D}${libdir}/pkgconfig/*.pc 351 ${D}${libdir}/*.la ${D}${libdir}/*.prl ${D}${libdir}/pkgconfig/*.pc
352 352
353 sed -i -e s#" -Wl,-rpath-link,${S}/lib"##g \
354 ${D}${datadir}/${QT_DIR_NAME}/mkspecs/common/linux.conf
355
356 # fix pkgconfig files 353 # fix pkgconfig files
357 sed -i -e s#"moc_location=.*$"#"moc_location=${bindir}/moc4"# \ 354 sed -i -e s#"moc_location=.*$"#"moc_location=${bindir}/moc4"# \
358 -e s#"uic_location=.*$"#"uic_location=${bindir}/uic4"# \ 355 -e s#"uic_location=.*$"#"uic_location=${bindir}/uic4"# \