[lxc-devel] Building lxc on CentOS 7

Johannes Kastl mail at ojkastl.de
Sat Dec 5 19:04:49 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

... or rather on openSUSE Build Service for CentOS 7 with python34.
But I'm getting ahead of myself.

Dear all,

for a while I am building my own lxc packages for various openSUSE
versions on the openSUSE Build Service.

As I recently got a machine with CentOS and wanted to run lxc on it,
I tried to build my packages for CentOS. Getting it to build is
easy, but then I would run into the same issue that the 'official'
packages in EPEL have: They are not built against python3, so lxc-ls
- --fancy does not work (or rather the output is not usable...).

I got the python packages to bild on the OBS. But as the CentOS/EPEL
python34 package installs python to /usr/bin/python34, and
/usr/bin/python is calling python2.7, I get failing builds:

> [  121s] checking whether seccomp_syscall_resolve_name_arch is
> declared... no [  121s] checking for a Python interpreter with
> version >= 3.2... none [  121s] configure: error: You must
> install python3 [  121s] error: Bad exit status from
> /var/tmp/rpm-tmp.4ahI03 (%build)

Is there a way to tell configure (I guess this is the configure
step) to use the other python, that is in /usr/bin/python34 and not
in /usr/bin/python?

FYI, the builds are here:

> https://build.opensuse.org/project/monitor/home:ojkastl_buildservice
:LXC_Vanilla_stable-1.0
> 
Thanks in advance,

Johannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/

iEYEARECAAYFAlZjNUsACgkQzi3gQ/xETbIDbACeK7kNUTq9miDg6hGnQDIucp3H
ln8AoIjAbS2kUVg85rcQQmRcRrIx+XJc
=J4X5
-----END PGP SIGNATURE-----


More information about the lxc-devel mailing list