<div dir="ltr">&gt; <span style="font-size:12.8px">No,some MACHINEs not support qemu usermode</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">That&#39;s not what I was asking.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">You&#39;re disabling whole build-time postinst when qemu-usermode is in MACHINE_FEATURES with:</span></div><div><span style="font-size:12.8px">${@bb.utils.contains(&#39;MACHINE_</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">FEATURES&#39;, &#39;qemu-usermode&#39;, &#39;true&#39;,&#39;false&#39;, d)}</span><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">and in that case read-only images will fail to build and even if you remove that error (failed postinst scripts are causing errors when the image is configured to be read-only), then the image is still bad for runtime, because with read-only rootfs you cannot generate fontcache even on the device.</span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 28, 2017 at 8:42 AM, Jibin Xu <span dir="ltr">&lt;<a href="mailto:jibin.xu@windriver.com" target="_blank">jibin.xu@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>I will send a right one for the typos.</p><span class="">
    <p>&quot;Does this mean that MACHINEs which use qemu usermode won&#39;t be
      able to use read-only images where this postinst cannot be
      executed on read-only rootfs?&quot;</p>
    </span><p>No,some MACHINEs not support qemu usermode, when used, it will
      lead to a qemu core dump: &quot;qemu: uncaught target signal 11
      (Segmentation fault) - core dumped&quot;.</p>
    <p>so when use qemu usermode,check whether the machine supports it
      first. <br>
    </p>
    <p>Thanks,</p>
    <p>Jibin<br>
    </p><div><div class="h5">
    <div class="m_5674333459630589526moz-cite-prefix">On 2017年12月28日 15:11, Martin Jansa
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">There are 2 typos in &quot;qemu&quot;.
        <div><br>
        </div>
        <div>Does this mean that MACHINEs which use qemu usermode won&#39;t
          be able to use read-only images where this postinst cannot be
          executed on read-only rootfs?</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Dec 28, 2017 at 3:21 AM, Jibin
          Xu <span dir="ltr">&lt;<a href="mailto:jibin.xu@windriver.com" target="_blank">jibin.xu@windriver.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote">fontcache uses quemu usermode
            by default, but some architecture<br>
            such as Intel skylake does not support qemu usermode, this
            can<br>
            lead to a build warning as below:<br>
            &quot;WARNING: The postinstall intercept hook &#39;update_font_cache&#39;
            failed&quot;.<br>
            <br>
            Add a judgement of qemu usermode to fix the build warning.<br>
            <br>
            Signed-off-by: Jibin Xu &lt;<a href="mailto:jibin.xu@windriver.com" target="_blank">jibin.xu@windriver.com</a>&gt;<br>
            ---<br>
             meta/classes/fontcache.<wbr>bbclass | 18 +++++++++++-------<br>
             1 file changed, 11 insertions(+), 7 deletions(-)<br>
            <br>
            diff --git a/meta/classes/fontcache.bbcla<wbr>ss
            b/meta/classes/fontcache.bbcla<wbr>ss<br>
            index e76331131e..3eb868fa08 100644<br>
            --- a/meta/classes/fontcache.bbcla<wbr>ss<br>
            +++ b/meta/classes/fontcache.bbcla<wbr>ss<br>
            @@ -17,13 +17,17 @@ FONTCONFIG_CACHE_PARAMS ?= &quot;-v&quot;<br>
             FONTCONFIG_CACHE_ENV ?= &quot;FC_DEBUG=1&quot;<br>
             fontcache_common() {<br>
             if [ -n &quot;$D&quot; ] ; then<br>
            -       $INTERCEPT_DIR/postinst_inter<wbr>cept
            update_font_cache ${PKG} mlprefix=${MLPREFIX} \<br>
            -               &#39;bindir=&quot;${bindir}&quot;&#39; \<br>
            -               &#39;libdir=&quot;${libdir}&quot;&#39; \<br>
            -               &#39;base_libdir=&quot;${base_libdir}&quot;<wbr>&#39; \<br>
            -               &#39;fontconfigcachedir=&quot;${FONTCO<wbr>NFIG_CACHE_DIR}&quot;&#39;
            \<br>
            -               &#39;fontconfigcacheparams=&quot;${FON<wbr>TCONFIG_CACHE_PARAMS}&quot;&#39;
            \<br>
            -               &#39;fontconfigcacheenv=&quot;${FONTCO<wbr>NFIG_CACHE_ENV}&quot;&#39;<br>
            +       if ${@bb.utils.contains(&#39;MACHINE_<wbr>FEATURES&#39;,
            &#39;qemu-usermode&#39;, &#39;true&#39;,&#39;false&#39;, d)}; then<br>
            +               $INTERCEPT_DIR/postinst_inter<wbr>cept
            update_font_cache ${PKG} mlprefix=${MLPREFIX} \<br>
            +                       &#39;bindir=&quot;${bindir}&quot;&#39; \<br>
            +                       &#39;libdir=&quot;${libdir}&quot;&#39; \<br>
            +                       &#39;base_libdir=&quot;${base_libdir}&quot;<wbr>&#39; \<br>
            +                       &#39;fontconfigcachedir=&quot;${FONTCO<wbr>NFIG_CACHE_DIR}&quot;&#39;
            \<br>
            +                       &#39;fontconfigcacheparams=&quot;${FON<wbr>TCONFIG_CACHE_PARAMS}&quot;&#39;
            \<br>
            +                       &#39;fontconfigcacheenv=&quot;${FONTCO<wbr>NFIG_CACHE_ENV}&quot;&#39;<br>
            +       else<br>
            +               exit 1<br>
            +       fi<br>
             else<br>
                    ${FONTCONFIG_CACHE_ENV} fc-cache
            ${FONTCONFIG_CACHE_PARAMS}<br>
             fi<br>
            <span class="m_5674333459630589526HOEnZb">--<br>
              2.13.0<br>
              <br>
              --<br>
              ______________________________<wbr>_________________<br>
              Openembedded-core mailing list<br>
              <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openem<wbr>bedded.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>
            </span></blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div>