<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Le 18/10/2016 à 20:30, MikeB a écrit :<br>
    </div>
    <blockquote
cite="mid:CAAuRgKDPXdcsqUdqqD0LJxfssi4eu1FzE3C9ksbv+4QzDOpYmw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:tahoma,sans-serif;font-size:small">Hi,</div>
      </div>
    </blockquote>
    <br>
    Hey Mike,<br>
    <br>
    <blockquote
cite="mid:CAAuRgKDPXdcsqUdqqD0LJxfssi4eu1FzE3C9ksbv+4QzDOpYmw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:tahoma,sans-serif;font-size:small"><br>
        </div>
        <div class="gmail_default"
          style="font-family:tahoma,sans-serif;font-size:small">I'm
          trying to use the new feature that allows debian packages to
          be used as src.</div>
        <div class="gmail_default"
          style="font-family:tahoma,sans-serif;font-size:small"><br>
        </div>
        <div class="gmail_default"
          style="font-family:tahoma,sans-serif;font-size:small">I have a
          Debian package that installs a library and a symbolic link to
          the library.</div>
        <div class="gmail_default"
          style="font-family:tahoma,sans-serif;font-size:small"><br>
        </div>
        <div class="gmail_default">
          <div class="gmail_default"
            style="font-family:tahoma,sans-serif;font-size:small">mberger@bldecos-1:/builds2/mberger/sonic/sonic-snap$
            dpkg -c ../libsonic-logging1_1.0.1_amd64.deb  | grep
            libsonic</div>
          <div class="gmail_default"
            style="font-family:tahoma,sans-serif;font-size:small">drwxr-xr-x
            root/root         0 2016-10-17 12:51
            ./usr/share/doc/libsonic-logging1/</div>
          <div class="gmail_default"
            style="font-family:tahoma,sans-serif;font-size:small">-rw-r--r--
            root/root       158 2016-10-04 07:09
            ./usr/share/doc/libsonic-logging1/changelog.gz</div>
          <div class="gmail_default"
            style="font-family:tahoma,sans-serif;font-size:small">-rw-r--r--
            root/root     27016 2016-10-17 12:51
            ./usr/lib/x86_64-linux-gnu/libsonic_logging.so.1.0.1</div>
          <div class="gmail_default"
            style="font-family:tahoma,sans-serif;font-size:small">lrwxrwxrwx
            root/root         0 2016-10-17 12:51
            ./usr/lib/x86_64-linux-gnu/libsonic_logging.so.1 ->
            libsonic_logging.so.1.0.1</div>
          <div style="font-family:tahoma,sans-serif;font-size:small"><br>
          </div>
          <div style="font-family:tahoma,sans-serif;font-size:small">The
            relavant snapcraft part is as follows.</div>
          <div style="font-family:tahoma,sans-serif;font-size:small"><br>
          </div>
          <div>
            <div><font face="tahoma, sans-serif">  libsonic-logging1:</font></div>
            <div><font face="tahoma, sans-serif">    plugin: dump</font></div>
            <div><font face="tahoma, sans-serif">    source:
                ../libsonic-logging1_1.0.1_amd64.deb</font></div>
          </div>
          <div><font face="tahoma, sans-serif"><br>
            </font></div>
          <div><font face="tahoma, sans-serif">As the package is pulled,
              the symlink is turned into a directory and ends up being
              installed as a directory.</font></div>
          <div><font face="tahoma, sans-serif"><br>
            </font></div>
          <div><font face="tahoma, sans-serif">
              <div>mberger@bldecos-1:/builds2/mberger/sonic/sonic-snap$
                ls -l
                parts/libsonic-logging1/src/usr/lib/x86_64-linux-gnu</div>
              <div>total 32</div>
              <div>drwxr-xr-x 2 mberger xcore  4096 Oct 18 14:13
                libsonic_logging.so.1</div>
              <div>-rw-r--r-- 1 mberger xcore 27016 Oct 17 12:51
                libsonic_logging.so.1.0.1</div>
              <div><br>
              </div>
              <div>
                <div>mberger@bldecos-1:/builds2/mberger/sonic/sonic-snap$
                  ls -l
                  parts/libsonic-logging1/install/usr/lib/x86_64-linux-gnu/</div>
                <div>total 32</div>
                <div>drwxr-xr-x 2 mberger xcore  4096 Oct 18 14:13
                  libsonic_logging.so.1</div>
                <div>-rw-r--r-- 4 mberger xcore 27016 Oct 17 12:51
                  libsonic_logging.so.1.0.1</div>
              </div>
              <div><br>
              </div>
              <div>
                <div>mberger@bldecos-1:/builds2/mberger/sonic/sonic-snap$
                  ls -l stage/usr/lib/x86_64-linux-gnu/</div>
                <div>total 1928</div>
              </div>
              <div>...</div>
            </font></div>
          <div style="font-family:tahoma,sans-serif;font-size:small">
            <div>drwxr-xr-x 2 mberger xcore   4096 Oct 18 14:13
              libsonic_logging.so.1</div>
            <div>-rw-r--r-- 4 mberger xcore  27016 Oct 17 12:51
              libsonic_logging.so.1.0.1</div>
            <div><br>
            </div>
          </div>
        </div>
        <div class="gmail_default">
          <div class="gmail_default"
            style="font-family:tahoma,sans-serif;font-size:small">mberger@bldecos-1:/builds2/mberger/sonic/sonic-snap$
            ls -l prime/usr/lib/x86_64-linux-gnu/</div>
          <div class="gmail_default"
            style="font-family:tahoma,sans-serif;font-size:small">total
            30600</div>
          <div class="gmail_default"
            style="font-family:tahoma,sans-serif;font-size:small">...</div>
          <div>
            <div><font face="tahoma, sans-serif">drwxr-xr-x 2 mberger
                xcore     4096 Oct 18 14:13 libsonic_logging.so.1</font></div>
            <div><font face="tahoma, sans-serif">-rw-r--r-- 4 mberger
                xcore    27016 Oct 17 12:51 libsonic_logging.so.1.0.1</font></div>
          </div>
          <div style="font-family:tahoma,sans-serif;font-size:small"><br>
          </div>
        </div>
        <div class="gmail_default"
          style="font-family:tahoma,sans-serif;font-size:small">Any
          ideas what may be going on here?</div>
        <div class="gmail_default"
          style="font-family:tahoma,sans-serif;font-size:small"><br>
        </div>
      </div>
    </blockquote>
    I guess indeed this should be treated as a bug, relative symlinks
    should be treated as such as long as they don't point "outside" of
    the snap.<br>
    Mind logging one against the snapcraft project on launchpad?
    (<a class="moz-txt-link-freetext" href="https://launchpad.net/snapcraft">https://launchpad.net/snapcraft</a>)<br>
    Thanks!<br>
    Didier<br>
  </body>
</html>