<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 30 March 2017 at 00:08, Andrea Adami <span dir="ltr"><<a href="mailto:andrea.adami@gmail.com" target="_blank">andrea.adami@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Mar 29, 2017 at 10:40 PM, Christopher Larson <<a href="mailto:kergoth@gmail.com">kergoth@gmail.com</a>> wrote:<br>
><br>
> On Wed, Mar 29, 2017 at 1:33 PM, Andrea Adami <<a href="mailto:andrea.adami@gmail.com">andrea.adami@gmail.com</a>><br>
> wrote:<br>
>><br>
>> On Tue, Mar 28, 2017 at 6:14 PM, Christopher Larson <<a href="mailto:kergoth@gmail.com">kergoth@gmail.com</a>><br>
>> wrote:<br>
>> > From: Abdur Rehman <<a href="mailto:abdur_rehman@mentor.com">abdur_rehman@mentor.com</a>><br>
>> ><br>
>> > update_gio_module_cache intercept creates file:<br>
>> > $D${libdir}/gio/modules/<wbr>giomodule.cache<br>
>> ><br>
>> > Change ownership of this file to root:root to avoid user contamination<br>
>> > by host.<br>
>> ><br>
>> > Signed-off-by: Abdur Rehman <<a href="mailto:abdur_rehman@mentor.com">abdur_rehman@mentor.com</a>><br>
>> > Signed-off-by: Christopher Larson <<a href="mailto:chris_larson@mentor.com">chris_larson@mentor.com</a>><br>
>> > ---<br>
>> > scripts/postinst-intercepts/<wbr>update_gio_module_cache | 2 ++<br>
>> > 1 file changed, 2 insertions(+)<br>
>> ><br>
>> > diff --git a/scripts/postinst-intercepts/<wbr>update_gio_module_cache<br>
>> > b/scripts/postinst-intercepts/<wbr>update_gio_module_cache<br>
>> > index fe468092cf..92092f2144 100644<br>
>> > --- a/scripts/postinst-intercepts/<wbr>update_gio_module_cache<br>
>> > +++ b/scripts/postinst-intercepts/<wbr>update_gio_module_cache<br>
>> > @@ -5,3 +5,5 @@ set -e<br>
>> > PSEUDO_UNLOAD=1 qemuwrapper -L $D -E<br>
>> > LD_LIBRARY_PATH=$D${libdir}:$<wbr>D${base_libdir} \<br>
>> > $D${libexecdir}/${binprefix}<wbr>gio-querymodules<br>
>> > $D${libdir}/gio/modules/<br>
>> ><br>
>> > +chown root:root $D${libdir}/gio/modules/<wbr>giomodule.cache<br>
>> > +<br>
>> > --<br>
>> > 2.11.1<br>
>> ><br>
>> > --<br>
>> > ______________________________<wbr>_________________<br>
>> > Openembedded-core mailing list<br>
>> > <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
>> > <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
>><br>
>><br>
>> Hello,<br>
>> There must be something wrong with this patch.<br>
>> After fresh pull of an hour ago I git:<br>
>><br>
>> andrea@ThinkPad-T520:/oe/oe-<wbr>core/build$ bitbake core-image-base<br>
>> Loading cache: 100% |#############################<wbr>###############| Time:<br>
>> 0:00:00<br>
>> Loaded 2095 entries from dependency cache.<br>
>> NOTE: Resolving any missing task queue dependencies<br>
>><br>
>> Build Configuration:<br>
>> BB_VERSION = "1.33.2"<br>
>> BUILD_SYS = "x86_64-linux"<br>
>> NATIVELSBSTRING = "ubuntu-16.04"<br>
>> TARGET_SYS = "arm-oe-linux-gnueabi"<br>
>> MACHINE = "c7x0"<br>
>> DISTRO = "nodistro"<br>
>> DISTRO_VERSION = "nodistro.0"<br>
>> TUNE_FEATURES = "arm armv5 thumb dsp"<br>
>> TARGET_FPU = "soft"<br>
>> meta = "master:<wbr>c187326afcf1e9d781c1bd0923e136<wbr>2a6f50f613"<br>
>> meta-handheld = "master:<wbr>f88f5bc546ec18de232a91dc1c8185<wbr>ad242c45f7"<br>
>> meta-oe<br>
>> meta-initramfs = "master:<wbr>225e64d95bc41077782815f3dceb6f<wbr>2d1a42b167"<br>
>><br>
>> Initialising tasks: 100% |#############################<wbr>##########| Time:<br>
>> 0:00:08<br>
>> NOTE: Executing SetScene Tasks<br>
>> NOTE: Executing RunQueue Tasks<br>
>> WARNING: core-image-base-1.0-r0 do_rootfs: The postinstall intercept<br>
>> hook 'update_gio_module_cache' failed (exit code: 1)! See log for<br>
>> details! (Output: b'')<br>
>> WARNING: core-image-base-1.0-r0 do_rootfs: The postinstalls for the<br>
>> following packages will be postponed for first boot: libglib-2.0-0<br>
>> NOTE: Tasks Summary: Attempted 3440 tasks of which 3427 didn't need to<br>
>> be rerun and all succeeded.<br>
><br>
><br>
> Odd, we’ve been running with this applied for ages. Is there anything useful<br>
> in do_rootfs? I’ll attempt to repro here. Thanks, and sorry for the hassle.<br>
> --<br>
<br>
</div></div>There is just a laconical message:<br>
<br>
NOTE: Running intercept scripts:<br>
NOTE: > Executing update_gio_module_cache intercept ...<br>
chown: cannot access<br>
'/tmp/build/tmp-glibc/work/<wbr>c7x0-oe-linux-gnueabi/core-<wbr>image-base/1.0-r0/rootfs/usr/<wbr>lib/gio/modules/giomodule.<wbr>cache':<br>
No such file or directory<br>
<br>
Here the permissions:<br>
andrea@ThinkPad-T520:/tmp/<wbr>build/tmp-glibc/work/c7x0-oe-<wbr>linux-gnueabi/core-image-base/<wbr>1.0-r0/rootfs/usr/lib/gio$<br>
ls -al<br>
total 0<br>
drwxr-xr-x 3 andrea andrea 60 mar 29 21:33 .<br>
drwxr-xr-x 6 andrea andrea 1660 mar 29 22:51 ..<br>
drwxr-xr-x 2 andrea andrea 40 mar 29 21:33 modules<br></blockquote><div><br></div><div>Can you check if usr/lib/gio/modules/giomodule.cache really exists or not? And if it does not, what the gio-querymodules call looks like in temp/run.do_rootfs?<br></div><div><br></div><div>Jussi</div></div></div></div>