Your message dated Fri, 07 Mar 2008 21:17:13 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#419529: fixed in nss 3.12.0~beta2-1
has caused the Debian Bug report #419529,
regarding xulrunner: 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.)


-- 
419529: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=419529
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: xulrunner
Version: 1.8.0.9-1
Severity: important
Tags: patch

Hi,

xulrunner currently FTBFS on hurd-i386. Here are two patches for fixing
it:

- xulrunner-18_kbsd_nspr.dpatch.diff which fixes
  debian/patches/18_kbsd_nspr.dpatch for proper Hurd support
- xulrunner-37_hurd.patch which mostly fixes various PATH_MAX/MAXPATHLEN
  issues

Samuel

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
--- xulrunner-1.8.0.9/debian/patches/18_kbsd_nspr.dpatch.orig   2007-01-27 
12:37:09.000000000 +0100
+++ xulrunner-1.8.0.9/debian/patches/18_kbsd_nspr.dpatch        2007-01-27 
12:35:25.000000000 +0100
@@ -72,7 +72,7 @@
 diff -urN mozilla/nsprpub/pr/include/md/_pth.h 
mozilla/nsprpub/pr/include/md/_pth.h
 --- mozilla/nsprpub/pr/include/md/_pth.h       2005-08-18 19:24:28.000000000 
+0200
 +++ mozilla/nsprpub/pr/include/md/_pth.h       2006-11-20 22:10:27.000000000 
+0100
-@@ -143,10 +143,15 @@
+@@ -143,13 +143,22 @@
        (!memcmp(&(t), &pt_zero_tid, sizeof(pthread_t)))
  #define _PT_PTHREAD_COPY_THR_HANDLE(st, dt)   (dt) = (st)
  #elif defined(IRIX) || defined(OSF1) || defined(AIX) || defined(SOLARIS) \
@@ -83,13 +83,20 @@
        || 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
++/* Hurd pthread_ts are allocated from 0, and you just _won't_ be able to 
create
++ * 4G threads :) */
++#define _PT_PTHREAD_INVALIDATE_THR_HANDLE(t)  (t) = -1
++#define _PT_PTHREAD_THR_HANDLE_IS_INVALID(t)  (t) == -1
++#define _PT_PTHREAD_COPY_THR_HANDLE(st, dt)   (dt) = (st)
++#else
  #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)
-@@ -195,7 +200,8 @@
++#endif
+ #else 
+ #error "invalid pthread ID is not supported for this architecture"
+ #endif
+@@ -201,7 +210,8 @@
  /*
   * These platforms don't have sigtimedwait()
   */
@@ -99,7 +106,7 @@
        || defined(FREEBSD) || defined(NETBSD) || defined(OPENBSD) \
        || defined(BSDI) || defined(VMS) || defined(UNIXWARE) \
        || defined(DARWIN)
-@@ -235,7 +241,8 @@
+@@ -235,7 +245,8 @@
  #define PT_PRIO_MAX            sched_get_priority_max(SCHED_OTHER)
  #endif /* defined(_PR_DCETHREADS) */
  
@@ -109,7 +116,7 @@
  #define PT_PRIO_MIN            sched_get_priority_min(SCHED_OTHER)
  #define PT_PRIO_MAX            sched_get_priority_max(SCHED_OTHER)
  #elif defined(NTO)
-@@ -291,7 +298,8 @@
+@@ -291,7 +302,8 @@
                onemillisec.tv_nsec = 1000000L;                 \
          nanosleep(&onemillisec,NULL);                 \
      PR_END_MACRO
--- nsprpub/pr/src/md/unix/uxrng.c.orig 2007-01-27 13:12:45.000000000 +0000
+++ nsprpub/pr/src/md/unix/uxrng.c      2007-01-27 13:12:59.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>
--- dbm/src/ndbm.c.orig 2007-01-27 13:15:59.000000000 +0000
+++ dbm/src/ndbm.c      2007-01-27 13:16:37.000000000 +0000
@@ -67,7 +67,7 @@
 dbm_open(const char *file, int flags, int mode)
 {
        HASHINFO info;
-       char path[MAXPATHLEN];
+       char path[strlen(file) + strlen(DBM_SUFFIX) + 1];
 
        info.bsize = 4096;
        info.ffactor = 40;
--- xpcom/io/nsDirectoryService.cpp.orig        2007-01-27 13:27:22.000000000 
+0000
+++ xpcom/io/nsDirectoryService.cpp     2007-01-27 13:29:44.000000000 +0000
@@ -233,6 +233,9 @@
 
 #elif defined(XP_UNIX)
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 1024
+#endif
     // In the absence of a good way to get the executable directory let
     // us try this for unix:
     // - if MOZILLA_FIVE_HOME is defined, that is it
--- xpcom/io/nsLocalFileUnix.cpp.orig   2007-01-27 13:32:03.000000000 +0000
+++ xpcom/io/nsLocalFileUnix.cpp        2007-01-27 13:33:38.000000000 +0000
@@ -524,6 +524,9 @@
 NS_IMETHODIMP
 nsLocalFile::Normalize()
 {
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
     char    resolved_path[PATH_MAX] = "";
     char *resolved_path_ptr = nsnull;
 
--- xpcom/obsolete/nsSpecialSystemDirectory.cpp.orig    2007-01-27 
13:40:06.000000000 +0000
+++ xpcom/obsolete/nsSpecialSystemDirectory.cpp 2007-01-27 13:45:21.000000000 
+0000
@@ -266,7 +266,6 @@
     // us try this for unix:
     // - if MOZILLA_FIVE_HOME is defined, that is it
     // - else give the current directory
-    char buf[MAXPATHLEN];
     char *moz5 = PR_GetEnv("MOZILLA_FIVE_HOME");
     if (moz5)
     {
@@ -285,12 +284,19 @@
         }
 #endif /* DEBUG */
 
-        // Fall back to current directory.
-        if (getcwd(buf, sizeof(buf)))
-        {
-            aFileSpec = buf;
-            return;
-        }
+        size_t size = 256;
+        while(1) {
+           char buf[size];
+            // Fall back to current directory.
+            if (getcwd(buf, sizeof(buf)))
+            {
+                aFileSpec = buf;
+                return;
+            }
+           if (errno != ERANGE)
+               break;
+           size *= 2;
+       }
     }
 
 #elif defined(XP_BEOS)
--- modules/libjar/nsZipArchive.cpp.orig        2007-01-27 14:03:57.000000000 
+0000
+++ modules/libjar/nsZipArchive.cpp     2007-01-27 14:04:20.000000000 +0000
@@ -120,11 +120,12 @@
 #  ifndef S_IFLNK
 #    define S_IFLNK  0120000
 #  endif
-#  ifndef PATH_MAX
-#    define PATH_MAX 1024
-#  endif
 #endif  /* XP_UNIX */
 
+#ifndef PATH_MAX
+#  define PATH_MAX 1024
+#endif
+
 #include "zipfile.h"
 #include "zipstruct.h"
 #include "nsZipArchive.h"
--- gfx/src/gtk/nsDeviceContextSpecG.h.orig     2007-01-27 14:15:06.000000000 
+0000
+++ gfx/src/gtk/nsDeviceContextSpecG.h  2007-01-27 14:15:34.000000000 +0000
@@ -55,6 +55,10 @@
 #define NS_PORTRAIT  0
 #define NS_LANDSCAPE 1
 
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
 typedef enum
 {
   pmInvalid = 0,
--- toolkit/mozapps/update/src/updater/progressui_gtk.cpp.orig  2007-01-27 
16:17:03.000000000 +0000
+++ toolkit/mozapps/update/src/updater/progressui_gtk.cpp       2007-01-27 
16:27:03.000000000 +0000
@@ -39,6 +39,7 @@
 #include <stdio.h>
 #include <gtk/gtk.h>
 #include <unistd.h>
+#include <string.h>
 #include "progressui.h"
 #include "readstrings.h"
 #include "errors.h"
@@ -102,7 +103,7 @@
   if (sQuit || sProgressVal > 50.0f)
     return 0;
 
-  char path[PATH_MAX];
+  char path[strlen(sProgramPath)+4+1];
   snprintf(path, sizeof(path), "%s.ini", sProgramPath);
 
   StringTable strings;
--- security/nss/lib/freebl/unix_rand.c.orig    2007-01-27 17:02:35.000000000 
+0000
+++ security/nss/lib/freebl/unix_rand.c 2007-01-27 17:04:49.000000000 +0000
@@ -82,7 +82,8 @@
 
 #if defined(SCO) || defined(UNIXWARE) || defined(BSDI) || defined(FREEBSD) \
     || defined(NETBSD) || defined(NTO) || defined(DARWIN) || defined(OPENBSD) \
-    || defined(__FreeBSD_kernel__) || defined(__NetBSD_kernel__)
+    || defined(__FreeBSD_kernel__) || defined(__NetBSD_kernel__) \
+    || defined(__GNU__)
 #include <sys/times.h>
 
 #define getdtablesize() sysconf(_SC_OPEN_MAX)
--- security/nss/cmd/shlibsign/shlibsign.c.orig 2007-01-28 01:20:32.000000000 
+0000
+++ security/nss/cmd/shlibsign/shlibsign.c      2007-01-28 01:21:01.000000000 
+0000
@@ -163,6 +163,9 @@
 #ifdef USES_LINKS
     int ret;
     struct stat stat_buf;
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 1024
+#endif
     char link_buf[MAXPATHLEN+1];
     char *link_file = NULL;
 #endif

--- End Message ---
--- Begin Message ---
Source: nss
Source-Version: 3.12.0~beta2-1

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

libnss3-1d-dbg_3.12.0~beta2-1_amd64.deb
  to pool/main/n/nss/libnss3-1d-dbg_3.12.0~beta2-1_amd64.deb
libnss3-1d_3.12.0~beta2-1_amd64.deb
  to pool/main/n/nss/libnss3-1d_3.12.0~beta2-1_amd64.deb
libnss3-dev_3.12.0~beta2-1_amd64.deb
  to pool/main/n/nss/libnss3-dev_3.12.0~beta2-1_amd64.deb
libnss3-tools_3.12.0~beta2-1_amd64.deb
  to pool/main/n/nss/libnss3-tools_3.12.0~beta2-1_amd64.deb
nss_3.12.0~beta2-1.diff.gz
  to pool/main/n/nss/nss_3.12.0~beta2-1.diff.gz
nss_3.12.0~beta2-1.dsc
  to pool/main/n/nss/nss_3.12.0~beta2-1.dsc
nss_3.12.0~beta2.orig.tar.gz
  to pool/main/n/nss/nss_3.12.0~beta2.orig.tar.gz



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.
Mike Hommey <[EMAIL PROTECTED]> (supplier of updated nss 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: SHA1

Format: 1.7
Date: Fri, 07 Mar 2008 21:27:54 +0100
Source: nss
Binary: libnss3-1d libnss3-tools libnss3-dev libnss3-1d-dbg
Architecture: source amd64
Version: 3.12.0~beta2-1
Distribution: unstable
Urgency: low
Maintainer: Maintainers of Mozilla-related packages <[EMAIL PROTECTED]>
Changed-By: Mike Hommey <[EMAIL PROTECTED]>
Description: 
 libnss3-1d - Network Security Service libraries
 libnss3-1d-dbg - Development files for the Network Security Service libraries
 libnss3-dev - Development files for the Network Security Service libraries
 libnss3-tools - Network Security Service tools
Closes: 419529 469079
Changes: 
 nss (3.12.0~beta2-1) unstable; urgency=low
 .
   * New upstream snapshot, picked from NSS_3_12_BETA2 cvs tag.
   * debian/patches/10_3.11.7_symbol_fix.dpatch: Removed, as applied upstream.
   * debian/patches/38_kbsd.dpatch: Adapted to upstream changes.
   * debian/patches/81_sonames.dpatch: Add SO_VERSION to libnssutil3.
   * debian/libnss3-dev.links: Add link for libnssutil3.
   * debian/libnss3-1d.symbols: Update symbols file with new symbols. Note that
     SEC_StringToOID disappeared (well, was moved to nssutil), compared to
     version 3.12.0~1.9b1, but it was a new symbol, and isn't used anywhere.
   * debian/nss.pc.in, debian/nss-config.in: Add libnssutil3 support.
   * debian/rules:
     + Bumped shlibs.
     + Don't generate libsoftokn3.so.0d.
   * debian/control:
     + Remove transitional libnss3-0d package.
     + Bumped Standards-Version to 3.7.3.0. No changes needed.
     + Build depend on libnspr4-dev >= 4.7.0 (we *do* need the RTM version, and
       not the preceding betas)
   * debian/libnss3-0d.*: Removed.
   * debian/patches/85_security_load.dpatch: Load files from $ORIGIN/nss before
     those of $ORIGIN. Closes: #469079.
   * debian/patches/38_hurd.dpatch: Fix FTBFS on Hurd because of MAXPATHLEN.
     Closes: #419529.
   * debian/patches/00list: Updated accordingly.
Files: 
 180fb0119c7b456f22a87caefe4fb0cf 821 libs optional nss_3.12.0~beta2-1.dsc
 af3e6f46135c3e32bcb97aba54ea2587 5076293 libs optional 
nss_3.12.0~beta2.orig.tar.gz
 8e22b227eb33ae1686b2b46f179e1d61 30316 libs optional nss_3.12.0~beta2-1.diff.gz
 8a8853be6932beb4de934260d1058720 1101278 libs optional 
libnss3-1d_3.12.0~beta2-1_amd64.deb
 3c8aa7760fa947ac2e4c5d54c4280c61 800710 admin optional 
libnss3-tools_3.12.0~beta2-1_amd64.deb
 5e3f3481f9471e48a6d1f576e3d93d2b 256754 libdevel optional 
libnss3-dev_3.12.0~beta2-1_amd64.deb
 0228a982e70813a44a461f85ed2dafdc 4433946 libdevel extra 
libnss3-1d-dbg_3.12.0~beta2-1_amd64.deb

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

iD8DBQFH0ae73kvaLFT9KlgRAlBxAJ9bpJ7bNTujJOn2y7k8fiWDt0T5rACcCFob
RcKLdnHPsD2VivnceOGTKIM=
=WaR7
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to