<div dir="ltr"><a href="https://bugs.launchpad.net/snapcraft/+bug/1634813">https://bugs.launchpad.net/snapcraft/+bug/1634813</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 19, 2016 at 8:42 AM, Didier Roche <span dir="ltr"><<a href="mailto:didrocks@ubuntu.com" target="_blank">didrocks@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div class="m_7915514445514897028moz-cite-prefix">Le 18/10/2016 à 20:30, MikeB a écrit :<br>
    </div>
    <blockquote 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,<div><div class="h5"><br>
    <br>
    <blockquote 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/<wbr>mberger/sonic/sonic-snap$
            dpkg -c ../libsonic-logging1_1.0.1_<wbr>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-<wbr>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-<wbr>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/<wbr>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/<wbr>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_<wbr>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/<wbr>mberger/sonic/sonic-snap$
                ls -l
                parts/libsonic-logging1/src/<wbr>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/<wbr>mberger/sonic/sonic-snap$
                  ls -l
                  parts/libsonic-logging1/<wbr>install/usr/lib/x86_64-linux-<wbr>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/<wbr>mberger/sonic/sonic-snap$
                  ls -l stage/usr/lib/x86_64-linux-<wbr>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/<wbr>mberger/sonic/sonic-snap$
            ls -l prime/usr/lib/x86_64-linux-<wbr>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></div></div>
    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="m_7915514445514897028moz-txt-link-freetext" href="https://launchpad.net/snapcraft" target="_blank">https://launchpad.net/<wbr>snapcraft</a>)<br>
    Thanks!<span class="HOEnZb"><font color="#888888"><br>
    Didier<br>
  </font></span></div>

<br>--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">- Loïc</div></div>
</div>