Symbolic links inside .deb pulled as directories
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
High
|
Kyle Fazzari |
Bug Description
I have a Debian package that installs a library and a symbolic link to the library. The symlinks end up being installed as empty directories. I would expect symlinks to be preserved.
I'm using snapcraft version 2.19.
As an example/repro, take the package libgweather.
It installs a library and symlink to the library.
mberger@
-rw-r--r-- root/root 153808 2016-09-14 08:27 ./usr/lib/
lrwxrwxrwx root/root 0 2016-09-14 08:27 ./usr/lib/
The relevant snapcraft.yaml parts entry...
parts:
my-part:
# See 'snapcraft plugins'
plugin: dump
source: /var/cache/
The result of the pull...
mberger@
total 156
drwxr-xr-x 2 mberger xcore 4096 Oct 19 05:31 libgweather-3.so.6
-rw-r--r-- 1 mberger xcore 153808 Sep 14 08:27 libgweather-
Which finds its way into the snap.
mberger@
Parallel unsquashfs: Using 4 processors
56 inodes (400 blocks) to write
...
drwxr-xr-x root/root 3 2016-10-19 05:31 squashfs-
-rw-r--r-- root/root 153808 2016-09-14 08:27 squashfs-
...
Changed in snapcraft: | |
status: | New → Confirmed |
tags: | added: sources |
Changed in snapcraft: | |
status: | Confirmed → In Progress |
assignee: | nobody → Kyle Fazzari (kyrofa) |
importance: | Undecided → High |
Changed in snapcraft: | |
milestone: | none → next |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
I can repro the issue with snapcraft 2.19