[lxc-devel] lxc on openSUSE: lxc-top not working due to lua?

Stéphane Graber stgraber at ubuntu.com
Sun May 18 14:04:44 UTC 2014


On Sun, May 18, 2014 at 03:58:52PM +0200, Johannes Kastl wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 18.05.2014 15:27 Michael H. Warfield wrote:
> > On Sun, 2014-05-18 at 15:20 +0200, Johannes Kastl wrote:
> >> On 18.05.2014 15:10 Michael H. Warfield wrote:
> >> 
> >>> You wrote: "I added a --enable-lua to the spec and compiled
> >>> it"
> >>> 
> >>> Wait...  Let's refine that statement a bit...
> > 
> >> I clarify: I added this option to the configure call used in
> >> spec, which is used to build the existing package in the openSUSE
> >> build service, which I took as a starting point. One reason is,
> >> that this is the package I have installed, and which gave me the
> >> lua error in the first place.
> > 
> > Ah.  Thank you.  That clarifies it a lot.
> 
> Back to one of my questions: Is there a way to see, if lxc has been
> compiled with lua support? To see if this has actually been setup
> right and the option to configure did get 'executed'....

The core of LXC itself doesn't change when lua is enabled, the only
differences are that the following bits get built and installed:
 - /usr/lib/.../lua/VERSION/lxc/core.so (lua binding)
 - /usr/bin/lxc-top
 - /usr/share/lua/VERSION/lxc.lua (lua wrapper for core.so)

Nothing else actually changes.

Now lxc.lua itself depends on a bunch of external lua modules:
 - alt_getopt
 - lua-filesystem

For Debian/Ubuntu, the former isn't packaged which currently precludes
inclusion of lua-lxc in those distros, LXC's own daily package builds
bundle alt_getopt to workaround this. lua-filesystem is packaged in
Debian so we can just depend on that one, other distros may have to
package it though.

> 
> Regards,
> Johannes
> - -- 
> | Yes, I know. But there are even conjobs running as user games?
> Sometimes when cron is bored he starts playing games, didn't you know?
>  ;-)
> (Aschwin Marsman and Robert Schiele on the opensuse-Mailinglist)
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (GNU/Linux)
> Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/
> 
> iEUEARECAAYFAlN4vJwACgkQzi3gQ/xETbIhggCWM9tZr2Vm8LvZdjVmzE8Z+YgZ
> sACfQAah0b9af6cl9DIIb74rXJhK0Xw=
> =bdH7
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140518/1fc6ac8b/attachment.sig>


More information about the lxc-devel mailing list