<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 21/09/2015 10:02 PM, Jussi Kukkonen
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAHiDW_EC9LGaxGA7b9=K4kH5iEsw1XrZ0Y2ngs0p-EG0_LN7gg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On 21 September 2015 at 14:09,
            Jonathan Liu <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:net147@gmail.com" target="_blank">net147@gmail.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">This
              avoids a "Could not unlink" warning when extracting a
              /var/run<br>
              symbolic link pointing to /run from the base-files package
              as it is<br>
              unable to unlink the /var/run directory when it contains
              opkg.lock.<br>
              <br>
              This also fixes an issue where /var/run is created as a
              directory<br>
              instead of a symbolic link to /run.<br>
              <br>
              Signed-off-by: Jonathan Liu &lt;<a moz-do-not-send="true"
                href="mailto:net147@gmail.com">net147@gmail.com</a>&gt;<br>
              ---<br>
               ...reate-opkg.lock-in-run-instead-of-var-run.patch | 34
              ++++++++++++++++++++++<br>
               meta/recipes-devtools/opkg/<a moz-do-not-send="true"
                href="http://opkg_0.3.0.bb" rel="noreferrer"
                target="_blank">opkg_0.3.0.bb</a>           |  1 +<br>
               2 files changed, 35 insertions(+)<br>
               create mode 100644
meta/recipes-devtools/opkg/opkg/0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch<br>
              <br>
              diff --git
              a/meta/recipes-devtools/opkg/opkg/0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch
b/meta/recipes-devtools/opkg/opkg/0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch<br>
              new file mode 100644<br>
              index 0000000..255021b<br>
              --- /dev/null<br>
              +++
b/meta/recipes-devtools/opkg/opkg/0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch<br>
              @@ -0,0 +1,34 @@<br>
              +From a4628a6171f393add9a2b287483ca39bb72b4dd6 Mon Sep 17
              00:00:00 2001<br>
              +From: Jonathan Liu &lt;<a moz-do-not-send="true"
                href="mailto:net147@gmail.com">net147@gmail.com</a>&gt;<br>
              +Date: Mon, 21 Sep 2015 20:23:23 +1000<br>
              +Subject: [PATCH] opkg_conf: create opkg.lock in /run
              instead of /var/run<br>
              +<br>
              +This avoids a "Could not unlink" warning when extracting
              a /var/run<br>
              +symbolic link pointing to /run from a package as it is
              unable to<br>
              +unlink the /var/run directory when it contains opkg.lock.<br>
              +<br>
              +This also fixes an issue where /var/run is created as a
              directory<br>
              +instead of a symbolic link to /run.<br>
              +<br>
              +Upstream-Status: Inappropriate [OE-Specific]<br>
            </blockquote>
            <div><br>
            </div>
            <div>Isn't using /run for this appropriate for everyone? I
              would have expected this to be an uncontroversial change.</div>
            <div><br>
            </div>
            <div>Jussi</div>
          </div>
        </div>
      </div>
    </blockquote>
    I didn't want to create a behavior change for other projects using
    opkg that aren't necessarily following the FHS 3 Draft.<br>
    <br>
    Regards,<br>
    Jonathan<br>
    <blockquote
cite="mid:CAHiDW_EC9LGaxGA7b9=K4kH5iEsw1XrZ0Y2ngs0p-EG0_LN7gg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <div><br>
            </div>
            <div><br>
            </div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">+Signed-off-by:
              Jonathan Liu &lt;<a moz-do-not-send="true"
                href="mailto:net147@gmail.com">net147@gmail.com</a>&gt;<br>
              +---<br>
              + libopkg/opkg_conf.h | 2 +-<br>
              + 1 file changed, 1 insertion(+), 1 deletion(-)<br>
              +<br>
              +diff --git a/libopkg/opkg_conf.h b/libopkg/opkg_conf.h<br>
              +index 7bca948..5a1bc44 100644<br>
              +--- a/libopkg/opkg_conf.h<br>
              ++++ b/libopkg/opkg_conf.h<br>
              +@@ -40,7 +40,7 @@ extern "C" {<br>
              + #define OPKG_CONF_DEFAULT_STATUS_FILE 
               "/var/lib/opkg/status"<br>
              + #define OPKG_CONF_DEFAULT_CACHE_DIR   
               "/var/cache/opkg"<br>
              + #define OPKG_CONF_DEFAULT_CONF_FILE_DIR "/etc/opkg"<br>
              +-#define OPKG_CONF_DEFAULT_LOCK_FILE   
               "/var/run/opkg.lock"<br>
              ++#define OPKG_CONF_DEFAULT_LOCK_FILE     "/run/opkg.lock"<br>
              +<br>
              + /* In case the config file defines no dest */<br>
              + #define OPKG_CONF_DEFAULT_DEST_NAME "root"<br>
              +--<br>
              +2.5.0<br>
              +<br>
              diff --git a/meta/recipes-devtools/opkg/<a
                moz-do-not-send="true" href="http://opkg_0.3.0.bb"
                rel="noreferrer" target="_blank">opkg_0.3.0.bb</a>
              b/meta/recipes-devtools/opkg/<a moz-do-not-send="true"
                href="http://opkg_0.3.0.bb" rel="noreferrer"
                target="_blank">opkg_0.3.0.bb</a><br>
              index f4dbb2d..08fb62c 100644<br>
              --- a/meta/recipes-devtools/opkg/<a moz-do-not-send="true"
                href="http://opkg_0.3.0.bb" rel="noreferrer"
                target="_blank">opkg_0.3.0.bb</a><br>
              +++ b/meta/recipes-devtools/opkg/<a moz-do-not-send="true"
                href="http://opkg_0.3.0.bb" rel="noreferrer"
                target="_blank">opkg_0.3.0.bb</a><br>
              @@ -15,6 +15,7 @@ SRC_URI = "<a moz-do-not-send="true"
href="http://downloads.yoctoproject.org/releases/$%7BBPN%7D/$%7BBPN%7D-$%7BPV%7D.tar.gz"
                rel="noreferrer" target="_blank">http://downloads.yoctoproject.org/releases/${BPN}/${BPN}-${PV}.tar.gz</a><br>
                          <a class="moz-txt-link-freetext" href="file://opkg-configure.service">file://opkg-configure.service</a> \<br>
                          <a class="moz-txt-link-freetext" href="file://opkg.conf">file://opkg.conf</a> \<br>
                         
              <a class="moz-txt-link-freetext" href="file://0001-opkg_archive-add-support-for-empty-compressed-files.patch">file://0001-opkg_archive-add-support-for-empty-compressed-files.patch</a>
              \<br>
              +         
               <a class="moz-txt-link-freetext" href="file://0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch">file://0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch</a>
              \<br>
               "<br>
              <br>
               SRC_URI[md5sum] = "3412cdc71d78b98facc84b19331ec64e"<br>
              <span class="HOEnZb"><font color="#888888">--<br>
                  2.5.0<br>
                  <br>
                  --<br>
                  _______________________________________________<br>
                  Openembedded-core mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.openembedded.org/mailman/listinfo/openembedded-core"
                    rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
                </font></span></blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>