mirror of
https://github.com/thead-yocto-mirror/meta-qt5
synced 2026-09-03 20:54:37 +02:00
maliit-framework-qt5: fix postinst/postrm scripts
ERROR: do_rootfs: Postinstall scriptlets of ['maliit-framework-qt5'] have failed. If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget_${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.
Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Signed-off-by: Gianfranco Costamagna <gianfranco.costamagna@abinsula.com>
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
This commit is contained in:
committed by
Martin Jansa
parent
8f6ee3a11a
commit
5144a99a69
@@ -75,12 +75,9 @@ do_install_append() {
|
||||
install -m 644 ${WORKDIR}/maliit-server.desktop ${D}${datadir}/applications
|
||||
}
|
||||
|
||||
pkg_postinst_${PN} () {
|
||||
pkg_postinst_ontarget_${PN} () {
|
||||
#!/bin/sh
|
||||
# should run online
|
||||
if [ "x$D" != "x" ]; then
|
||||
exit 1
|
||||
fi
|
||||
echo "export QT_IM_MODULE=Maliit" >> /etc/xprofile
|
||||
ln -s /usr/share/applications/maliit-server.desktop /etc/xdg/autostart/maliit-server.desktop
|
||||
}
|
||||
@@ -89,12 +86,11 @@ pkg_postrm_${PN} () {
|
||||
#!/bin/sh
|
||||
# should run online
|
||||
if [ "x$D" = "x" ]; then
|
||||
exit 1
|
||||
if [ -e "/etc/xprofile" ]; then
|
||||
sed -i -e "g|export QT_IM_MODULE=Maliit|d" /etc/xprofile
|
||||
fi
|
||||
rm -f /etc/xdg/autostart/maliit-server.desktop
|
||||
fi
|
||||
if [ -e "/etc/xprofile" ]; then
|
||||
sed -i -e "g|export QT_IM_MODULE=Maliit|d" /etc/xprofile
|
||||
fi
|
||||
rm -f /etc/xdg/autostart/maliit-server.desktop
|
||||
}
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
Reference in New Issue
Block a user