qtbase-tools: Fix error during pkg_postinst

When staging the sdk, the following error is seen:
sed: can't read <path-to-work>/sdk/image/usr/local/oecore-x86_64/sysroots/aarch64-oe-linux/usr/bin/qt.conf: No such file or directory
because the qt.conf file moved from /usr/bin/qt.conf to
/usr/bin/qt5/qt.conf

This change locates the qt.conf file during pkg_postinst using the
OE_QMAKE_PATH_BINS variable, just as when the file is created.
This commit is contained in:
Kurt Kiefer
2019-05-02 11:39:39 -07:00
committed by Martin Jansa
parent f4531ec860
commit 9c62c01bc2

View File

@@ -282,7 +282,7 @@ pkg_postinst_${PN}-tools () {
sed -i \
-e 's:HostSpec =.*:HostSpec = ${TARGET_MKSPEC}:g' \
-e 's:TargetSpec =.*:TargetSpec = ${TARGET_MKSPEC}:g' \
$D${bindir}/qt.conf
$D${OE_QMAKE_PATH_BINS}/qt.conf
}
pkg_postinst_${PN}-mkspecs () {