Skip to contentSkip to conversation

seccomp: libseccomp version varying according to arch

PATCH Applied Eduardo Otubo 3 participants 3 messages Mar 26, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 seccomp: libseccomp version varying according to arch

Libseccomp dependency was mandating version 2.2.0 on all architectures and this was causing configure and virt-test to break on non-updates distros. This patch works-around it and give a more flexible way to check the version, giving more time for other distros to update libseccomp version.

---
 configure | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
configure +7 -1
index cbe6495..09c9225 100755
@@ -1848,13 +1848,19 @@ fi
 # libseccomp check
 
 if test "$seccomp" != "no" ; then
-    if $pkg_config --atleast-version=2.2.0 libseccomp; then
+    if $pkg_config --atleast-version=2.2.0 libseccomp ||
+        (test "$cpu" = "i386" || test "$cpu" = "x86_64" &&
+        $pkg_config --atleast-version=2.1.1 libseccomp); then
         libs_softmmu="$libs_softmmu `$pkg_config --libs libseccomp`"
         QEMU_CFLAGS="$QEMU_CFLAGS `$pkg_config --cflags libseccomp`"
 	seccomp="yes"
     else
 	if test "$seccomp" = "yes"; then
+        if test "$cpu" = "i386" || test "$cpu" = "x86_64"; then
+            feature_not_found "libseccomp" "Install libseccomp devel >= 2.1.1"
+        else
             feature_not_found "libseccomp" "Install libseccomp devel >= 2.2.0"
+        fi
 	fi
 	seccomp="no"
     fi
Signature · 1 line
1.9.1
Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 8 lines · Eduardo Otubo

Libseccomp dependency was mandating version 2.2.0 on all architectures and this was causing configure and virt-test to break on non-updates distros. This patch works-around it and give a more flexible way to check the version, giving more time for other distros to update libseccomp version.

#2 lore raw
Quoted 11 lines · Juan Quintela
Quoted 8 lines · Eduardo Otubo

Libseccomp dependency was mandating version 2.2.0 on all architectures and this was causing configure and virt-test to break on non-updates distros. This patch works-around it and give a more flexible way to check the version, giving more time for other distros to update libseccomp version.

Applied to master, thanks.

-- PMM