On 05/20/12 14:54, Bertrand Marc wrote:
Hi,
I'am sorry to let you know that your patches don't apply againt GNUnet
0.9.2... I could manage 01 and 02 by myself, by the file pointed by 03
doesn't exist anymore, and I fear it is not the only issue as many
things changed between 0.8 and 0.9...
Actually, 0.9.2 was easier to port than 0.8 :) The attached three
patches should fix a few issues on GNU/Hurd : configure, make and make
install should be no problem. Three tests (out of forty-five) still
fail, though. I'll try and take a look at these when I got time.
I'll be happy to apply any harmless patch against 0.9.2 and forward them
upstream.
Cool, thanks a lot !
Cyril.
--- gnunet-0.9.2.orig/configure.ac 2012-02-28 09:31:55.000000000 +0000
+++ gnunet-0.9.2/configure.ac 2012-05-27 23:46:57.000000000 +0000
@@ -159,6 +159,11 @@
DLLDIR=bin
UNIXONLY=""
;;
+gnu*)
+ AC_DEFINE_UNQUOTED(GNU,1,[This is a GNU system])
+ build_target="gnu"
+ UNIXONLY="#"
+ ;;
*)
AC_MSG_RESULT(Unrecognised OS $host_os)
AC_DEFINE_UNQUOTED(OTHEROS,1,[Some strange OS])
@@ -180,6 +185,7 @@
AM_CONDITIONAL(XFREEBSD, test "$build_target" = "freebsd")
AM_CONDITIONAL(OPENBSD, test "$build_target" = "openbsd")
AM_CONDITIONAL(LINUX, test "$build_target" = "linux")
+AM_CONDITIONAL(GNU, test "$build_target" = "gnu")
AC_MSG_RESULT([$build_target])
AC_SUBST(build_target)
--- gnunet-0.9.2.orig/src/util/disk.c 2012-02-28 15:16:52.000000000 +0000
+++ gnunet-0.9.2/src/util/disk.c 2012-05-27 19:39:43.000000000 +0000
@@ -51,7 +51,7 @@
-#if defined(LINUX) || defined(CYGWIN)
+#if defined(LINUX) || defined(CYGWIN) || defined(GNU)
#include <sys/vfs.h>
#else
#if defined(SOMEBSD) || defined(DARWIN)
--- gnunet-0.9.2.orig/src/include/platform.h 2012-02-28 09:20:21.000000000
+0000
+++ gnunet-0.9.2/src/include/platform.h 2012-05-27 19:45:04.000000000 +0000
@@ -146,7 +146,7 @@
#include <semaphore.h>
#include <net/if.h>
#endif
-#ifdef LINUX
+#if defined(LINUX) || defined(GNU)
#include <net/if.h>
#endif
#ifdef SOLARIS