<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>I will send a right one for the typos.</p>
    <p>"Does this mean that MACHINEs which use qemu usermode won't be
      able to use read-only images where this postinst cannot be
      executed on read-only rootfs?"</p>
    <p>No,some MACHINEs not support qemu usermode, when used, it will
      lead to a qemu core dump: "qemu: uncaught target signal 11
      (Segmentation fault) - core dumped".</p>
    <p>so when use qemu usermode,check whether the machine supports it
      first. <br>
    </p>
    <p>Thanks,</p>
    <p>Jibin<br>
    </p>
    <div class="moz-cite-prefix">On 2017年12月28日 15:11, Martin Jansa
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+chaQeUVEHAjLEGAVTxyr0JbBX5VTeaOeZsEL1ohhe7ijP7wg@mail.gmail.com">
      <meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">There are 2 typos in "qemu".
        <div><br>
        </div>
        <div>Does this mean that MACHINEs which use qemu usermode won'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"
              moz-do-not-send="true">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>
            "WARNING: The postinstall intercept hook 'update_font_cache'
            failed".<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"
              moz-do-not-send="true">jibin.xu@windriver.com</a>&gt;<br>
            ---<br>
             meta/classes/fontcache.bbclass | 18 +++++++++++-------<br>
             1 file changed, 11 insertions(+), 7 deletions(-)<br>
            <br>
            diff --git a/meta/classes/fontcache.<wbr>bbclass
            b/meta/classes/fontcache.<wbr>bbclass<br>
            index e76331131e..3eb868fa08 100644<br>
            --- a/meta/classes/fontcache.<wbr>bbclass<br>
            +++ b/meta/classes/fontcache.<wbr>bbclass<br>
            @@ -17,13 +17,17 @@ FONTCONFIG_CACHE_PARAMS ?= "-v"<br>
             FONTCONFIG_CACHE_ENV ?= "FC_DEBUG=1"<br>
             fontcache_common() {<br>
             if [ -n "$D" ] ; then<br>
            -       $INTERCEPT_DIR/postinst_<wbr>intercept
            update_font_cache ${PKG} mlprefix=${MLPREFIX} \<br>
            -               'bindir="${bindir}"' \<br>
            -               'libdir="${libdir}"' \<br>
            -               'base_libdir="${base_libdir}"' \<br>
            -               'fontconfigcachedir="${<wbr>FONTCONFIG_CACHE_DIR}"'
            \<br>
            -               'fontconfigcacheparams="${<wbr>FONTCONFIG_CACHE_PARAMS}"'
            \<br>
            -               'fontconfigcacheenv="${<wbr>FONTCONFIG_CACHE_ENV}"'<br>
            +       if ${@bb.utils.contains('MACHINE_<wbr>FEATURES',
            'qemu-usermode', 'true','false', d)}; then<br>
            +               $INTERCEPT_DIR/postinst_<wbr>intercept
            update_font_cache ${PKG} mlprefix=${MLPREFIX} \<br>
            +                       'bindir="${bindir}"' \<br>
            +                       'libdir="${libdir}"' \<br>
            +                       'base_libdir="${base_libdir}"' \<br>
            +                       'fontconfigcachedir="${<wbr>FONTCONFIG_CACHE_DIR}"'
            \<br>
            +                       'fontconfigcacheparams="${<wbr>FONTCONFIG_CACHE_PARAMS}"'
            \<br>
            +                       'fontconfigcacheenv="${<wbr>FONTCONFIG_CACHE_ENV}"'<br>
            +       else<br>
            +               exit 1<br>
            +       fi<br>
             else<br>
                    ${FONTCONFIG_CACHE_ENV} fc-cache
            ${FONTCONFIG_CACHE_PARAMS}<br>
             fi<br>
            <span class="HOEnZb">--<br>
              2.13.0<br>
              <br>
              --<br>
              ______________________________<wbr>_________________<br>
              Openembedded-core mailing list<br>
              <a href="mailto:Openembedded-core@lists.openembedded.org"
                moz-do-not-send="true">Openembedded-core@lists.<wbr>openembedded.org</a><br>
              <a
                href="http://lists.openembedded.org/mailman/listinfo/openembedded-core"
                rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
            </span></blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>