Le 29/12/16 à 13:08, Liang Guo a écrit :
On Thu, Dec 29, 2016 at 5:06 AM, Laurent Bigonville <bi...@debian.org> wrote:
diff -Nru spice-0.12.8/debian/patches/fix_ftbfs_kfreebsd.patch
spice-0.12.8/debian/patches/fix_ftbfs_kfreebsd.patch
--- spice-0.12.8/debian/patches/fix_ftbfs_kfreebsd.patch 1970-01-01
01:00:00.000000000 +0100
+++ spice-0.12.8/debian/patches/fix_ftbfs_kfreebsd.patch 2016-12-28
22:00:20.000000000 +0100
@@ -0,0 +1,25 @@
+Description: Fix FTBFS on kfreebsd-*
+ Check if TCP_KEEPIDLE is defined before trying to use it
+ .
+ TCP_KEEPIDLE is not portable
+Author: Laurent Bigonville <bi...@debian.org>
+Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99213
+
+--- a/server/reds.c
++++ b/server/reds.c
+@@ -2263,6 +2263,7 @@ static bool reds_init_keepalive(int sock
+ }
+ }
+
++#ifdef TCP_KEEPIDLE
+ if (setsockopt(socket, SOL_TCP, TCP_KEEPIDLE,
+ &keepalive_timeout, sizeof(keepalive_timeout)) == -1) {
+ if (errno != ENOTSUP) {
+@@ -2270,6 +2271,7 @@ static bool reds_init_keepalive(int sock
+ return false;
+ }
+ }
++#endif
+
+ return true;
+ }
Can spice and qemu work on kfreebsd and hurd?
Good question, qemu compiles (or was compiling) on kfreebsd-* but not on
hurd
For spice itself, I tried on the porterbox and (with my patch) it's
also compiling on all the architectures