Symbolic links inside .deb turning into directories

MikeB mabnhdev at gmail.com
Tue Oct 18 18:30:27 UTC 2016


Hi,

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?

Thanks, Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161018/a868e4c6/attachment.html>


More information about the Snapcraft mailing list