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

Use Unpack function in archive package #604

Merged
merged 2 commits into from
Mar 22, 2022

Conversation

monstermunchkin
Copy link
Member

No description provided.

@monstermunchkin monstermunchkin force-pushed the misc/unpack branch 3 times, most recently from 2967f31 to 988df50 Compare March 11, 2022 14:52
@@ -27,7 +30,9 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get -qq update
sudo apt-get install -y squashfs-tools
sudo apt-get install -y squashfs-tools libcap-dev libacl1-dev
sudo add-apt-repository -y ppa:dqlite/dev
Copy link
Contributor

@tomponline tomponline Mar 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does distrobuilder need dqlite or liblxc?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably importing something from github.com/lxc/lxd which is triggering this, but it'd definitely be preferable to track down what's causing it and split packages differently on the LXD side instead of pulling all of this into distrobuilder.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably the apparmor package, yeah would be good to split.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new Unpack() function takes a sys.OS argument. The sys package requires the db package among others. So that's the reason. distrobuilder itself doesn't need either of the mentioned packages.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps allowing nil for that specific argument would solve this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That explains dqlite, but not liblxc?

Can we decouple sys from db or move sys.OS elsewhere?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depends how the liblxc dep is being introduced.

The latest Unpack function from LXD pulls in some unnecessary
dependencies. We therefore ship LXD's old Unpack function.

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants