ae23c9
From f98862c05573261a3fd0cd30ed27992290183835 Mon Sep 17 00:00:00 2001
ae23c9
From: Eduardo Otubo <otubo@redhat.com>
ae23c9
Date: Fri, 28 Sep 2018 07:56:38 +0100
ae23c9
Subject: [PATCH 4/6] configure: require libseccomp 2.2.0
ae23c9
MIME-Version: 1.0
ae23c9
Content-Type: text/plain; charset=UTF-8
ae23c9
Content-Transfer-Encoding: 8bit
ae23c9
ae23c9
RH-Author: Eduardo Otubo <otubo@redhat.com>
ae23c9
Message-id: <20180928075639.16746-5-otubo@redhat.com>
ae23c9
Patchwork-id: 82312
ae23c9
O-Subject: [RHEL-8 qemu-kvm PATCH 4/5] configure: require libseccomp 2.2.0
ae23c9
Bugzilla: 1618356
ae23c9
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
ae23c9
RH-Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
ae23c9
RH-Acked-by: Thomas Huth <thuth@redhat.com>
ae23c9
ae23c9
From: Marc-André Lureau <marcandre.lureau@redhat.com>
ae23c9
ae23c9
commit d0699bd37c48067cffbd80383172efc29da6d2f9
ae23c9
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
ae23c9
Date:   Wed Aug 22 19:02:49 2018 +0200
ae23c9
ae23c9
    configure: require libseccomp 2.2.0
ae23c9
ae23c9
    The following patch is going to require TSYNC, which is only available
ae23c9
    since libseccomp 2.2.0.
ae23c9
ae23c9
    libseccomp 2.2.0 was released February 12, 2015.
ae23c9
ae23c9
    According to repology, libseccomp version in different distros:
ae23c9
ae23c9
      RHEL-7: 2.3.1
ae23c9
      Debian (Stretch): 2.3.1
ae23c9
      OpenSUSE Leap 15: 2.3.2
ae23c9
      Ubuntu (Xenial):  2.3.1
ae23c9
ae23c9
    This will drop support for -sandbox on:
ae23c9
ae23c9
      Debian (Jessie): 2.1.1 (but 2.2.3 in backports)
ae23c9
ae23c9
    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
ae23c9
    Acked-by: Eduardo Otubo <otubo@redhat.com>
ae23c9
ae23c9
Signed-off-by: Eduardo Otubo <otubo@redhat.com>
ae23c9
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
ae23c9
---
ae23c9
 configure | 7 ++-----
ae23c9
 1 file changed, 2 insertions(+), 5 deletions(-)
ae23c9
ae23c9
diff --git a/configure b/configure
ae23c9
index 23d8d18..efd9eb6 100755
ae23c9
--- a/configure
ae23c9
+++ b/configure
ae23c9
@@ -2137,13 +2137,10 @@ fi
ae23c9
 ##########################################
ae23c9
 # libseccomp check
ae23c9
 
ae23c9
+libseccomp_minver="2.2.0"
ae23c9
 if test "$seccomp" != "no" ; then
ae23c9
     case "$cpu" in
ae23c9
-    i386|x86_64)
ae23c9
-        libseccomp_minver="2.1.0"
ae23c9
-        ;;
ae23c9
-    mips)
ae23c9
-        libseccomp_minver="2.2.0"
ae23c9
+    i386|x86_64|mips)
ae23c9
         ;;
ae23c9
     arm|aarch64)
ae23c9
         libseccomp_minver="2.2.3"
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9