On Fri, 2014-05-23 at 02:11 +0200, Samuel Thibault wrote:
> Hello,
> 
> Bernd Zeimetz, le Tue 11 Feb 2014 16:34:01 +0100, a écrit :
> > On 11.02.2014 15:40, Svante Signell wrote:
> > >Currently gpsd from experimental fails to build on GNU/Hurd due to a
> > >missing definition of IPV6_TCLASS. The attached patch solves this
> > >problem by using that option for setsockopt conditionally.
> > 
> > Thanks for the patch, but I've commited
> > http://git.savannah.gnu.org/cgit/gpsd.git/commit/?id=f2753b6728b1857fa78cc0695cce7dc819db5c51
> > in the upstream repository already, assuming it should work.
> 
> Well, no, it will not work. GNU/Hurd is not following Linux' numbers,
> but BSD's numbers. In this case, IPV6_TCLASS is 61 there, not 67.
> 
> Could you fix the value upstream, and then backport the fix into the
> Debian package?  There are quite a few libgps-dev dependencies which are
> waiting for it and accounting for the dreadful out-of-dateness.

Attached is an updated patch, already applied upstream in
http://git.savannah.gnu.org/cgit/gpsd.git/commit/?id=d6b65b483e38df80e75f0093172f2326264a1961
and the commit linked to above from February.

Index: gpsd-3.10+dev1~a33bfd44/gpsd.c
===================================================================
--- gpsd-3.10+dev1~a33bfd44.orig/gpsd.c
+++ gpsd-3.10+dev1~a33bfd44/gpsd.c
@@ -149,6 +149,13 @@ static struct gps_context_t context;
 static int sd_socket_count = 0;
 #endif
 
+/* work around the unfinished ipv6 implementation on hurd */
+#ifdef __GNU__
+#ifndef IPV6_TCLASS
+#define IPV6_TCLASS 61
+#endif
+#endif
+
 static volatile sig_atomic_t signalled;
 
 static void onsig(int sig)

Reply via email to