From patchwork Thu Nov 6 14:49:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Otubo X-Patchwork-Id: 407559 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3208714008C for ; Fri, 7 Nov 2014 01:49:55 +1100 (AEDT) Received: from localhost ([::1]:53836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmONk-0004QU-L6 for incoming@patchwork.ozlabs.org; Thu, 06 Nov 2014 09:49:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmONL-00043E-SP for qemu-devel@nongnu.org; Thu, 06 Nov 2014 09:49:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmONG-0003ZO-Ls for qemu-devel@nongnu.org; Thu, 06 Nov 2014 09:49:27 -0500 Received: from mail-wg0-f54.google.com ([74.125.82.54]:35576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmONG-0003Z9-GW for qemu-devel@nongnu.org; Thu, 06 Nov 2014 09:49:22 -0500 Received: by mail-wg0-f54.google.com with SMTP id n12so1378355wgh.13 for ; Thu, 06 Nov 2014 06:49:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=RvgcRDdQybUFpI91UsaBQWEbcO7KVg7Bjz3lEswj2r0=; b=NDbaF167EIWwi1LwnVR9VYtnb2bhOCWbvV95i0/L47nRwvjTqBqeJCeGTYEeYz9+U1 cE/12+57YFMv+/uJ6Uv5DxsdRr5uwF8BNb9WSUUwcowdbhjnWctZp2WeZ0D8JHPlq6S2 FP0C7QjY6NvUhkYJ8xRWDOlujgoddhL24vFRalp45yx6/ou1m9iMlDpFZLJHZOPrZekh X9Z7W48JZHHqJ/ex7v4W5qMdsxuRZFibxZ6qttMPADelcP7gfHyTF1HqqAabeMaOgo2U dTt6lq+TIyc7IEpMqOFVGQrDfaCsGq/dtw5HVczkj2LMJo4WgNBld9O5YKHoaEu1DL8m vAGg== X-Gm-Message-State: ALoCoQlYQ6TxajeOsULWLenB0LHVctGRfV/BPZp8dznkFn6CC3SyC9DI+0mmQc09ZQT1jZ6euKkB X-Received: by 10.180.8.34 with SMTP id o2mr14750300wia.23.1415285361830; Thu, 06 Nov 2014 06:49:21 -0800 (PST) Received: from vader.pb.local ([62.217.45.26]) by mx.google.com with ESMTPSA id wl1sm8113271wjb.4.2014.11.06.06.49.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Nov 2014 06:49:20 -0800 (PST) From: Eduardo Otubo To: qemu-devel@nongnu.org Date: Thu, 6 Nov 2014 15:49:18 +0100 Message-Id: <1415285358-7446-1-git-send-email-eduardo.otubo@profitbricks.com> X-Mailer: git-send-email 1.9.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.82.54 Cc: pmoore@redhat.com, peter.maydell@linaro.org, philipp.gesang@intra2net.com, Eduardo Otubo Subject: [Qemu-devel] [PATCH] seccomp: change configure to avoid arm 32 to break X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- 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 ##########################################