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

Fix compatibility with liblxc 4.0.4 and newer #46

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aither64
Copy link
Contributor

ruby-lxc is broken with LXC 4.0.4 and newer, as two used external functions were removed from liblxc (see #45). This PR makes ruby-lxc work again with the following changes:

  • lxc_config_parse_arch() from liblxc was used in LXC.arch_to_personality(). I don't know what can this method be used for, I've just removed it.
  • lxc_wait_for_pid_status() does nothing special, I've added it's implementation into ruby-lxc.

Fixes #45

It depended on a function from liblxc, which is no longer exported due
to lxc/lxc@63c2a0b

Signed-off-by: Jakub Skokan <jakub.skokan@havefun.cz>
…blxc

Signed-off-by: Jakub Skokan <jakub.skokan@havefun.cz>
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.

ruby-lxc broken by liblxc 4.0.4: undefined symbol: lxc_config_parse_arch
1 participant