qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] seccomp: change configure to avoid arm 32 to break
@ 2014-11-05 16:47 Eduardo Otubo
  2014-11-05 17:08 ` Peter Maydell
  0 siblings, 1 reply; 13+ messages in thread
From: Eduardo Otubo @ 2014-11-05 16:47 UTC (permalink / raw)
  To: qemu-devel; +Cc: pmoore, peter.maydell, philipp.gesang, Eduardo Otubo

Right now seccomp is breaking the compilation of Qemu on armv7l due
to libsecomp current lack of support for this arch. This problem is
already fixed on libseccomp upstream but no release date for that is
scheduled to far. This patch disables support for seccomp on armv7l
temporarily until libseccomp does a new release. Then I'll remove the
hack and update libseccomp dependency on configure script.

Related bug: https://bugs.launchpad.net/qemu/+bug/1363641

Signed-off-by: Eduardo Otubo <eduardo.otubo@profitbricks.com>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 2f17bf3..2ec04b0 100755
--- a/configure
+++ b/configure
@@ -1822,7 +1822,7 @@ fi
 ##########################################
 # libseccomp check
 
-if test "$seccomp" != "no" ; then
+if test "$seccomp" != "no" && test "$cpu" != "arm" ; then
     if $pkg_config --atleast-version=2.1.0 libseccomp; then
         libs_softmmu="$libs_softmmu `$pkg_config --libs libseccomp`"
         QEMU_CFLAGS="$QEMU_CFLAGS `$pkg_config --cflags libseccomp`"
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread
* [Qemu-devel] [PATCH] seccomp: change configure to avoid arm 32 to break
@ 2014-11-06 14:49 Eduardo Otubo
  2014-11-06 15:49 ` Peter Maydell
  2014-11-06 16:22 ` Paul Moore
  0 siblings, 2 replies; 13+ messages in thread
From: Eduardo Otubo @ 2014-11-06 14:49 UTC (permalink / raw)
  To: qemu-devel; +Cc: pmoore, peter.maydell, philipp.gesang, Eduardo Otubo

Right now seccomp is breaking the compilation of Qemu on armv7l due
to libsecomp current lack of support for this arch. This problem is
already fixed on libseccomp upstream but no release date for that is
scheduled to far. This patch disables support for seccomp on armv7l
temporarily until libseccomp does a new release. Then I'll remove the
hack and update libseccomp dependency on configure script.

Related bug: https://bugs.launchpad.net/qemu/+bug/1363641

Signed-off-by: Eduardo Otubo <eduardo.otubo@profitbricks.com>
---
 configure | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/configure b/configure
index 2f17bf3..16fd7f5 100755
--- a/configure
+++ b/configure
@@ -1823,15 +1823,17 @@ fi
 # libseccomp check
 
 if test "$seccomp" != "no" ; then
-    if $pkg_config --atleast-version=2.1.0 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
-            feature_not_found "libseccomp" "Install libseccomp devel >= 2.1.0"
-	fi
-	seccomp="no"
+    if test "$cpu" = "i386" || test "$cpu" = "x86_64"; then
+        if $pkg_config --atleast-version=2.1.0 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
+                feature_not_found "libseccomp" "Install libseccomp devel >= 2.1.0"
+            fi
+            seccomp="no"
+        fi
     fi
 fi
 ##########################################
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-11-06 16:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-05 16:47 [Qemu-devel] [PATCH] seccomp: change configure to avoid arm 32 to break Eduardo Otubo
2014-11-05 17:08 ` Peter Maydell
2014-11-05 19:46   ` Paul Moore
2014-11-05 20:08     ` Peter Maydell
2014-11-05 20:35       ` Paul Moore
2014-11-06  9:24         ` Eduardo Otubo
2014-11-06 16:37           ` Paul Moore
  -- strict thread matches above, loose matches on Subject: below --
2014-11-06 14:49 Eduardo Otubo
2014-11-06 15:49 ` Peter Maydell
2014-11-06 16:22   ` Eduardo Otubo
2014-11-06 16:22 ` Paul Moore
2014-11-06 16:36   ` Eduardo Otubo
2014-11-06 16:54     ` Paul Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).