Your message dated Sat, 15 Sep 2012 18:32:50 +0000
with message-id <[email protected]>
and subject line Bug#670794: fixed in gnunet 0.9.3-3
has caused the Debian Bug report #670794,
regarding gnunet: FTBFS on hurd-i386.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
670794: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=670794
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gnunet
Severity: important
Tags: upstream patch

Dear Maintainer,

Currently, gnunet fails to build from source on hurd-i386. The attached patches
should fix this issue.

* The first patch adds gnu* to the list of supported operating systems in
  configure.ac. It is not perfect, since I could not try it with a running X
  server and Qt. Still, this should be a good start.

* The second patch checks for the presence of the net/if.h header, so that the
  HAVE_NET_IF_H macro is defined to 1 when it is available.

* The third and fourth patches include some missing headers.

* The fifth patch fixes a simple compilation error.

* The sixth patch fixes calls to ioctl(fd, TCGETS, ...) and ioctl(fd, TCSETS,
  ...) as described in 
http://www.gnu.org/software/hurd/hurd/porting/guidelines.html

* The seventh patch fixes a PATH_MAX issue. Since there is no such limit in the
  Hurd, I just assumed that GNUNET_min(x, PATH_MAX - y) could be just "x" on
  Hurd.

WBR,
Cyril Roelandt.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: hurd-i386 (i686-AT386)

Kernel: GNU-Mach 1.3.99/Hurd-0.3
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
--- gnunet.orig/configure.ac	2012-04-29 00:55:50.000000000 +0000
+++ gnunet/configure.ac	2012-04-29 01:05:06.000000000 +0000
@@ -170,6 +170,10 @@
      QTINC="-I$QTDIR/include -I$QTDIR/include/QtCore -I$QTDIR/include/QtGui -I$QTDIR/include/QtOpenGL -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -frtti -fexceptions"
      QTBIN="$QTDIR/bin"
      ;;
+gnu*)
+     AC_DEFINE_UNQUOTED(GNU,1,[This is a GNU system])
+     build_target="gnu"
+     ;;
 *)
      AC_MSG_RESULT(Unrecognised OS $host_os)
      AC_DEFINE_UNQUOTED(OTHEROS,1,[Some strange OS])
@@ -186,6 +190,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)
 AM_CONDITIONAL([am__fastdepOBJC], false)
--- gnunet.orig/configure.ac	2012-04-29 01:18:39.000000000 +0000
+++ gnunet/configure.ac	2012-04-29 01:12:40.000000000 +0000
@@ -288,7 +288,7 @@
 AC_CHECK_HEADERS([fcntl.h math.h errno.h ctype.h limits.h stdio.h stdlib.h string.h unistd.h stdarg.h signal.h locale.h sys/stat.h sys/types.h pthread.h],,AC_MSG_ERROR([Compiling GNUnet requires standard UNIX headers files]))
 
 # Checks for headers that are only required on some systems or opional (and where we do NOT abort if they are not there)
-AC_CHECK_HEADERS([langinfo.h sys/param.h sys/mount.h sys/statvfs.h sys/select.h sockLib.h sys/mman.h sys/msg.h sys/vfs.h arpa/inet.h fcntl.h libintl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h sys/time.h unistd.h kstat.h sys/sysinfo.h kvm.h sys/file.h sys/resource.h iconv.h ifaddrs.h mach/mach.h stddef.h sys/timeb.h terminos.h argz.h])
+AC_CHECK_HEADERS([langinfo.h sys/param.h sys/mount.h sys/statvfs.h sys/select.h sockLib.h sys/mman.h sys/msg.h sys/vfs.h arpa/inet.h fcntl.h libintl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h sys/time.h unistd.h kstat.h sys/sysinfo.h kvm.h sys/file.h sys/resource.h iconv.h ifaddrs.h mach/mach.h stddef.h sys/timeb.h terminos.h argz.h net/if.h])
 
 # Check for GMP header (and abort if not present)
 AC_CHECK_HEADERS([gmp.h],,AC_MSG_ERROR([Compiling GNUnet requires gmp.h (from the GNU MP library, libgmp)]))
--- gnunet.orig/src/util/disk/storage.c	2012-04-29 00:56:16.000000000 +0000
+++ gnunet/src/util/disk/storage.c	2012-04-28 02:16:52.000000000 +0000
@@ -30,7 +30,7 @@
 
 
 
-#if LINUX || CYGWIN
+#if LINUX || CYGWIN || GNU
 #include <sys/vfs.h>
 #else
 #ifdef SOMEBSD
--- gnunet.orig/src/util/network/ip.c	2012-04-29 00:56:16.000000000 +0000
+++ gnunet/src/util/network/ip.c	2012-04-28 02:18:29.000000000 +0000
@@ -41,6 +41,10 @@
 #include "platform.h"
 #include "gnunet_util_network.h"
 
+#if HAVE_NET_IF_H
+#include <net/if.h>
+#endif
+
 /* maximum length of hostname */
 #define MAX_HOSTNAME 1024
 
--- gnunet.orig/src/util/os/osconfig.c	2012-04-29 00:56:17.000000000 +0000
+++ gnunet/src/util/os/osconfig.c	2012-04-28 02:19:30.000000000 +0000
@@ -30,6 +30,9 @@
 #include "platform.h"
 #include "gnunet_util_os.h"
 #include "gnunet_util_string.h"
+#if HAVE_NET_IF_H
+#include <net/if.h>
+#endif
 
 /**
  * @brief Enumerate all network interfaces
--- gnunet.orig/src/util/threads/pthread.c	2012-04-29 00:56:16.000000000 +0000
+++ gnunet/src/util/threads/pthread.c	2012-04-28 02:21:26.000000000 +0000
@@ -218,7 +218,7 @@
 void
 GNUNET_thread_sleep (unsigned long long delay)
 {
-#if LINUX || SOLARIS || SOMEBSD || OSX
+#if LINUX || SOLARIS || SOMEBSD || OSX || GNU
   struct timespec req;
   struct timespec rem;
 #elif WINDOWS
@@ -228,7 +228,7 @@
 #endif
 
   /* actual sleep */
-#if LINUX || SOLARIS || SOMEBSD || OSX
+#if LINUX || SOLARIS || SOMEBSD || OSX || GNU
   req.tv_sec = delay / 1000;    /* ms -> seconds */
   req.tv_nsec = (delay - req.tv_sec * 1000) * 1000 * 1000;      /* ms -> ns */
   rem.tv_sec = 0;
--- gnunet.orig/src/setup/text/conf.c	2012-04-29 00:55:51.000000000 +0000
+++ gnunet/src/setup/text/conf.c	2012-04-28 02:33:30.000000000 +0000
@@ -547,11 +547,19 @@
 #  define TCGETS TIOCGETA
 #  define TCSETS TIOCSETA
 #endif
+#if GNU
+  tcgetattr(0, &oldT);
+#else
   ioctl (0, TCGETS, &oldT);
+#endif
   newT = oldT;
   newT.c_lflag &= ~ECHO;
   newT.c_lflag &= ~ICANON;
+#if GNU
+  tcsetattr(0, TCSANOW, &newT);
+#else
   ioctl (0, TCSETS, &newT);
+#endif
 
   printf (_("You can always press ENTER to keep the current value.\n"));
   printf (_("Use the '%s' key to abort.\n"), "q");
@@ -561,13 +569,21 @@
     {
       if (GNUNET_OK != conf (-1, cfg, ectx, root))
         {
+#if GNU
+          tcsetattr(0, TCSANOW, &oldT);
+#else
           ioctl (0, TCSETS, &oldT);
+#endif
           return 1;
         }
       if ((0 == GNUNET_GC_test_dirty (cfg)) && (0 == ACCESS (filename, R_OK)))
         {
           printf (_("Configuration unchanged, no need to save.\n"));
+#if GNU
+          tcsetattr(0, TCSANOW, &oldT);
+#else
           ioctl (0, TCSETS, &oldT);
+#endif
           return 0;
         }
       printf ("\n");
@@ -591,7 +607,11 @@
         }
       else if (ret == -1)
         {                       /* error */
+#if GNU
+          tcsetattr(0, TCSANOW, &oldT);
+#else
           ioctl (0, TCSETS, &oldT);
+#endif
           return 1;
         }
       else
@@ -599,7 +619,11 @@
           printf (_("Configuration file `%s' written.\n"), filename);
         }
     }
+#if GNU
+  tcsetattr(0, TCSANOW, &oldT);
+#else
   ioctl (0, TCSETS, &oldT);
+#endif
   return 0;
 }
 
--- gnunet.orig/src/applications/fs/ecrs/helper.c	2012-04-29 00:57:08.000000000 +0000
+++ gnunet/src/applications/fs/ecrs/helper.c	2012-04-28 02:57:37.000000000 +0000
@@ -354,7 +354,11 @@
                        path,
                        (path[strlen (path) - 1] !=
                         DIR_SEPARATOR) ? DIR_SEPARATOR_STR : "",
+#if GNU
+                       255);
+#else
                        GNUNET_MIN (255, PATH_MAX - strlen (path) - 32), key);
+#endif
     }
   else
     {
@@ -367,8 +371,13 @@
                        path,
                        (path[strlen (path) - 1] !=
                         DIR_SEPARATOR) ? DIR_SEPARATOR_STR : "",
+#if GNU
+                       255 - strlen(mime),
+#else
                        GNUNET_MIN (255 - strlen (mime),
-                                   PATH_MAX - strlen (path) - 64), key,
+                                   PATH_MAX - strlen (path) - 64),
+#endif
+                       key,
                        (strcasecmp
                         (renameTo + strlen (renameTo) - strlen (mime),
                          mime) != 0) ? mime : "");

--- End Message ---
--- Begin Message ---
Source: gnunet
Source-Version: 0.9.3-3

We believe that the bug you reported is fixed in the latest version of
gnunet, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bertrand Marc <[email protected]> (supplier of updated gnunet package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 05 Aug 2012 20:13:49 +0200
Source: gnunet
Binary: gnunet gnunet-client gnunet-common gnunet-dbg gnunet-server gnunet-dev
Architecture: source all amd64
Version: 0.9.3-3
Distribution: unstable
Urgency: low
Maintainer: Bertrand Marc <[email protected]>
Changed-By: Bertrand Marc <[email protected]>
Description: 
 gnunet     - secure, trust-based peer-to-peer framework (meta)
 gnunet-client - secure, trust-based peer-to-peer framework (client)
 gnunet-common - secure, trust-based peer-to-peer framework (common)
 gnunet-dbg - secure, trust-based peer-to-peer framework (debug)
 gnunet-dev - secure, trust-based peer-to-peer framework (development)
 gnunet-server - secure, trust-based peer-to-peer framework (server)
Closes: 670578 670794 673301 685856
Changes: 
 gnunet (0.9.3-3) unstable; urgency=low
 .
   * debian/control: update Vcs-* to the new repository in collab-maint.
   * Install only the generated binaries on Hurd, thanks to Cyril Roelandt
     (Closes: #670794).
   * Use chmod and chown instead of dpkg-statoverride to set special permissions
     and upgrade properly depending on the previous version (Closes: #673301).
   * Fix "gcc-4.6: [sparc] compiler fails to align stack-allocated
     struct, with array of uint32-values to 32-bit boundary":
     new patch sparc_alignment.patch, taken from upstream:
     https://lists.gnu.org/archive/html/gnunet-svn/2012-07/msg00548.html
     Thanks to Jurij Smakov for the analysis.
     (Closes: #670578)
   * Fix the logfile name in gnunet-server.logrotate (Closes: #685856).
Checksums-Sha1: 
 daf0b1ba31e66efac22b70eea371b0be82841a94 2440 gnunet_0.9.3-3.dsc
 a0e1c6f099dafb6ab8a0a0b0d05cae7e2185f6b3 30279 gnunet_0.9.3-3.debian.tar.gz
 7537dd5e7ba5ce675334ac42670eb0a7d718fefd 914 gnunet_0.9.3-3_all.deb
 3c493fbcaf939320649130496b01f2f032634f2a 47062 gnunet-client_0.9.3-3_amd64.deb
 9635365518b62af307f718c397298271718a4898 349222 gnunet-common_0.9.3-3_amd64.deb
 51e8534da8389246b6b9e4fc86cdad9dc0c875e4 3086438 gnunet-dbg_0.9.3-3_amd64.deb
 4e5efb83dc8474498dfecc8b4a98aba752a11c82 915274 gnunet-server_0.9.3-3_amd64.deb
 a4a5e4394b5e862a1f786527c6ce4c9f533f1ef6 3626428 gnunet-dev_0.9.3-3_amd64.deb
Checksums-Sha256: 
 72277da8e8525bb0861a9a3ea77f979e7687b78631e2c4562f21af6a59433e84 2440 
gnunet_0.9.3-3.dsc
 604413eb5189c68a787b5ca02fc0b83717189abf72de7f002d710a0046cdc920 30279 
gnunet_0.9.3-3.debian.tar.gz
 9788cb38ac54dafb120cbf38f42cf15f8d19b23dce99786dddb186723a690625 914 
gnunet_0.9.3-3_all.deb
 54429db160aff52b63ee5ccfec7c66f504dd3103c59144e641b6c936434b8b38 47062 
gnunet-client_0.9.3-3_amd64.deb
 4376bb239b905a71802a7964b6d669a230f08a6f7cfc624583cc53d4681797ce 349222 
gnunet-common_0.9.3-3_amd64.deb
 ed98b684948fb521bc84e16cdff8086ce90713a7ea1b00519aede01c75bc6dc4 3086438 
gnunet-dbg_0.9.3-3_amd64.deb
 cfd43a1c2db240a425db52194396e92b75d78412e818474d835795be262280ba 915274 
gnunet-server_0.9.3-3_amd64.deb
 175104af33a714347d4f6d2546b19b843e5aa822a85f56feaef1c406871563ee 3626428 
gnunet-dev_0.9.3-3_amd64.deb
Files: 
 a2e5ea5fd0c493ce28ec6726d8632d76 2440 net optional gnunet_0.9.3-3.dsc
 0773424509ad4a5def5803f47c89e443 30279 net optional 
gnunet_0.9.3-3.debian.tar.gz
 f567d9b231a8f1f6d62d1cd7124a5ea4 914 net optional gnunet_0.9.3-3_all.deb
 c21e33002ef1a967894d7d0a92c78335 47062 net optional 
gnunet-client_0.9.3-3_amd64.deb
 c7a66887b8e43fc54e491ead03429b97 349222 net optional 
gnunet-common_0.9.3-3_amd64.deb
 397fab707abcb79324917cd3fa277ed6 3086438 debug extra 
gnunet-dbg_0.9.3-3_amd64.deb
 8f84acc2a192b7aa6cbd47a116c76c97 915274 net optional 
gnunet-server_0.9.3-3_amd64.deb
 9d243de298b0ad013abb6cc44920ac88 3626428 libdevel optional 
gnunet-dev_0.9.3-3_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIVAwUBUFTH3wkauFYGmqocAQj2Zg/8C283/F/XFTiNi7m82IkUmQHFbLEMqWOi
2hjWvildlaSUYmBUwm1fUM7pjReetusJxPkr5aAuXWby1A1+WM0j3DBGruGNXPcl
ItTIewxXke/RU6pgFkJqjsumOZxRqD7KJxSbBrm3XHpxPJvyb4FMKztSx9PuL6MH
X9yPi2lbEn7kRD2/IA0Dn28quKriJxWYcGg0hncFXDv3a2Y39ijhmQvY7+j/xu+z
WZelqPAaL4Xtk186KyBKxkweoJCIEcuGkkHgkzIigYU1AUyyBnNEsM0aOnW01PpJ
AgZZ2w6uKa98zK2IsQXNhbXm3/T4A9Gh+ChrClrv3/e2b4mwWwWTkd0kCMbBu/DM
CZNBYi0zG8saXSqOZu9oBmkgBHmLWlrGllwvUR66vU+p3nN11aWSglunyOzhpP2s
m/v1WgCFJxF46vTU74CZ7Abah/+NOVOircp1/0XNPlDMJvSsHIdjtezH9XvxO+bC
c+C+wUhs0LTpBoKYMdNzgLoOjnG/Q9bKDjg9dXbyU8EM08YaXFUrUe39KfMQy+lt
7KVwP7yHCJmsPrFdYU+nQsCldrFUrFcYfSqjZtC+We5vd4SmJHe7SMa+/IvWFUl4
TM+f53F4MlKAwgyJI+Ibsxfz1mxK0ZavhF8OL1bsVyDB+431LscKk1gECEzqcX1/
a2QiIwRslng=
=vNQJ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to