Bug#457573: nspr: FTBFS on hurd-i386

Samuel Thibault samuel.thibault at ens-lyon.org
Fri Mar 7 22:51:56 UTC 2008


Hello,

Could you please consider applying the patch ?
(it applies cleanly to version 4.7.0-1)

That is blocking nss, xulrunner, and then the numerous reverse
build-deps...

Samuel
-------------- next part --------------
--- ./mozilla/nsprpub/pr/include/md/_pth.h.orig	2007-12-23 12:24:11.000000000 +0000
+++ ./mozilla/nsprpub/pr/include/md/_pth.h	2007-12-23 12:24:40.000000000 +0000
@@ -148,10 +148,6 @@
 	|| defined(NETBSD) || defined(OPENBSD) || defined(BSDI) \
 	|| defined(VMS) || defined(NTO) || defined(DARWIN) \
 	|| defined(UNIXWARE) || defined(RISCOS)
-#ifdef __GNU__
-/* Hurd pthreads don't have an invalid value for pthread_t. -- rmh */
-#error Using Hurd pthreads
-#endif
 #define _PT_PTHREAD_INVALIDATE_THR_HANDLE(t)  (t) = 0
 #define _PT_PTHREAD_THR_HANDLE_IS_INVALID(t)  (t) == 0
 #define _PT_PTHREAD_COPY_THR_HANDLE(st, dt)   (dt) = (st)
--- mozilla/nsprpub/pr/include/md/_linux.cfg.orig	2007-12-23 12:33:59.000000000 +0000
+++ mozilla/nsprpub/pr/include/md/_linux.cfg	2007-12-23 12:32:43.000000000 +0000
@@ -53,6 +53,8 @@
 
 #ifdef __FreeBSD_kernel__
 #define PR_AF_INET6 28  /* same as AF_INET6 */
+#elif defined(__GNU__)
+#define PR_AF_INET6 26  /* same as AF_INET6 */
 #else
 #define PR_AF_INET6 10  /* same as AF_INET6 */
 #endif
--- mozilla/nsprpub/pr/src/md/unix/uxrng.c.orig	2007-12-23 12:37:54.000000000 +0000
+++ mozilla/nsprpub/pr/src/md/unix/uxrng.c	2007-12-23 12:38:21.000000000 +0000
@@ -139,7 +139,8 @@
 }
 
 #elif (defined(LINUX) || defined(FREEBSD) || defined(__FreeBSD_kernel__) \
-    || defined(NETBSD) || defined(__NetBSD_kernel__) || defined(OPENBSD))
+    || defined(NETBSD) || defined(__NetBSD_kernel__) || defined(OPENBSD) \
+    || defined(__GNU__))
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>


More information about the pkg-mozilla-maintainers mailing list