1 |
armin76 08/09/24 20:22:38 |
2 |
|
3 |
Added: 000_flex-configure-LANG.patch |
4 |
001-xul_gentoo_install_dirs.patch |
5 |
002-bzXXX_pc_honour_system_nspr_nss.patch |
6 |
055_firefox-2.0_gfbsd-pthreads.patch |
7 |
063_firefox-rpath-3.patch |
8 |
064_firefox-nsplugins-v3.patch |
9 |
068_firefox-nss-gentoo-fix.patch |
10 |
090_unaligned.patch |
11 |
100-system-hunspell-corrections.patch |
12 |
150_passwordmgr-fix.patch 800-bsd_include.patch |
13 |
Log: |
14 |
Add patches for 1.9.0.2 |
15 |
|
16 |
Revision Changes Path |
17 |
1.1 src/patchsets/xulrunner/1.9.0.2/000_flex-configure-LANG.patch |
18 |
|
19 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/000_flex-configure-LANG.patch?rev=1.1&view=markup |
20 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/000_flex-configure-LANG.patch?rev=1.1&content-type=text/plain |
21 |
|
22 |
Index: 000_flex-configure-LANG.patch |
23 |
=================================================================== |
24 |
The LANG vars aren't reset early enough so when sed tries to use [a-zA-Z] in |
25 |
option parsing, it may break. |
26 |
|
27 |
http://bugs.gentoo.org/103483 |
28 |
|
29 |
--- configure |
30 |
+++ configure |
31 |
@@ -54,6 +54,16 @@ |
32 |
infodir='${prefix}/info' |
33 |
mandir='${prefix}/man' |
34 |
|
35 |
+# NLS nuisances. |
36 |
+# Only set these to C if already set. These must not be set unconditionally |
37 |
+# because not all systems understand e.g. LANG=C (notably SCO). |
38 |
+# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
39 |
+# Non-C LC_CTYPE values break the ctype check. |
40 |
+if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
41 |
+if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
42 |
+if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
43 |
+if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
44 |
+ |
45 |
# Initialize some other variables. |
46 |
subdirs= |
47 |
MFLAGS= MAKEFLAGS= |
48 |
@@ -452,16 +463,6 @@ |
49 |
esac |
50 |
done |
51 |
|
52 |
-# NLS nuisances. |
53 |
-# Only set these to C if already set. These must not be set unconditionally |
54 |
-# because not all systems understand e.g. LANG=C (notably SCO). |
55 |
-# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
56 |
-# Non-C LC_CTYPE values break the ctype check. |
57 |
-if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
58 |
-if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
59 |
-if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
60 |
-if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
61 |
- |
62 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
63 |
rm -rf conftest* confdefs.h |
64 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
65 |
|
66 |
|
67 |
|
68 |
1.1 src/patchsets/xulrunner/1.9.0.2/001-xul_gentoo_install_dirs.patch |
69 |
|
70 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/001-xul_gentoo_install_dirs.patch?rev=1.1&view=markup |
71 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/001-xul_gentoo_install_dirs.patch?rev=1.1&content-type=text/plain |
72 |
|
73 |
Index: 001-xul_gentoo_install_dirs.patch |
74 |
=================================================================== |
75 |
--- config/autoconf.mk.in.orig 2007-08-03 22:02:32.000000000 +0200 |
76 |
+++ config/autoconf.mk.in 2007-08-03 22:07:00.000000000 +0200 |
77 |
@@ -58,14 +58,14 @@ |
78 |
prefix = @prefix@ |
79 |
exec_prefix = @exec_prefix@ |
80 |
bindir = @bindir@ |
81 |
-includedir = @includedir@/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION) |
82 |
+includedir = @includedir@/$(MOZ_APP_NAME)-1.9 |
83 |
libdir = @libdir@ |
84 |
datadir = @datadir@ |
85 |
mandir = @mandir@ |
86 |
-idldir = $(datadir)/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION) |
87 |
+idldir = $(includedir)/idl |
88 |
|
89 |
-installdir = $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION) |
90 |
-sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION) |
91 |
+installdir = $(libdir)/$(MOZ_APP_NAME)-1.9 |
92 |
+sdkdir = $(libdir)/$(MOZ_APP_NAME)-1.9 |
93 |
|
94 |
DIST = $(DEPTH)/dist |
95 |
LIBXUL_SDK = @LIBXUL_SDK@ |
96 |
|
97 |
|
98 |
|
99 |
1.1 src/patchsets/xulrunner/1.9.0.2/002-bzXXX_pc_honour_system_nspr_nss.patch |
100 |
|
101 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/002-bzXXX_pc_honour_system_nspr_nss.patch?rev=1.1&view=markup |
102 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/002-bzXXX_pc_honour_system_nspr_nss.patch?rev=1.1&content-type=text/plain |
103 |
|
104 |
Index: 002-bzXXX_pc_honour_system_nspr_nss.patch |
105 |
=================================================================== |
106 |
--- |
107 |
xulrunner/installer/Makefile.in | 17 ++++++++++++++--- |
108 |
xulrunner/installer/libxul-embedding-unstable.pc.in | 2 +- |
109 |
xulrunner/installer/libxul-embedding.pc.in | 2 +- |
110 |
xulrunner/installer/mozilla-nss.pc.in | 6 +++--- |
111 |
4 files changed, 19 insertions(+), 8 deletions(-) |
112 |
|
113 |
Index: mozilla/xulrunner/installer/Makefile.in |
114 |
=================================================================== |
115 |
--- mozilla.orig/xulrunner/installer/Makefile.in |
116 |
+++ mozilla/xulrunner/installer/Makefile.in |
117 |
@@ -90,40 +90,51 @@ |
118 |
mozilla-plugin.pc \ |
119 |
mozilla-gtkmozembed.pc \ |
120 |
mozilla-gtkmozembed-embedding.pc \ |
121 |
$(NULL) |
122 |
|
123 |
ifdef MOZ_NATIVE_NSPR |
124 |
NSPR_NAME=nspr |
125 |
NSPR_VERSION=$(shell $(NSPR_CONFIG) --version) |
126 |
+FULL_NSPR_CFLAGS=$(shell $(NSPR_CONFIG) --cflags) |
127 |
+FULL_NSPR_LIBS=$(shell $(NSPR_CONFIG) --libs) |
128 |
else |
129 |
-pkg_config_files += mozilla-nspr.pc |
130 |
NSPR_NAME=mozilla-nspr |
131 |
FULL_NSPR_CFLAGS=-I\$${includedir}/stable |
132 |
FULL_NSPR_LIBS=$(subst $(prefix),\$${sdkdir},$(shell $(DEPTH)/nsprpub/config/nspr-config --libs)) |
133 |
NSPR_VERSION=$(shell $(DEPTH)/nsprpub/config/nspr-config --version) |
134 |
endif |
135 |
+pkg_config_files += mozilla-nspr.pc |
136 |
|
137 |
$(warning FULL_NSPR_CFLAGS=$(FULL_NSPR_CFLAGS)) |
138 |
|
139 |
-ifndef MOZ_NATIVE_NSS |
140 |
-pkg_config_files += mozilla-nss.pc |
141 |
+ifdef MOZ_NATIVE_NSS |
142 |
+NSPR_VERSION=$(shell $(NSS_CONFIG) --version) |
143 |
+FULL_NSS_CFLAGS=$(shell $(NSS_CONFIG) --cflags) |
144 |
+FULL_NSS_LIBS=$(shell $(NSS_CONFIG) --libs) |
145 |
+else |
146 |
+NSS_VERSION=$(shell $(DEPTH)/nsprpub/config/nss-config --version) |
147 |
+FULL_NSS_CFLAGS=-I\$${includedir}/stable |
148 |
+FULL_NSS_LIBS=$(subst $(prefix),\$${sdkdir},$(shell $(DEPTH)/nsprpub/config/nss-config --libs)) |
149 |
endif |
150 |
+pkg_config_files += mozilla-nss.pc |
151 |
|
152 |
%.pc: $(srcdir)/%.pc.in Makefile.in Makefile $(DEPTH)/config/autoconf.mk |
153 |
cat $< | sed \ |
154 |
-e "s|%prefix%|$(prefix)|" \ |
155 |
-e "s|%includedir%|$(includedir)|" \ |
156 |
-e "s|%idldir%|$(idldir)|" \ |
157 |
-e "s|%sdkdir%|$(sdkdir)|" \ |
158 |
-e "s|%MOZ_APP_NAME%|$(MOZ_APP_NAME)|" \ |
159 |
-e "s|%MOZILLA_VERSION%|$(MOZ_APP_VERSION)|" \ |
160 |
-e "s|%FULL_NSPR_LIBS%|$(FULL_NSPR_LIBS)|" \ |
161 |
-e "s|%FULL_NSPR_CFLAGS%|$(FULL_NSPR_CFLAGS)|" \ |
162 |
+ -e "s|%FULL_NSS_LIBS%|$(FULL_NSS_LIBS)|" \ |
163 |
+ -e "s|%FULL_NSS_CFLAGS%|$(FULL_NSS_CFLAGS)|" \ |
164 |
-e "s|%NSPR_NAME%|$(NSPR_NAME)|" \ |
165 |
-e "s|%NSPR_VERSION%|$(NSPR_VERSION)|" > $@ |
166 |
chmod 644 $@ |
167 |
|
168 |
install:: $(pkg_config_files) |
169 |
@echo pkg_config_file: $(pkg_config_files) |
170 |
$(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(libdir)/pkgconfig |
171 |
|
172 |
Index: mozilla/xulrunner/installer/libxul-embedding-unstable.pc.in |
173 |
=================================================================== |
174 |
--- mozilla.orig/xulrunner/installer/libxul-embedding-unstable.pc.in |
175 |
+++ mozilla/xulrunner/installer/libxul-embedding-unstable.pc.in |
176 |
@@ -3,9 +3,9 @@ |
177 |
includedir=%includedir% |
178 |
idldir=%idldir% |
179 |
includetype=unstable |
180 |
|
181 |
Name: libxul-embedding-unstable |
182 |
Description: Static library for version-independent embedding of the Mozilla runtime (unstable API) |
183 |
Version: %MOZILLA_VERSION% |
184 |
Libs: -L${sdkdir}/lib -lxpcomglue |
185 |
-Cflags: -DXPCOM_GLUE -I${includedir}/${includetype} -fshort-wchar |
186 |
+Cflags: -DXPCOM_GLUE -I${includedir}/${includetype} -fshort-wchar %FULL_NSPR_CFLAGS% |
187 |
Index: mozilla/xulrunner/installer/libxul-embedding.pc.in |
188 |
=================================================================== |
189 |
--- mozilla.orig/xulrunner/installer/libxul-embedding.pc.in |
190 |
+++ mozilla/xulrunner/installer/libxul-embedding.pc.in |
191 |
@@ -7,9 +7,9 @@ |
192 |
# Note: the default pkg-config cflags will only list include directories |
193 |
# that contain stable (frozen or safe for linking) header files. To include |
194 |
# nonfrozen headers, run pkg-config with --define-variable=includetype=unstable |
195 |
|
196 |
Name: libxul-embedding |
197 |
Description: Static library for version-independent embedding of the Mozilla runtime |
198 |
Version: %MOZILLA_VERSION% |
199 |
Libs: -L${sdkdir}/lib -lxpcomglue |
200 |
-Cflags: -DXPCOM_GLUE -I${includedir}/${includetype} -fshort-wchar |
201 |
+Cflags: -DXPCOM_GLUE -I${includedir}/${includetype} -fshort-wchar %FULL_NSPR_CFLAGS% |
202 |
Index: mozilla/xulrunner/installer/mozilla-nss.pc.in |
203 |
=================================================================== |
204 |
--- mozilla.orig/xulrunner/installer/mozilla-nss.pc.in |
205 |
+++ mozilla/xulrunner/installer/mozilla-nss.pc.in |
206 |
@@ -1,10 +1,10 @@ |
207 |
prefix=%prefix% |
208 |
sdkdir=%sdkdir% |
209 |
includedir=%includedir% |
210 |
|
211 |
Name: NSS |
212 |
Description: Mozilla Network Security Services |
213 |
-Version: %MOZILLA_VERSION% |
214 |
+Version: %NSS_VERSION% |
215 |
Requires: %NSPR_NAME% >= %NSPR_VERSION% |
216 |
-Libs: -L${sdkdir}/lib -lnss3 -lnssutil3 -lsmime3 -lssl3 -lsoftokn3 |
217 |
-Cflags: -I${includedir}/stable |
218 |
+Libs: %FULL_NSS_LIBS% |
219 |
+Cflags: %FULL_NSS_CFLAGS% |
220 |
|
221 |
|
222 |
|
223 |
1.1 src/patchsets/xulrunner/1.9.0.2/055_firefox-2.0_gfbsd-pthreads.patch |
224 |
|
225 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/055_firefox-2.0_gfbsd-pthreads.patch?rev=1.1&view=markup |
226 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/055_firefox-2.0_gfbsd-pthreads.patch?rev=1.1&content-type=text/plain |
227 |
|
228 |
Index: 055_firefox-2.0_gfbsd-pthreads.patch |
229 |
=================================================================== |
230 |
# https://bugs.gentoo.org/show_bug.cgi?id=169825 |
231 |
|
232 |
--- mozilla/config/rules.mk.orig Thu Sep 14 14:07:03 2006 |
233 |
+++ mozilla/config/rules.mk Wed Oct 18 11:00:09 2006 |
234 |
@@ -442,9 +442,7 @@ |
235 |
endif |
236 |
|
237 |
ifeq ($(OS_ARCH),FreeBSD) |
238 |
-ifdef IS_COMPONENT |
239 |
-EXTRA_DSO_LDOPTS += -Wl,-Bsymbolic |
240 |
-endif |
241 |
+EXTRA_DSO_LDOPTS += -Wl,-Bsymbolic -lc |
242 |
endif |
243 |
|
244 |
ifeq ($(OS_ARCH),NetBSD) |
245 |
--- mozilla/configure.in.orig 2007-02-06 02:37:37 -0300 |
246 |
+++ mozilla/configure.in 2007-03-07 15:35:41 -0300 |
247 |
@@ -2667,7 +2667,7 @@ |
248 |
*-hpux11.*) |
249 |
;; |
250 |
*) |
251 |
- AC_CHECK_LIB(c_r, gethostbyname_r) |
252 |
+ AC_SEARCH_LIBS([gethostbyname_r], [c_r]) |
253 |
;; |
254 |
esac |
255 |
AC_CHECK_LIB(m, atan) |
256 |
--- mozilla/configure.in.orig 2007-02-06 02:37:37 -0300 |
257 |
+++ mozilla/configure.in 2007-03-07 13:59:53 -0300 |
258 |
@@ -2839,11 +2839,12 @@ |
259 |
*-*-freebsd*) |
260 |
AC_DEFINE(_REENTRANT) |
261 |
AC_DEFINE(_THREAD_SAFE) |
262 |
- dnl -pthread links in -lc_r, so don't specify it explicitly. |
263 |
- if test "$ac_cv_have_dash_pthread" = "yes"; then |
264 |
- _PTHREAD_LDFLAGS="-pthread" |
265 |
+ dnl use the environment PTHREAD_LIBS |
266 |
+ if test -n "$PTHREAD_LIBS"; then |
267 |
+ _PTHREAD_LDFLAGS="$PTHREAD_LIBS" |
268 |
else |
269 |
- _PTHREAD_LDFLAGS="-lc_r" |
270 |
+ _PTHREAD_LDFLAGS="-lpthread" |
271 |
fi |
272 |
+ LDFLAGS="${_PTHREAD_LDFLAGS} ${LDFLAGS}" |
273 |
;; |
274 |
|
275 |
|
276 |
|
277 |
1.1 src/patchsets/xulrunner/1.9.0.2/063_firefox-rpath-3.patch |
278 |
|
279 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/063_firefox-rpath-3.patch?rev=1.1&view=markup |
280 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/063_firefox-rpath-3.patch?rev=1.1&content-type=text/plain |
281 |
|
282 |
Index: 063_firefox-rpath-3.patch |
283 |
=================================================================== |
284 |
# Gentoo http://bugs.gentoo.org/show_bug.cgi?id=100597 |
285 |
|
286 |
--- mozilla/config/rules.mk.orig 2006-07-07 06:13:36.000000000 +0200 |
287 |
+++ mozilla/config/rules.mk 2006-07-19 13:22:04.000000000 +0200 |
288 |
@@ -510,7 +510,12 @@ |
289 |
# |
290 |
ifeq ($(OS_ARCH),Linux) |
291 |
ifdef IS_COMPONENT |
292 |
+DSO_LDOPTS += -Wl,-rpath,'$$ORIGIN:$$ORIGIN/..' |
293 |
+OS_LDFLAGS += -Wl,-rpath,'$$ORIGIN:$$ORIGIN/..' |
294 |
EXTRA_DSO_LDOPTS += -Wl,-Bsymbolic |
295 |
+else |
296 |
+DSO_LDOPTS += -Wl,-rpath,'$$ORIGIN' |
297 |
+OS_LDFLAGS += -Wl,-rpath,'$$ORIGIN' |
298 |
endif |
299 |
endif |
300 |
|
301 |
|
302 |
|
303 |
|
304 |
1.1 src/patchsets/xulrunner/1.9.0.2/064_firefox-nsplugins-v3.patch |
305 |
|
306 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/064_firefox-nsplugins-v3.patch?rev=1.1&view=markup |
307 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/064_firefox-nsplugins-v3.patch?rev=1.1&content-type=text/plain |
308 |
|
309 |
Index: 064_firefox-nsplugins-v3.patch |
310 |
=================================================================== |
311 |
# Gentoo's Add a search path for plugins. by agriffis |
312 |
|
313 |
--- xpcom/io/nsAppFileLocationProvider.cpp.original 2007-02-14 00:59:21.000000000 +0100 |
314 |
+++ xpcom/io/nsAppFileLocationProvider.cpp 2007-02-14 01:17:35.000000000 +0100 |
315 |
@@ -205,6 +205,14 @@ |
316 |
if (NS_SUCCEEDED(rv)) |
317 |
rv = localFile->AppendRelativeNativePath(PLUGINS_DIR_NAME); |
318 |
} |
319 |
+ else if (nsCRT::strcmp(prop, GENTOO_NSPLUGINS_DIR) == 0) |
320 |
+ { |
321 |
+ rv = NS_NewNativeLocalFile(nsDependentCString(GENTOO_NSPLUGINS_DIR), PR_TRUE, getter_AddRefs(localFile)); |
322 |
+ } |
323 |
+ else if (nsCRT::strcmp(prop, GENTOO_NSBROWSER_PLUGINS_DIR) == 0) |
324 |
+ { |
325 |
+ rv = NS_NewNativeLocalFile(nsDependentCString(GENTOO_NSBROWSER_PLUGINS_DIR), PR_TRUE, getter_AddRefs(localFile)); |
326 |
+ } |
327 |
#ifdef XP_MACOSX |
328 |
else if (nsCRT::strcmp(prop, NS_MACOSX_USER_PLUGIN_DIR) == 0) |
329 |
{ |
330 |
@@ -592,7 +600,7 @@ |
331 |
|
332 |
*_retval = new nsAppDirectoryEnumerator(this, keys); |
333 |
#else |
334 |
- static const char* keys[] = { nsnull, NS_USER_PLUGINS_DIR, NS_APP_PLUGINS_DIR, nsnull }; |
335 |
+ static const char* keys[] = { nsnull, GENTOO_NSPLUGINS_DIR, GENTOO_NSBROWSER_PLUGINS_DIR, NS_USER_PLUGINS_DIR, NS_APP_PLUGINS_DIR, nsnull }; |
336 |
if (!keys[0] && !(keys[0] = PR_GetEnv("MOZ_PLUGIN_PATH"))) { |
337 |
static const char nullstr = 0; |
338 |
keys[0] = &nullstr; |
339 |
|
340 |
|
341 |
|
342 |
1.1 src/patchsets/xulrunner/1.9.0.2/068_firefox-nss-gentoo-fix.patch |
343 |
|
344 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/068_firefox-nss-gentoo-fix.patch?rev=1.1&view=markup |
345 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/068_firefox-nss-gentoo-fix.patch?rev=1.1&content-type=text/plain |
346 |
|
347 |
Index: 068_firefox-nss-gentoo-fix.patch |
348 |
=================================================================== |
349 |
--- security/manager/ssl/src/nsNSSComponent.cpp.orig 2007-05-27 21:04:27.000000000 +0200 |
350 |
+++ security/manager/ssl/src/nsNSSComponent.cpp 2007-05-27 21:17:56.000000000 +0200 |
351 |
@@ -130,6 +130,8 @@ |
352 |
|
353 |
#define NS_CRYPTO_HASH_BUFFER_SIZE 4096 |
354 |
|
355 |
+#define GENTOO_NSS_LIBDIR NS_LITERAL_CSTRING ("nss") |
356 |
+ |
357 |
static NS_DEFINE_CID(kNSSComponentCID, NS_NSSCOMPONENT_CID); |
358 |
int nsNSSComponent::mInstanceCount = 0; |
359 |
|
360 |
@@ -708,11 +710,11 @@ |
361 |
return; |
362 |
|
363 |
const char *possible_ckbi_locations[] = { |
364 |
- NS_XPCOM_CURRENT_PROCESS_DIR, |
365 |
- NS_GRE_DIR, |
366 |
- 0 // This special value means: |
367 |
+ 0,// This special value means: |
368 |
// search for ckbi in the directories on the shared |
369 |
// library/DLL search path |
370 |
+ NS_XPCOM_CURRENT_PROCESS_DIR, |
371 |
+ NS_GRE_DIR |
372 |
}; |
373 |
|
374 |
for (size_t il = 0; il < sizeof(possible_ckbi_locations)/sizeof(const char*); ++il) { |
375 |
@@ -721,7 +723,16 @@ |
376 |
|
377 |
if (!possible_ckbi_locations[il]) |
378 |
{ |
379 |
- fullLibraryPath = PR_GetLibraryName(nsnull, "nssckbi"); |
380 |
+ |
381 |
+ directoryService->Get( NS_UNIX_LIB_DIR, |
382 |
+ NS_GET_IID(nsILocalFile), |
383 |
+ getter_AddRefs(mozFile)); |
384 |
+ |
385 |
+ if (!mozFile) { |
386 |
+ continue; |
387 |
+ } |
388 |
+ |
389 |
+ mozFile->AppendNative(GENTOO_NSS_LIBDIR); |
390 |
} |
391 |
else |
392 |
{ |
393 |
@@ -733,11 +744,12 @@ |
394 |
continue; |
395 |
} |
396 |
|
397 |
- nsCAutoString processDir; |
398 |
- mozFile->GetNativePath(processDir); |
399 |
- fullLibraryPath = PR_GetLibraryName(processDir.get(), "nssckbi"); |
400 |
} |
401 |
|
402 |
+ nsCAutoString processDir; |
403 |
+ mozFile->GetNativePath(processDir); |
404 |
+ fullLibraryPath = PR_GetLibraryName(processDir.get(), "nssckbi"); |
405 |
+ |
406 |
if (!fullLibraryPath) { |
407 |
continue; |
408 |
} |
409 |
--- config/config.mk.orig 2007-05-27 23:32:35.000000000 +0200 |
410 |
+++ config/config.mk 2007-05-27 23:34:30.000000000 +0200 |
411 |
@@ -778,6 +778,7 @@ |
412 |
|
413 |
DEFINES += -DOSTYPE=\"$(OS_CONFIG)\" |
414 |
DEFINES += -DOSARCH=$(OS_ARCH) |
415 |
+DEFINES += -DGENTOO_LIB_DIR=\"$(libdir)\" |
416 |
|
417 |
# For profiling |
418 |
ifdef ENABLE_EAZEL_PROFILER |
419 |
--- xpcom/io/SpecialSystemDirectory.cpp.orig 2007-05-27 23:36:29.000000000 +0200 |
420 |
+++ xpcom/io/SpecialSystemDirectory.cpp 2007-05-27 23:37:48.000000000 +0200 |
421 |
@@ -560,7 +560,7 @@ |
422 |
PR_TRUE, |
423 |
aFile); |
424 |
case Unix_LibDirectory: |
425 |
- return NS_NewNativeLocalFile(nsDependentCString("/usr/local/lib/netscape/"), |
426 |
+ return NS_NewNativeLocalFile(nsDependentCString(GENTOO_LIB_DIR), |
427 |
PR_TRUE, |
428 |
aFile); |
429 |
|
430 |
|
431 |
|
432 |
|
433 |
1.1 src/patchsets/xulrunner/1.9.0.2/090_unaligned.patch |
434 |
|
435 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/090_unaligned.patch?rev=1.1&view=markup |
436 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/090_unaligned.patch?rev=1.1&content-type=text/plain |
437 |
|
438 |
Index: 090_unaligned.patch |
439 |
=================================================================== |
440 |
--- xulrunner-1.9~rc1.orig/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp 2008-05-07 21:33:45.000000000 +0100 |
441 |
+++ xulrunner-1.9~rc1/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp 2008-06-02 10:09:06.000000000 +0100 |
442 |
@@ -2020,8 +2020,20 @@ |
443 |
return NS_ERROR_FAILURE; |
444 |
} |
445 |
const nsCSubstring& str = Substring(chunk, start, 4); |
446 |
+#if 0 |
447 |
+ // You can't just cast a char* to an int* and access through it |
448 |
const PRUint32 *p = reinterpret_cast<const PRUint32*>(str.BeginReading()); |
449 |
entry->mAddChunkId = PR_ntohl(*p); |
450 |
+#else |
451 |
+ // the old-school way... |
452 |
+ union { |
453 |
+ PRUint32 i; |
454 |
+ char c[4]; |
455 |
+ } u; |
456 |
+ |
457 |
+ memcpy(u.c, reinterpret_cast<const char *>(str.BeginReading()), 4); |
458 |
+ entry->mAddChunkId = PR_ntohl(u.i); |
459 |
+#endif |
460 |
if (entry->mAddChunkId == 0) { |
461 |
NS_WARNING("Received invalid chunk number."); |
462 |
return NS_ERROR_FAILURE; |
463 |
@@ -2049,8 +2061,20 @@ |
464 |
|
465 |
if (chunkType == CHUNK_SUB) { |
466 |
const nsCSubstring& str = Substring(chunk, start, 4); |
467 |
+#if 0 |
468 |
+ // You can't just cast a char* to an int* and access through it |
469 |
const PRUint32 *p = reinterpret_cast<const PRUint32*>(str.BeginReading()); |
470 |
entry->mAddChunkId = PR_ntohl(*p); |
471 |
+#else |
472 |
+ // the old-school way... |
473 |
+ union { |
474 |
+ PRUint32 i; |
475 |
+ char c[4]; |
476 |
+ } u; |
477 |
+ |
478 |
+ memcpy(u.c, reinterpret_cast<const char *>(str.BeginReading()), 4); |
479 |
+ entry->mAddChunkId = PR_ntohl(u.i); |
480 |
+#endif |
481 |
if (entry->mAddChunkId == 0) { |
482 |
NS_WARNING("Received invalid chunk number."); |
483 |
return NS_ERROR_FAILURE; |
484 |
|
485 |
|
486 |
|
487 |
1.1 src/patchsets/xulrunner/1.9.0.2/100-system-hunspell-corrections.patch |
488 |
|
489 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/100-system-hunspell-corrections.patch?rev=1.1&view=markup |
490 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/100-system-hunspell-corrections.patch?rev=1.1&content-type=text/plain |
491 |
|
492 |
Index: 100-system-hunspell-corrections.patch |
493 |
=================================================================== |
494 |
--- ./extensions/spellcheck/hunspell/src/mozHunspell.cpp.orig 2008-02-15 19:21:21.000000000 +0000 |
495 |
+++ ./extensions/spellcheck/hunspell/src/mozHunspell.cpp 2008-02-15 19:23:20.000000000 +0000 |
496 |
@@ -63,6 +63,9 @@ |
497 |
#include "nsISimpleEnumerator.h" |
498 |
#include "nsIDirectoryEnumerator.h" |
499 |
#include "nsIFile.h" |
500 |
+#ifdef MOZ_NATIVE_HUNSPELL |
501 |
+#include "nsILocalFile.h" |
502 |
+#endif |
503 |
#include "nsDirectoryServiceUtils.h" |
504 |
#include "nsDirectoryServiceDefs.h" |
505 |
#include "mozISpellI18NManager.h" |
506 |
@@ -307,7 +310,16 @@ |
507 |
return; |
508 |
|
509 |
nsCOMPtr<nsIFile> dictDir; |
510 |
- rv = dirSvc->Get(DICTIONARY_SEARCH_DIRECTORY, |
511 |
+ #ifdef MOZ_NATIVE_HUNSPELL |
512 |
+ nsCOMPtr<nsILocalFile> localFile; |
513 |
+ rv = NS_NewNativeLocalFile(nsDependentCString("/usr/share/myspell"),PR_TRUE, getter_AddRefs(localFile)); |
514 |
+ if (localFile && NS_SUCCEEDED(rv)) { |
515 |
+ localFile->QueryInterface(NS_GET_IID(nsIFile), getter_AddRefs(dictDir)); |
516 |
+ LoadDictionariesFromDir(dictDir); |
517 |
+ } |
518 |
+ else { |
519 |
+ #endif |
520 |
+ rv = dirSvc->Get(DICTIONARY_SEARCH_DIRECTORY, |
521 |
NS_GET_IID(nsIFile), getter_AddRefs(dictDir)); |
522 |
if (NS_SUCCEEDED(rv)) { |
523 |
LoadDictionariesFromDir(dictDir); |
524 |
@@ -332,6 +344,9 @@ |
525 |
LoadDictionariesFromDir(appDir); |
526 |
} |
527 |
} |
528 |
+#ifdef MOZ_NATIVE_HUNSPELL |
529 |
+ } |
530 |
+#endif |
531 |
|
532 |
nsCOMPtr<nsISimpleEnumerator> dictDirs; |
533 |
rv = dirSvc->Get(DICTIONARY_SEARCH_DIRECTORY_LIST, |
534 |
--- ./extensions/spellcheck/src/Makefile.in.orig 2008-02-15 19:25:58.000000000 +0000 |
535 |
+++ ./extensions/spellcheck/src/Makefile.in 2008-02-15 19:28:36.000000000 +0000 |
536 |
@@ -63,9 +63,16 @@ |
537 |
txtsvc \ |
538 |
uconv \ |
539 |
unicharutil \ |
540 |
+ xulapp \ |
541 |
$(NULL) |
542 |
|
543 |
-CPPSRCS = \ |
544 |
+ifdef MOZ_NATIVE_HUNSPELL |
545 |
+CPPSRCS += mozHunspell.cpp |
546 |
+ifdef MOZ_XUL_APP |
547 |
+CPPSRCS += mozHunspellDirProvider.cpp |
548 |
+endif |
549 |
+endif |
550 |
+CPPSRCS += \ |
551 |
mozSpellCheckerFactory.cpp \ |
552 |
mozSpellChecker.cpp \ |
553 |
mozPersonalDictionary.cpp \ |
554 |
@@ -80,8 +87,14 @@ |
555 |
SHARED_LIBRARY_LIBS += ../osxspell/src/$(LIB_PREFIX)osxspell_s.$(LIB_SUFFIX) |
556 |
LOCAL_INCLUDES += -I$(srcdir)/../osxspell/src |
557 |
else |
558 |
+ifndef MOZ_NATIVE_HUNSPELL |
559 |
SHARED_LIBRARY_LIBS += ../hunspell/src/$(LIB_PREFIX)hunspell_s.$(LIB_SUFFIX) |
560 |
LOCAL_INCLUDES += -I$(srcdir)/../hunspell/src |
561 |
+else |
562 |
+LOCAL_INCLUDES += $(MOZ_HUNSPELL_CFLAGS) \ |
563 |
+ -DMOZ_NATIVE_HUNSPELL \ |
564 |
+ $(NULL) |
565 |
+endif |
566 |
endif |
567 |
|
568 |
EXTRA_DSO_LDOPTS = \ |
569 |
@@ -96,3 +112,18 @@ |
570 |
LOCAL_INCLUDES += \ |
571 |
-I$(topsrcdir)/xpcom/io \ |
572 |
$(NULL) |
573 |
+ |
574 |
+ifdef MOZ_NATIVE_HUNSPELL |
575 |
+export:: $(srcdir)/../hunspell/src/mozHunspell.cpp |
576 |
+ $(INSTALL) $(srcdir)/../hunspell/src/mozHunspell.* . |
577 |
+GARBAGE += mozHunspell.$(OBJ_SUFFIX) mozHunspell.cpp |
578 |
+clean:: |
579 |
+ rm -f mozHunspell.* |
580 |
+ifdef MOZ_XUL_APP |
581 |
+export:: $(srcdir)/../hunspell/src/mozHunspellDirProvider.cpp |
582 |
+ $(INSTALL) $(srcdir)/../hunspell/src/mozHunspellDirProvider.* . |
583 |
+GARBAGE += mozHunspellDirProvider.$(OBJ_SUFFIX) mozHunspellDirProvider.cpp |
584 |
+clean:: |
585 |
+ rm -f mozHunspellDirProvider.* |
586 |
+endif |
587 |
+endif |
588 |
--- ./extensions/spellcheck/Makefile.in.orig 2008-02-15 19:23:39.000000000 +0000 |
589 |
+++ ./extensions/spellcheck/Makefile.in 2008-02-15 19:24:34.000000000 +0000 |
590 |
@@ -42,13 +42,19 @@ |
591 |
include $(DEPTH)/config/autoconf.mk |
592 |
|
593 |
MODULE = spellchecker |
594 |
-DIRS = idl locales |
595 |
+ifndef MOZ_NATIVE_HUNSPELL |
596 |
+DIRS = idl locales |
597 |
+else |
598 |
+DIRS = idl |
599 |
+endif |
600 |
|
601 |
ifeq (camino,$(MOZ_BUILD_APP)) |
602 |
DIRS += osxspell |
603 |
else |
604 |
+ifndef MOZ_NATIVE_HUNSPELL |
605 |
DIRS += hunspell |
606 |
endif |
607 |
+endif |
608 |
|
609 |
DIRS += src |
610 |
|
611 |
|
612 |
|
613 |
1.1 src/patchsets/xulrunner/1.9.0.2/150_passwordmgr-fix.patch |
614 |
|
615 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/150_passwordmgr-fix.patch?rev=1.1&view=markup |
616 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/150_passwordmgr-fix.patch?rev=1.1&content-type=text/plain |
617 |
|
618 |
Index: 150_passwordmgr-fix.patch |
619 |
=================================================================== |
620 |
# Upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=454993 |
621 |
|
622 |
--- toolkit/components/passwordmgr/src/storage-Legacy.js.orig 2008-09-24 15:04:27.000000000 +0000 |
623 |
+++ toolkit/components/passwordmgr/src/storage-Legacy.js 2008-09-24 15:06:18.000000000 +0000 |
624 |
@@ -850,7 +850,11 @@ |
625 |
|
626 |
do { |
627 |
var hasMore = lineStream.readLine(line); |
628 |
- line.value = this._utfConverter.ConvertToUnicode(line.value); |
629 |
+ try { |
630 |
+ line.value = this._utfConverter.ConvertToUnicode(line.value); |
631 |
+ } catch (e) { |
632 |
+ this.log("Bad UTF8 conversion: " + line.value); |
633 |
+ } |
634 |
|
635 |
switch (parseState) { |
636 |
// Check file header |
637 |
|
638 |
|
639 |
|
640 |
1.1 src/patchsets/xulrunner/1.9.0.2/800-bsd_include.patch |
641 |
|
642 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/800-bsd_include.patch?rev=1.1&view=markup |
643 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.0.2/800-bsd_include.patch?rev=1.1&content-type=text/plain |
644 |
|
645 |
Index: 800-bsd_include.patch |
646 |
=================================================================== |
647 |
--- configure.in.old 2007-12-10 12:29:54 +0000 |
648 |
+++ configure.in 2007-12-10 12:38:19 +0000 |
649 |
@@ -2862,6 +2862,7 @@ |
650 |
;; |
651 |
*) |
652 |
AC_CHECK_LIB(m, atan) |
653 |
+ AC_CHECK_HEADER(dlfcn.h, AC_DEFINE(HAVE_DLCNF_H)) |
654 |
AC_CHECK_LIB(dl, dlopen, |
655 |
AC_CHECK_HEADER(dlfcn.h, |
656 |
LIBS="-ldl $LIBS" |
657 |
--- xpcom/base/nsStackWalk.cpp.old 2007-12-10 12:43:02 +0000 |
658 |
+++ xpcom/base/nsStackWalk.cpp 2007-12-10 12:43:51 +0000 |
659 |
@@ -1111,7 +1111,7 @@ |
660 |
#define __USE_GNU |
661 |
#endif |
662 |
|
663 |
-#if defined(HAVE_LIBDL) || defined(XP_MACOSX) |
664 |
+#if defined(HAVE_DLCNF_H) || defined(XP_MACOSX) |
665 |
#include <dlfcn.h> |
666 |
#endif |