[lxc-devel] Building lxc 1.1 from spec: configure and automake

Dwight Engen dwight.engen at oracle.com
Mon Dec 8 20:28:01 UTC 2014


On Mon, 08 Dec 2014 20:51:09 +0100
Johannes Kastl <mail at ojkastl.de> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi everyone,
> 
> as 1.1 seems to be getting nearer, I wanted to start building packages
> for openSUSE. First thing I ran into is the missing configure, so one
> has to run autogen.sh first. (This is different on 1.0.x).
> 
> Unfortunately, this does not work (in my tests) with the upstream
> spec, at least not out of the box. I found a hack that defines
> %_configure to run autogen.sh, but then configure is not called
> correctly.
> 
> How could this be handled in the spec?
> 
> I also had to add automake as BuildRequires, otherwise autogen.sh does
> not find aclocal...

Hi Johannes,

I think that release tarballs will always have configure, just raw git
checkouts will not.

For Oracle's build of lxc, we run ./autogen.sh as the first line of %build,
so just before %configure runs. We do this because the version of
aclocal included with a released tarball may be too new for our build
environment, so we just regenerate. Of course this then means that we
need to add automake and autoconf to BuildRequires. If you need to run
autogen.sh in your enviroment, this would probably work for you as well.

> Regards,
> Johannes
> - -- 
> I still maintain the point that designing a monolithic kernel in 1991
> is a fundamental error. Be thankful you are not my student. You would
> not get a high grade for such a design.
> (Andrew Tanenbaum to Linus Torvalds)
> -----BEGIN PGP SIGNATURE-----
> Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/
> 
> iEYEARECAAYFAlSGAS0ACgkQzi3gQ/xETbJJyACggeTxfBMHL0KQzzpRgeUL1Tu4
> 6BgAn3Tb3WSdRp6kKPhgzuawCLleYM9u
> =jE7o
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel



More information about the lxc-devel mailing list