diff options
author | Gianfranco Costamagna <costamagnagianfranco@yahoo.it> | 2020-04-15 11:33:59 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2020-07-20 16:57:58 +0200 |
commit | 5144a99a696a8a72c0765ea0e8be8ceafaa78f85 (patch) | |
tree | c11f95c6ee6c1cf99627bfa9f9bcd7f1979b789f | |
parent | 8f6ee3a11a53d5cbf841bbe5fbe42b9c0c10f3d4 (diff) | |
download | meta-qt5-5144a99a696a8a72c0765ea0e8be8ceafaa78f85.tar.gz |
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>
-rw-r--r-- | recipes-qt/maliit/maliit-framework-qt5_git.bb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/recipes-qt/maliit/maliit-framework-qt5_git.bb b/recipes-qt/maliit/maliit-framework-qt5_git.bb index 1f0dc8d6..72e6be5f 100644 --- a/recipes-qt/maliit/maliit-framework-qt5_git.bb +++ b/recipes-qt/maliit/maliit-framework-qt5_git.bb | |||
@@ -75,12 +75,9 @@ do_install_append() { | |||
75 | install -m 644 ${WORKDIR}/maliit-server.desktop ${D}${datadir}/applications | 75 | install -m 644 ${WORKDIR}/maliit-server.desktop ${D}${datadir}/applications |
76 | } | 76 | } |
77 | 77 | ||
78 | pkg_postinst_${PN} () { | 78 | pkg_postinst_ontarget_${PN} () { |
79 | #!/bin/sh | 79 | #!/bin/sh |
80 | # should run online | 80 | # should run online |
81 | if [ "x$D" != "x" ]; then | ||
82 | exit 1 | ||
83 | fi | ||
84 | echo "export QT_IM_MODULE=Maliit" >> /etc/xprofile | 81 | echo "export QT_IM_MODULE=Maliit" >> /etc/xprofile |
85 | ln -s /usr/share/applications/maliit-server.desktop /etc/xdg/autostart/maliit-server.desktop | 82 | ln -s /usr/share/applications/maliit-server.desktop /etc/xdg/autostart/maliit-server.desktop |
86 | } | 83 | } |
@@ -89,12 +86,11 @@ pkg_postrm_${PN} () { | |||
89 | #!/bin/sh | 86 | #!/bin/sh |
90 | # should run online | 87 | # should run online |
91 | if [ "x$D" = "x" ]; then | 88 | if [ "x$D" = "x" ]; then |
92 | exit 1 | 89 | if [ -e "/etc/xprofile" ]; then |
93 | fi | 90 | sed -i -e "g|export QT_IM_MODULE=Maliit|d" /etc/xprofile |
94 | if [ -e "/etc/xprofile" ]; then | 91 | fi |
95 | sed -i -e "g|export QT_IM_MODULE=Maliit|d" /etc/xprofile | 92 | rm -f /etc/xdg/autostart/maliit-server.desktop |
96 | fi | 93 | fi |
97 | rm -f /etc/xdg/autostart/maliit-server.desktop | ||
98 | } | 94 | } |
99 | 95 | ||
100 | S = "${WORKDIR}/git" | 96 | S = "${WORKDIR}/git" |