1 diff -uraN iceape-1.1.11.orig/debian/patches/00list iceape-1.1.11/debian/patches/00list
2 --- iceape-1.1.11.orig/debian/patches/00list 2008-10-07 11:51:32.000000000 -0400
3 +++ iceape-1.1.11/debian/patches/00list 2008-10-07 11:51:03.989882903 -0400
6 92_mailcap_needsterminal
10 diff -uraN iceape-1.1.11.orig/debian/patches/93_kopensolaris-gnu.dpatch iceape-1.1.11/debian/patches/93_kopensolaris-gnu.dpatch
11 --- iceape-1.1.11.orig/debian/patches/93_kopensolaris-gnu.dpatch 1969-12-31 19:00:00.000000000 -0500
12 +++ iceape-1.1.11/debian/patches/93_kopensolaris-gnu.dpatch 2008-10-07 11:50:48.827913776 -0400
14 +#! /bin/sh /usr/share/dpatch/dpatch-run
15 +## 80_kopensolaris-gnu.dpatch by <root@maltodextrin.csclub.uwaterloo.ca>
17 +## All lines beginning with `## DP:' are a description of the patch.
18 +## DP: No description.
21 +diff -urNad iceape-1.1.11~/configure.in iceape-1.1.11/configure.in
22 +--- iceape-1.1.11~/configure.in 2008-10-07 11:11:29.311045737 -0400
23 ++++ iceape-1.1.11/configure.in 2008-10-07 11:25:15.360988318 -0400
25 + case "${target_os}" in
26 + linux*) OS_ARCH=Linux ;;
27 + kfreebsd*-gnu) OS_ARCH=GNU_kFreeBSD ;;
28 ++ kopensolaris*-gnu) OS_ARCH=GNU_kOpenSolaris ;;
29 + solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;;
30 + mingw*) OS_ARCH=WINNT ;;
31 + wince*) OS_ARCH=WINCE ;;
32 +@@ -1384,7 +1385,7 @@
33 + LIBXUL_LIBS='$(XPCOM_FROZEN_LDOPTS) $(DIST)/bin/XUL -lobjc'
36 +-*-linux*|*-kfreebsd*-gnu)
37 ++*-linux*|*-kfreebsd*-gnu|*-kopensolaris*-gnu)
38 + HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
39 + HOST_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
40 + HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}"
41 +@@ -2347,7 +2348,7 @@
42 + dnl = Flags to strip unused symbols from .so components
43 + dnl ========================================================
45 +- *-linux*|*-kfreebsd*-gnu)
46 ++ *-linux*|*-kfreebsd*-gnu|*-kopensolaris*-gnu)
47 + MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script -Wl,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script'
50 +@@ -2964,7 +2965,7 @@
54 +- *-*-linux*|*-*-kfreebsd*-gnu)
55 ++ *-*-linux*|*-*-kfreebsd*-gnu)|*-kopensolaris*-gnu
56 + AC_DEFINE(_REENTRANT)
59 +diff -urNad iceape-1.1.11~/directory/c-sdk/config/nsinstall.c iceape-1.1.11/directory/c-sdk/config/nsinstall.c
60 +--- iceape-1.1.11~/directory/c-sdk/config/nsinstall.c 2008-10-07 11:11:28.948728042 -0400
61 ++++ iceape-1.1.11/directory/c-sdk/config/nsinstall.c 2008-10-07 11:12:59.122976587 -0400
64 + #endif /* NEXTSTEP */
66 +-#if defined(LINUX) || defined(__GLIBC__) || defined(__GNU__)
67 ++#if defined(LINUX) || defined(__GLIBC__) || defined(__GNU__) || defined(__OpenSolaris_kernel__)
71 +diff -urNad iceape-1.1.11~/directory/c-sdk/configure iceape-1.1.11/directory/c-sdk/configure
72 +--- iceape-1.1.11~/directory/c-sdk/configure 2008-10-07 11:11:28.952124407 -0400
73 ++++ iceape-1.1.11/directory/c-sdk/configure 2008-10-07 11:15:37.982346926 -0400
74 +@@ -2754,6 +2754,7 @@
75 + case "${target_os}" in
76 + linux*) OS_ARCH=Linux ;;
77 + kfreebsd*-gnu) OS_ARCH=GNU_kFreeBSD ;;
78 ++ kopensolaris*-gnu) OS_ARCH=GNU_kOpenSolaris ;;
79 + solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;;
80 + mingw*) OS_ARCH=WINNT ;;
81 + darwin*) OS_ARCH=Darwin ;;
82 +@@ -3767,7 +3768,7 @@
86 +-*-linux*|*-kfreebsd*-gnu)
87 ++*-linux*|*-kfreebsd*-gnu|*-kopensolaris*-gnu)
88 + if test -z "$USE_NSPR_THREADS"; then
91 +@@ -5286,7 +5287,7 @@
95 +- *-linux*|*-kfreebsd*-gnu)
96 ++ *-linux*|*-kfreebsd*-gnu|*-kopensolaris*-gnu)
97 + cat >> confdefs.h <<\EOF
98 + #define _REENTRANT 1
100 +@@ -5409,7 +5410,7 @@
104 +-*-linux*|*-kfreebsd*-gnu)
105 ++*-linux*|*-kfreebsd*-gnu|*-kopensolaris*-gnu)
106 + if test -n "$USE_NSPR_THREADS"; then
107 + cat >> confdefs.h <<\EOF
108 + #define _PR_LOCAL_THREADS_ONLY 1
109 +diff -urNad iceape-1.1.11~/directory/c-sdk/configure.in iceape-1.1.11/directory/c-sdk/configure.in
110 +--- iceape-1.1.11~/directory/c-sdk/configure.in 2008-10-07 11:11:28.950354172 -0400
111 ++++ iceape-1.1.11/directory/c-sdk/configure.in 2008-10-07 11:14:44.889951183 -0400
113 + case "${target_os}" in
114 + linux*) OS_ARCH=Linux ;;
115 + kfreebsd*-gnu) OS_ARCH=GNU_kFreeBSD ;;
116 ++ kopensolaris*-gnu) OS_ARCH=GNU_kOpenSolaris ;;
117 + solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;;
118 + mingw*) OS_ARCH=WINNT ;;
119 + darwin*) OS_ARCH=Darwin ;;
120 +@@ -1265,7 +1266,7 @@
124 +-*-linux*|*-kfreebsd*-gnu)
125 ++*-linux*|*-kfreebsd*-gnu|*-kopensolaris*-gnu)
126 + if test -z "$USE_NSPR_THREADS"; then
129 +@@ -2192,7 +2193,7 @@
133 +- *-linux*|*-kfreebsd*-gnu)
134 ++ *-linux*|*-kfreebsd*-gnu|*-kopensolaris*-gnu)
135 + AC_DEFINE(_REENTRANT)
138 +@@ -2268,7 +2269,7 @@
142 +-*-linux*|*-kfreebsd*-gnu)
143 ++*-linux*|*-kfreebsd*-gnu|*-kopensolaris*-gnu)
144 + if test -n "$USE_NSPR_THREADS"; then
145 + AC_DEFINE(_PR_LOCAL_THREADS_ONLY)
147 +diff -urNad iceape-1.1.11~/directory/c-sdk/ldap/include/portable.h iceape-1.1.11/directory/c-sdk/ldap/include/portable.h
148 +--- iceape-1.1.11~/directory/c-sdk/ldap/include/portable.h 2008-10-07 11:11:28.952860683 -0400
149 ++++ iceape-1.1.11/directory/c-sdk/ldap/include/portable.h 2008-10-07 11:20:38.246380715 -0400
154 +-#if defined( hpux ) || defined( sunos5 ) || defined ( sgi ) || defined( SVR4 )
155 ++#if defined( hpux ) || defined( sunos5 ) || defined ( sgi ) || defined( SVR4 ) || defined(__OpenSolaris_kernel__)
160 + * Is snprintf() part of the standard C runtime library?
162 + #if !defined(HAVE_SNPRINTF)
163 +-#if defined(SOLARIS) || defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) || defined(HPUX)
164 ++#if defined(SOLARIS) || defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) || defined(HPUX) || defined(__OpenSolaris_kernel__)
165 + #define HAVE_SNPRINTF
169 + #define HAVE_GETGRNAM_R
172 +-#if defined(SNI) || defined(LINUX1_2) || defined(__GNU__) || defined(__GLIBC__)
173 ++#if defined(SNI) || defined(LINUX1_2) || defined(__GNU__) || defined(__GLIBC__) || defined(__OpenSolaris_kernel__)
174 + int strcasecmp(const char *, const char *);
176 + int strncasecmp(const char *, const char *, int);
178 + defined(NCR) || defined(OSF1) || defined(NEC) || defined(VMS) || \
179 + ( defined(HPUX10) && !defined(_REENTRANT)) || defined(HPUX11) || \
180 + defined(UnixWare) || defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) || defined(NETBSD) || \
181 +- defined(FREEBSD) || defined(OPENBSD) || \
182 ++ defined(FREEBSD) || defined(OPENBSD) || defined(__OpenSolaris_kernel__) || \
183 + (defined(AIX) && !defined(USE_REENTRANT_LIBC))
184 + #define GETHOSTBYNAME( n, r, b, l, e ) gethostbyname( n )
188 + #if defined(HPUX9) || defined(LINUX1_2) || defined(LINUX2_0) || \
189 + defined(LINUX2_1) || defined(__GNU__) || defined(__GLIBC__) || defined(SUNOS4) || defined(SNI) || \
190 +- defined(SCOOS) || defined(BSDI) || defined(NCR) || \
191 ++ defined(SCOOS) || defined(BSDI) || defined(NCR) || defined(__OpenSolaris_kernel__) || \
192 + defined(NEC) || ( defined(HPUX10) && !defined(_REENTRANT)) || \
193 + (defined(AIX) && !defined(USE_REENTRANT_LIBC))
194 + #define NSLDAPI_CTIME( c, b, l ) ctime( c )
196 + #define NSLDAPI_CTIME( c, b, l ) ctime_r( c, b, l )
198 + #if defined(hpux9) || defined(LINUX1_2) || defined(SUNOS4) || defined(SNI) || \
199 +- defined(SCOOS) || defined(BSDI) || defined(NCR) || defined(VMS) || \
200 ++ defined(SCOOS) || defined(BSDI) || defined(NCR) || defined(VMS) || defined(__OpenSolaris_kernel__) || \
201 + defined(NEC) || defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) || (defined(AIX) && !defined(USE_REENTRANT_LIBC))
202 + #define STRTOK( s1, s2, l ) strtok( s1, s2 )
204 +diff -urNad iceape-1.1.11~/security/nss/lib/ssl/sslmutex.c iceape-1.1.11/security/nss/lib/ssl/sslmutex.c
205 +--- iceape-1.1.11~/security/nss/lib/ssl/sslmutex.c 2008-10-07 11:11:28.955628965 -0400
206 ++++ iceape-1.1.11/security/nss/lib/ssl/sslmutex.c 2008-10-07 11:23:49.256890672 -0400
211 +-#if defined(LINUX) || defined(AIX) || defined(VMS) || defined(BEOS) || defined(BSDI) || defined(NETBSD) || defined(OPENBSD) || defined(__GLIBC__)
212 ++#if defined(LINUX) || defined(AIX) || defined(VMS) || defined(BEOS) || defined(BSDI) || defined(NETBSD) || defined(OPENBSD) || defined(__GLIBC__) || defined(__OpenSolaris_kernel__)
214 + #include <unistd.h>
216 +diff -urNad iceape-1.1.11~/security/nss/lib/ssl/sslmutex.h iceape-1.1.11/security/nss/lib/ssl/sslmutex.h
217 +--- iceape-1.1.11~/security/nss/lib/ssl/sslmutex.h 2008-10-07 11:11:28.955900568 -0400
218 ++++ iceape-1.1.11/security/nss/lib/ssl/sslmutex.h 2008-10-07 11:23:52.801539462 -0400
221 + typedef int sslPID;
223 +-#elif defined(LINUX) || defined(AIX) || defined(VMS) || defined(BEOS) || defined(BSDI) || defined(NETBSD) || defined(OPENBSD) || defined(__GLIBC__)
224 ++#elif defined(LINUX) || defined(AIX) || defined(VMS) || defined(BEOS) || defined(BSDI) || defined(NETBSD) || defined(OPENBSD) || defined(__GLIBC__) || defined(__OpenSolaris_kernel__)
226 + #include <sys/types.h>
227 + #include "prtypes.h"
228 +diff -urNad iceape-1.1.11~/xpcom/reflect/xptcall/src/md/unix/xptc_platforms_unixish_x86.h iceape-1.1.11/xpcom/reflect/xptcall/src/md/unix/xptc_platforms_unixish_x86.h
229 +--- iceape-1.1.11~/xpcom/reflect/xptcall/src/md/unix/xptc_platforms_unixish_x86.h 2008-10-07 11:11:28.956550090 -0400
230 ++++ iceape-1.1.11/xpcom/reflect/xptcall/src/md/unix/xptc_platforms_unixish_x86.h 2008-10-07 11:24:31.432687180 -0400
235 +-#if defined(LINUX) || (defined(__GLIBC__) && defined(__FreeBSD_kernel__))
236 ++#if defined(LINUX) || (defined(__GLIBC__) && defined(__FreeBSD_kernel__)) || defined(__OpenSolaris_kernel__)
238 + #if (__GNUC__ == 2) && (__GNUC_MINOR__ <= 7)
239 + /* Old gcc 2.7.x.x. What does gcc 2.8.x do?? */