Symbolic links inside .deb turning into directories

Loïc Minier loic.minier at ubuntu.com
Wed Oct 19 10:55:23 UTC 2016


https://bugs.launchpad.net/snapcraft/+bug/1634813

On Wed, Oct 19, 2016 at 8:42 AM, Didier Roche <didrocks at ubuntu.com> wrote:

> Le 18/10/2016 à 20:30, MikeB a écrit :
>
> Hi,
>
>
> Hey Mike,
>
>
>
> I'm trying to use the new feature that allows debian packages to be used
> as src.
>
> I have a Debian package that installs a library and a symbolic link to the
> library.
>
> mberger at bldecos-1:/builds2/mberger/sonic/sonic-snap$ dpkg -c
> ../libsonic-logging1_1.0.1_amd64.deb  | grep libsonic
> drwxr-xr-x root/root         0 2016-10-17 12:51 ./usr/share/doc/libsonic-
> logging1/
> -rw-r--r-- root/root       158 2016-10-04 07:09 ./usr/share/doc/libsonic-
> logging1/changelog.gz
> -rw-r--r-- root/root     27016 2016-10-17 12:51 ./usr/lib/x86_64-linux-gnu/
> libsonic_logging.so.1.0.1
> 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
>
> The relavant snapcraft part is as follows.
>
>   libsonic-logging1:
>     plugin: dump
>     source: ../libsonic-logging1_1.0.1_amd64.deb
>
> As the package is pulled, the symlink is turned into a directory and ends
> up being installed as a directory.
>
> mberger at bldecos-1:/builds2/mberger/sonic/sonic-snap$ ls -l
> parts/libsonic-logging1/src/usr/lib/x86_64-linux-gnu
> total 32
> drwxr-xr-x 2 mberger xcore  4096 Oct 18 14:13 libsonic_logging.so.1
> -rw-r--r-- 1 mberger xcore 27016 Oct 17 12:51 libsonic_logging.so.1.0.1
>
> mberger at bldecos-1:/builds2/mberger/sonic/sonic-snap$ ls -l
> parts/libsonic-logging1/install/usr/lib/x86_64-linux-gnu/
> total 32
> drwxr-xr-x 2 mberger xcore  4096 Oct 18 14:13 libsonic_logging.so.1
> -rw-r--r-- 4 mberger xcore 27016 Oct 17 12:51 libsonic_logging.so.1.0.1
>
> mberger at bldecos-1:/builds2/mberger/sonic/sonic-snap$ ls -l
> stage/usr/lib/x86_64-linux-gnu/
> total 1928
> ...
> drwxr-xr-x 2 mberger xcore   4096 Oct 18 14:13 libsonic_logging.so.1
> -rw-r--r-- 4 mberger xcore  27016 Oct 17 12:51 libsonic_logging.so.1.0.1
>
> mberger at bldecos-1:/builds2/mberger/sonic/sonic-snap$ ls -l
> prime/usr/lib/x86_64-linux-gnu/
> total 30600
> ...
> drwxr-xr-x 2 mberger xcore     4096 Oct 18 14:13 libsonic_logging.so.1
> -rw-r--r-- 4 mberger xcore    27016 Oct 17 12:51 libsonic_logging.so.1.0.1
>
> Any ideas what may be going on here?
>
> 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.
> Mind logging one against the snapcraft project on launchpad? (
> https://launchpad.net/snapcraft)
> Thanks!
> Didier
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>


-- 
- Loïc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161019/240300f4/attachment.html>


More information about the Snapcraft mailing list