<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 05/03/2018 09:20 AM, Michael Gloff
      wrote:<br>
    </div>
    <blockquote
cite="mid:CALXw4G79a_yJvV1GrMxVEiVRs0b_RU324yGDy+wZwAV-T4Wj_w@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>I am seeing with the latest in Sumo/Master that the
                  busybox post install is failing to create all of the
                  applet symlinks if there is already a package
                  installed from another provider during do_rootfs. This
                  can be seen, for example, when enabling lsattr applet
                  and having e2fsprogs installed into an image.<br>
                  <br>
                </div>
                The error is:<br>
                update-alternatives: Error: not linking
                /home/developer/oe-test/build_<wbr>master/tmp/work/somimx6-emac-l<wbr>inux-gnueabi/emac-image/1.0-r0<wbr>/rootfs/usr/bin/lsattr
                to /usr/bin/busybox.nosuid since
                /home/developer/oe-test/build_<wbr>master/tmp/work/somimx6-emac-l<wbr>inux-gnueabi/emac-image/1.0-r0<wbr>/rootfs/usr/bin/lsattr
                exists and is not a link<br>
                <br>
              </div>
              In Rocko and before, this error is present, but the script
              continues creating the rest of the symlinks and exits with
              success.<br>
              <br>
            </div>
            Does anyone have any idea why the failure is now causing the
            script to stop executing?<span
              class="gmail-m_9104236682904143277HOEnZb"><font
                color="#888888"><br>
                <br>
              </font></span></div>
          <span class="gmail-m_9104236682904143277HOEnZb"><font
              color="#888888">Michael Gloff<br>
            </font></span></div>
        <span class="gmail-m_9104236682904143277HOEnZb"><font
            color="#888888"><a moz-do-not-send="true"
              href="mailto:mgloff@emacinc.com" target="_blank">mgloff@emacinc.com</a></font></span><br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
    e2fsprogs deals with 'chattr', you can do the similar for 'lsattr'.<br>
    meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb:    mv
    ${D}${bindir}/chattr ${D}${base_bindir}/chattr.e2fsprogs<br>
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb:ALTERNATIVE_${PN} =
    "chattr"<br>
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb:ALTERNATIVE_LINK_NAME[chattr]
    = "${base_bindir}/chattr"<br>
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb:ALTERNATIVE_TARGET[chattr]
    = "${base_bindir}/chattr.e2fsprogs"<br>
    <br>
    For your question, maybe update-alternatives has been upgraded to
    view such conflict as error? I didn't check.<br>
    <br>
    Best Regards,<br>
    Chen Qi<br>
  </body>
</html>