Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packaging/{ubuntu,debian}: add liblzo2-dev as a dependency for building snapd #9470

Merged
merged 1 commit into from Oct 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions packaging/debian-sid/control
Expand Up @@ -49,6 +49,7 @@ Build-Depends: autoconf,
libcap-dev,
libapparmor-dev,
libglib2.0-dev,
liblzo2-dev,
libseccomp-dev,
libudev-dev,
openssh-client,
Expand Down
1 change: 1 addition & 0 deletions packaging/ubuntu-16.04/control
Expand Up @@ -26,6 +26,7 @@ Build-Depends: autoconf,
libfuse-dev,
libglib2.0-dev,
liblzma-dev,
liblzo2-dev,
libseccomp-dev,
libudev-dev,
openssh-client,
Expand Down
10 changes: 10 additions & 0 deletions tests/main/lxd-snapfuse/task.yaml
Expand Up @@ -60,3 +60,13 @@ execute: |

echo "We can also remove snaps successfully"
lxd.lxc exec my-ubuntu -- snap remove --purge test-snapd-sh

snap pack --compression=lzo "$TESTSLIB/snaps/test-snapd-sh" . --filename test-snapd-sh-lzo.snap
test -e test-snapd-sh-lzo.snap
unsquashfs -l test-snapd-sh-lzo.snap
unsquashfs -s test-snapd-sh-lzo.snap | MATCH "Compression lzo"

echo "lzo compressed snaps can be used normally inside the lxd container"
lxd.lxc file push --quiet test-snapd-sh-lzo.snap "my-ubuntu/$GOHOME/test-snapd-sh-lzo.snap"
lxd.lxc exec my-ubuntu -- snap install --dangerous "$GOHOME/test-snapd-sh-lzo.snap"
lxd.lxc exec my-ubuntu -- test-snapd-sh.sh -c "echo hello-lzo" | MATCH "hello-lzo"