[PATCH] build: avoid RHEL 5 build failure on LXC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Per the discussion here, LXC on RHEL 5 makes no sense.
https://www.redhat.com/archives/libvir-list/2011-September/msg01169.html

* configure.ac (with_lxc): Reject RHEL 5.x LXC as too old.
---

Pushing under the build-breaker rule.  I tested that this has no
impact on RHEL 6 or Fedora 14, but that on RHEL 5 it properly skips
building the entire lxc driver, letting the build get further (it
still died, but on a html file creation error rather than
compilation-related).

 configure.ac |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 6a0936a..5753c08 100644
--- a/configure.ac
+++ b/configure.ac
@@ -687,8 +687,9 @@ fi
 if test "$with_lxc" = "yes" || test "$with_lxc" = "check"; then
     AC_TRY_LINK([
         #include <sched.h>
+        #include <linux/loop.h>
     ], [
-        unshare (1);
+        unshare (!LO_FLAGS_AUTOCLEAR);
     ], [
         with_lxc=yes
     ], [
-- 
1.7.4.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]