mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
qt4: ensure target packages don't include host binaries
Remove uic, rcc, moc and lrelease from packaged files. This fixes the
following QA warnings:
qt4-x11-free-4.7.3, wrong architecture, qt4-tools-dbg,
${WORKDIR}/packages-split/qt4-tools-dbg/usr/bin/.debug/uic
qt4-x11-free-4.7.3, wrong architecture, qt4-tools-dbg,
${WORKDIR}/packages-split/qt4-tools-dbg/usr/bin/.debug/rcc
qt4-x11-free-4.7.3, wrong architecture, qt4-tools-dbg,
${WORKDIR}/packages-split/qt4-tools-dbg/usr/bin/.debug/moc
qt4-x11-free-4.7.3, wrong architecture, qt4-tools,
${WORKDIR}/packages-split/qt4-tools/usr/bin/uic
qt4-x11-free-4.7.3, wrong architecture, qt4-tools,
${WORKDIR}/packages-split/qt4-tools/usr/bin/rcc
qt4-x11-free-4.7.3, wrong architecture, qt4-tools,
${WORKDIR}/packages-split/qt4-tools/usr/bin/moc
qt4-x11-free-4.7.3, wrong architecture, qt4-linguist,
${WORKDIR}/packages-split/qt4-linguist/usr/bin/lrelease
These utilities are all provided by qt4-tools-nativesdk in any case.
(From OE-Core rev: 69eeb3d2276e5b10d084b47d308ecfc8daf8b467)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
cb5811bf0e
commit
0da7db18f1
@@ -3,7 +3,7 @@ SECTION = "libs"
|
|||||||
LICENSE = "LGPLv2.1 | GPLv3"
|
LICENSE = "LGPLv2.1 | GPLv3"
|
||||||
HOMEPAGE = "http://qt.nokia.com"
|
HOMEPAGE = "http://qt.nokia.com"
|
||||||
DEPENDS += "directfb tslib"
|
DEPENDS += "directfb tslib"
|
||||||
INC_PR = "r26"
|
INC_PR = "r27"
|
||||||
|
|
||||||
QT_BASE_NAME ?= "qt4-embedded"
|
QT_BASE_NAME ?= "qt4-embedded"
|
||||||
QT_BASE_LIB ?= "libqt-embedded"
|
QT_BASE_LIB ?= "libqt-embedded"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ HOMEPAGE = "http://qt.nokia.com"
|
|||||||
SECTION = "x11/libs"
|
SECTION = "x11/libs"
|
||||||
DEPENDS += "virtual/libgl virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor"
|
DEPENDS += "virtual/libgl virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor"
|
||||||
|
|
||||||
INC_PR = "r23"
|
INC_PR = "r24"
|
||||||
|
|
||||||
QT_GLFLAGS ?= "-no-opengl"
|
QT_GLFLAGS ?= "-no-opengl"
|
||||||
QT_GLFLAGS_qemux86 = "-opengl"
|
QT_GLFLAGS_qemux86 = "-opengl"
|
||||||
|
|||||||
@@ -126,8 +126,8 @@ RRECOMMENDS_${QT_BASE_NAME}-examples += " \
|
|||||||
${QT_BASE_NAME}-plugin-sqldriver-sqlite \
|
${QT_BASE_NAME}-plugin-sqldriver-sqlite \
|
||||||
${QT_BASE_NAME}-plugin-imageformat-jpeg"
|
${QT_BASE_NAME}-plugin-imageformat-jpeg"
|
||||||
|
|
||||||
FILES_${QT_BASE_NAME}-tools = "${bindir}/uic* ${bindir}/moc ${bindir}/rcc ${bindir}/qttracereplay ${bindir}/qdoc*"
|
FILES_${QT_BASE_NAME}-tools = "${bindir}/qttracereplay ${bindir}/qdoc*"
|
||||||
FILES_${QT_BASE_NAME}-tools-dbg = "${bindir}/.debug/uic* ${bindir}/.debug/moc ${bindir}/.debug/rcc ${bindir}/.debug/qttracereplay ${bindir}/.debug/qdoc*"
|
FILES_${QT_BASE_NAME}-tools-dbg = "${bindir}/.debug/qttracereplay ${bindir}/.debug/qdoc*"
|
||||||
FILES_${QT_BASE_NAME}-assistant = "${bindir}/*assistant* ${bindir}/qcollectiongenerator ${bindir}/qhelpconverter ${bindir}/qhelpgenerator"
|
FILES_${QT_BASE_NAME}-assistant = "${bindir}/*assistant* ${bindir}/qcollectiongenerator ${bindir}/qhelpconverter ${bindir}/qhelpgenerator"
|
||||||
FILES_${QT_BASE_NAME}-assistant-dbg = "${bindir}/.debug/*assistant* ${bindir}/.debug/qcollectiongenerator ${bindir}/.debug/qhelpconverter ${bindir}/.debug/qhelpgenerator"
|
FILES_${QT_BASE_NAME}-assistant-dbg = "${bindir}/.debug/*assistant* ${bindir}/.debug/qcollectiongenerator ${bindir}/.debug/qhelpconverter ${bindir}/.debug/qhelpgenerator"
|
||||||
FILES_${QT_BASE_NAME}-common = "${bindir}/qtconfig"
|
FILES_${QT_BASE_NAME}-common = "${bindir}/qtconfig"
|
||||||
@@ -267,7 +267,11 @@ do_install() {
|
|||||||
oe_runmake install INSTALL_ROOT=${D}
|
oe_runmake install INSTALL_ROOT=${D}
|
||||||
|
|
||||||
# These are host binaries, we should only use them in staging
|
# These are host binaries, we should only use them in staging
|
||||||
rm -rf ${D}/${bindir}/qmake
|
rm ${D}/${bindir}/qmake
|
||||||
|
rm ${D}/${bindir}/uic
|
||||||
|
rm ${D}/${bindir}/moc
|
||||||
|
rm ${D}/${bindir}/rcc
|
||||||
|
rm ${D}/${bindir}/lrelease
|
||||||
|
|
||||||
# fix pkgconfig, libtool and prl files
|
# fix pkgconfig, libtool and prl files
|
||||||
sed -i -e s#-L${S}/lib##g \
|
sed -i -e s#-L${S}/lib##g \
|
||||||
@@ -302,11 +306,6 @@ do_install() {
|
|||||||
install -d ${D}/${libdir}/fonts
|
install -d ${D}/${libdir}/fonts
|
||||||
touch ${D}/${libdir}/fonts/fontdir
|
touch ${D}/${libdir}/fonts/fontdir
|
||||||
|
|
||||||
install -d ${D}${bindir}
|
|
||||||
for i in rcc uic moc ; do
|
|
||||||
install -m 0755 ${S}/bin/$i ${D}${bindir}/
|
|
||||||
done
|
|
||||||
|
|
||||||
#Append an E to the qtdemo file
|
#Append an E to the qtdemo file
|
||||||
if [ -n "${QT_LIBINFIX}" ] ; then
|
if [ -n "${QT_LIBINFIX}" ] ; then
|
||||||
mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX}
|
mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX}
|
||||||
|
|||||||
Reference in New Issue
Block a user