<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    On 2017-07-03 15:56, Burton, Ross wrote:<br>
    <blockquote type="cite"
cite="mid:CAJTo0LYCWai_UhPcfv7VV3iB+NCRdCvPjsLdbE=iv3f9CSzA0Q@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr"><br>
        <div>
          <div class="gmail_extra">
            <div class="gmail_quote">On 3 July 2017 at 13:34, Gordan
              Markuš <span dir="ltr">&lt;<a
                  href="mailto:gordan.markus@pelagicore.com"
                  target="_blank" moz-do-not-send="true">gordan.markus@pelagicore.com</a>&gt;</span> wrote:<br>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
                <div id="gmail-:yn" class="gmail-a3s gmail-aXjCH
                  gmail-m15d087d2c6436eea">-FILES_${PN}-dev +=
                  "${libdir}/cairo/*.so"<br>
                  +FILES_${PN}-dev += "${libdir}/cairo
                  ${libdir}/cairo/*.so"<br>
                </div>
              </blockquote>
            </div>
            <br>
          </div>
          <div class="gmail_extra">I just spent five minutes working out
            *why* this fixes the QA issue you were getting.</div>
        </div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">A better fix would be to delete
          ${libdir}/cairo using:</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">  rmdir ${libdir}/cairo || :</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">or</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">  rmdir --ignore-fail-on-non-empty
          ${libdir}/cairo</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">(former is POSIX compliant, but I can't
          think of a situation where that is only a hypothetical
          problem)</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">Then in the commit message you can say
          that the directory is always created but it only has content
          if you disable cairo-trace.  At least, I hope you are
          explicitly disabling cairo-trace as there's no other way I can
          see for you go get this.</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">Ross</div>
      </div>
    </blockquote>
    Thanks for the suggestion Ross, and you are right this only happens
    if there is a bbappend that removes the 'cairo-perf-utils' package.
    An example of this is the meta-ivi layer.<br>
    Experimenting a bit it seems to me that even by adding the directory
    removal, in case it is empty, the do_package step still fails. By
    inspecting further I can observe that the directory is in fact not
    being removed but left empty which is quite puzzling.<br>
    After doing some thinking I believe it might be better to add the
    removal of the directory and the package files in the bbappend, do
    you agree with this? Here is the PR to meta-ivi that does that
    <a class="moz-txt-link-freetext" href="https://github.com/GENIVI/meta-ivi/pull/45">https://github.com/GENIVI/meta-ivi/pull/45</a>.<br>
  </body>
</html>