From: "Mathan" <mathanraj003@gmail.com>
To: meta-freescale@lists.yoctoproject.org
Subject: Re: Post Install Intercept Hook Failed
Date: Wed, 15 Jul 2020 06:42:57 -0700 [thread overview]
Message-ID: <4863.1594820577182920402@lists.yoctoproject.org> (raw)
In-Reply-To: <LO2P265MB11506F848CAADFDDF1F3444BBF7E0@LO2P265MB1150.GBRP265.PROD.OUTLOOK.COM>
[-- Attachment #1.1: Type: text/plain, Size: 210 bytes --]
Hello Sebastian
Most of the cases it getting failed in post install intercept.
Those errors are suspicious,
Try to install the patch into poky layer and rebuild the Image.
Thanks & Regards,
Mathanraj
[-- Attachment #1.2: Type: text/html, Size: 254 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-postinst-intercepts.patch --]
[-- Type: text/x-diff; name="0001-postinst-intercepts.patch", Size: 6335 bytes --]
From a8def016ed3f0fb2ead9d88fec187fc80ab0dd6a Mon Sep 17 00:00:00 2001
From: Mathan Murugan <mathan.raj@seco.com>
Date: Mon, 20 Apr 2020 13:04:51 +0530
Subject: [PATCH] postinst-intercepts
---
scripts/postinst-intercepts/update_font_cache | 6 ++++--
.../postinst-intercepts/update_gio_module_cache | 9 ++++++---
.../update_gtk_immodules_cache | 2 ++
scripts/postinst-intercepts/update_icon_cache | 16 +++++++++-------
scripts/postinst-intercepts/update_pixbuf_cache | 9 ++++++---
scripts/postinst-intercepts/update_udev_hwdb | 6 ++++--
6 files changed, 31 insertions(+), 17 deletions(-)
mode change 100644 => 100755 scripts/postinst-intercepts/update_font_cache
mode change 100644 => 100755 scripts/postinst-intercepts/update_gio_module_cache
mode change 100644 => 100755 scripts/postinst-intercepts/update_gtk_immodules_cache
mode change 100644 => 100755 scripts/postinst-intercepts/update_icon_cache
mode change 100644 => 100755 scripts/postinst-intercepts/update_pixbuf_cache
mode change 100644 => 100755 scripts/postinst-intercepts/update_udev_hwdb
diff --git a/scripts/postinst-intercepts/update_font_cache b/scripts/postinst-intercepts/update_font_cache
old mode 100644
new mode 100755
index 3053c7065f..954acbb41b
--- a/scripts/postinst-intercepts/update_font_cache
+++ b/scripts/postinst-intercepts/update_font_cache
@@ -5,5 +5,7 @@
set -e
-PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D -E ${fontconfigcacheenv} $D${libexecdir}/${binprefix}fc-cache --sysroot=$D --system-only ${fontconfigcacheparams}
-chown -R root:root $D${fontconfigcachedir}
+if [ -f $D${libexecdir}/${binprefix}fc-cache ]; then
+ PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D -E ${fontconfigcacheenv} $D${libexecdir}/${binprefix}fc-cache --sysroot=$D --system-only ${fontconfigcacheparams}
+ chown -R root:root $D${fontconfigcachedir}
+fi
diff --git a/scripts/postinst-intercepts/update_gio_module_cache b/scripts/postinst-intercepts/update_gio_module_cache
old mode 100644
new mode 100755
index c87fa85db9..f398e8465b
--- a/scripts/postinst-intercepts/update_gio_module_cache
+++ b/scripts/postinst-intercepts/update_gio_module_cache
@@ -5,7 +5,10 @@
set -e
-PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}gio-querymodules $D${libdir}/gio/modules/
+if [ -f $D${libexecdir}/${binprefix}gio-querymodules ]; then
-[ ! -e $D${libdir}/gio/modules/giomodule.cache ] ||
- chown root:root $D${libdir}/gio/modules/giomodule.cache
+ PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}gio-querymodules $D${libdir}/gio/modules/
+
+ [ ! -e $D${libdir}/gio/modules/giomodule.cache ] ||
+ chown root:root $D${libdir}/gio/modules/giomodule.cache
+fi
diff --git a/scripts/postinst-intercepts/update_gtk_immodules_cache b/scripts/postinst-intercepts/update_gtk_immodules_cache
old mode 100644
new mode 100755
index 9f07ccca6b..c83a373f52
--- a/scripts/postinst-intercepts/update_gtk_immodules_cache
+++ b/scripts/postinst-intercepts/update_gtk_immodules_cache
@@ -8,12 +8,14 @@ set -e
if [ -x $D${libexecdir}/${binprefix}gtk-query-immodules-2.0 ]; then
PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}gtk-query-immodules-2.0 \
> $D${libdir}/gtk-2.0/2.10.0/immodules.cache &&
+ mkdir -p $D${libdir}/gtk-2.0/2.10.0
sed -i -e "s:$D::" $D${libdir}/gtk-2.0/2.10.0/immodules.cache
chown root:root $D${libdir}/gtk-2.0/2.10.0/immodules.cache
fi
if [ -x $D${libexecdir}/${binprefix}gtk-query-immodules-3.0 ]; then
PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}gtk-query-immodules-3.0 \
> $D${libdir}/gtk-3.0/3.0.0/immodules.cache &&
+ mkdir -p $D${libdir}/gtk-3.0/3.0.0
sed -i -e "s:$D::" $D${libdir}/gtk-3.0/3.0.0/immodules.cache
chown root:root $D${libdir}/gtk-3.0/3.0.0/immodules.cache
fi
diff --git a/scripts/postinst-intercepts/update_icon_cache b/scripts/postinst-intercepts/update_icon_cache
old mode 100644
new mode 100755
index 212209a9da..a67ff7ef97
--- a/scripts/postinst-intercepts/update_icon_cache
+++ b/scripts/postinst-intercepts/update_icon_cache
@@ -5,12 +5,14 @@
set -e
-# update native pixbuf loaders
-$STAGING_DIR_NATIVE/${libdir_native}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache
+if [ -d $STAGING_DIR_NATIVE/${libdir_native}/gdk-pixbuf-2.0 ]; then
+ # update native pixbuf loaders
+ $STAGING_DIR_NATIVE/${libdir_native}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache
-for icondir in $D/usr/share/icons/*/ ; do
- if [ -d $icondir ] ; then
- gtk-update-icon-cache -fqt $icondir
- fi
-done
+ for icondir in $D/usr/share/icons/*/ ; do
+ if [ -d $icondir ] ; then
+ gtk-update-icon-cache -fqt $icondir
+ fi
+ done
+fi
diff --git a/scripts/postinst-intercepts/update_pixbuf_cache b/scripts/postinst-intercepts/update_pixbuf_cache
old mode 100644
new mode 100755
index ea12814474..0038cfe7b8
--- a/scripts/postinst-intercepts/update_pixbuf_cache
+++ b/scripts/postinst-intercepts/update_pixbuf_cache
@@ -8,6 +8,9 @@ set -e
export GDK_PIXBUF_MODULEDIR=$D${libdir}/gdk-pixbuf-2.0/2.10.0/loaders
export GDK_PIXBUF_FATAL_LOADER=1
-PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders \
- >$GDK_PIXBUF_MODULEDIR/../loaders.cache && \
- sed -i -e "s:$D::g" $GDK_PIXBUF_MODULEDIR/../loaders.cache
+if [ -d $D${libdir}/gdk-pixbuf-2.0 ]; then
+ PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders \
+ >$GDK_PIXBUF_MODULEDIR/../loaders.cache && \
+ sed -i -e "s:$D::g" $GDK_PIXBUF_MODULEDIR/../loaders.cache
+fi
+
diff --git a/scripts/postinst-intercepts/update_udev_hwdb b/scripts/postinst-intercepts/update_udev_hwdb
old mode 100644
new mode 100755
index c4fb2bffcb..7b6e38338f
--- a/scripts/postinst-intercepts/update_udev_hwdb
+++ b/scripts/postinst-intercepts/update_udev_hwdb
@@ -5,5 +5,7 @@
set -e
-PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}udevadm hwdb --update --root $D
-chown root:root $D${sysconfdir}/udev/hwdb.bin
+if [ -d $D/lib/udev/hwdb.d ]; then
+ PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}udevadm hwdb --update --root $D
+ chown root:root $D${sysconfdir}/udev/hwdb.bin
+fi
--
2.17.1
prev parent reply other threads:[~2020-07-15 13:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-15 9:05 Post Install Intercept Hook Failed sebastian
2020-07-15 13:42 ` Mathan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4863.1594820577182920402@lists.yoctoproject.org \
--to=mathanraj003@gmail.com \
--cc=meta-freescale@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).