All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] seccomp: libseccomp version varying according to arch
@ 2015-03-26 15:56 Eduardo Otubo
  2015-03-26 16:21 ` Juan Quintela
  0 siblings, 1 reply; 3+ messages in thread
From: Eduardo Otubo @ 2015-03-26 15:56 UTC (permalink / raw)
  To: qemu-devel, pmoore, peter.maydell, quintela; +Cc: 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.

Signed-off-by: Eduardo Otubo <eduardo.otubo@profitbricks.com>
Reported-by: Juan Quintela <quintela@redhat.com>
---
 configure | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index cbe6495..09c9225 100755
--- a/configure
+++ b/configure
@@ -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
-- 
1.9.1

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

* Re: [Qemu-devel] [PATCH] seccomp: libseccomp version varying according to arch
  2015-03-26 15:56 [Qemu-devel] [PATCH] seccomp: libseccomp version varying according to arch Eduardo Otubo
@ 2015-03-26 16:21 ` Juan Quintela
  2015-03-26 17:33   ` Peter Maydell
  0 siblings, 1 reply; 3+ messages in thread
From: Juan Quintela @ 2015-03-26 16:21 UTC (permalink / raw)
  To: Eduardo Otubo; +Cc: pmoore, peter.maydell, qemu-devel

Eduardo Otubo <eduardo.otubo@profitbricks.com> wrote:
> 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.
>
> Signed-off-by: Eduardo Otubo <eduardo.otubo@profitbricks.com>
> Reported-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Tested-by: Juan Quintela <quintela@redhat.com>

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

* Re: [Qemu-devel] [PATCH] seccomp: libseccomp version varying according to arch
  2015-03-26 16:21 ` Juan Quintela
@ 2015-03-26 17:33   ` Peter Maydell
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2015-03-26 17:33 UTC (permalink / raw)
  To: Juan Quintela; +Cc: Paul Moore, QEMU Developers, Eduardo Otubo

On 26 March 2015 at 16:21, Juan Quintela <quintela@redhat.com> wrote:
> Eduardo Otubo <eduardo.otubo@profitbricks.com> wrote:
>> 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.
>>
>> Signed-off-by: Eduardo Otubo <eduardo.otubo@profitbricks.com>
>> Reported-by: Juan Quintela <quintela@redhat.com>
> Reviewed-by: Juan Quintela <quintela@redhat.com>
> Tested-by: Juan Quintela <quintela@redhat.com>

Applied to master, thanks.

-- PMM

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

end of thread, other threads:[~2015-03-26 17:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-26 15:56 [Qemu-devel] [PATCH] seccomp: libseccomp version varying according to arch Eduardo Otubo
2015-03-26 16:21 ` Juan Quintela
2015-03-26 17:33   ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.