Gentoo Archives: gentoo-commits

From: "Jory Pratt (anarchy)" <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/xulrunner/1.9.2: 001-xul_gentoo_install_dirs.patch 112-bz466923_att350251_password_prompt_branding_fallback.patch 118-bz467766_att351173-dont-reset-user-prefs-on-upgrade.patch 135-xulrunner-1.9.1.1-nptypes.h.patch 203-mozilla-about-firefox-version.patch 205-mozilla-ps-pdf-simplify-operators.patch 300-xulrunner-fix-jemalloc-vs-aslr.patch 400-libdl.patch 401-libsydney_oss.patch 402-oggzfbsd.patch 500-nsFrame-public.patch 700-sparc-build.patch
Date: Fri, 29 Jan 2010 15:37:32
Message-Id: E1NasuY-0005rQ-06@stork.gentoo.org
1 anarchy 10/01/29 15:37:29
2
3 Added: 001-xul_gentoo_install_dirs.patch
4 112-bz466923_att350251_password_prompt_branding_fallback.patch
5 118-bz467766_att351173-dont-reset-user-prefs-on-upgrade.patch
6 135-xulrunner-1.9.1.1-nptypes.h.patch
7 203-mozilla-about-firefox-version.patch
8 205-mozilla-ps-pdf-simplify-operators.patch
9 300-xulrunner-fix-jemalloc-vs-aslr.patch
10 400-libdl.patch 401-libsydney_oss.patch
11 402-oggzfbsd.patch 500-nsFrame-public.patch
12 700-sparc-build.patch
13 Log:
14 xulrunner-1.9.2 patchset
15
16 Revision Changes Path
17 1.1 src/patchsets/xulrunner/1.9.2/001-xul_gentoo_install_dirs.patch
18
19 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/001-xul_gentoo_install_dirs.patch?rev=1.1&view=markup
20 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/001-xul_gentoo_install_dirs.patch?rev=1.1&content-type=text/plain
21
22 Index: 001-xul_gentoo_install_dirs.patch
23 ===================================================================
24 diff -Naur mozilla-1.9.1.orig/config/autoconf.mk.in mozilla-1.9.1/config/autoconf.mk.in
25 --- mozilla-1.9.1.orig/config/autoconf.mk.in 2009-03-06 03:01:44.000000000 +0530
26 +++ mozilla-1.9.1/config/autoconf.mk.in 2009-04-26 18:59:19.992997721 +0530
27 @@ -57,14 +57,14 @@
28 prefix = @prefix@
29 exec_prefix = @exec_prefix@
30 bindir = @bindir@
31 -includedir = @includedir@/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
32 +includedir = @includedir@/$(MOZ_APP_NAME)-@PV@
33 libdir = @libdir@
34 datadir = @datadir@
35 mandir = @mandir@
36 -idldir = $(datadir)/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
37 +idldir = $(datadir)/idl/$(MOZ_APP_NAME)-@PV@
38
39 -installdir = $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
40 -sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION)
41 +installdir = $(libdir)/$(MOZ_APP_NAME)-@PV@
42 +sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel-@PV@
43
44 DIST = $(DEPTH)/dist
45 LIBXUL_SDK = @LIBXUL_SDK@
46
47
48
49 1.1 src/patchsets/xulrunner/1.9.2/112-bz466923_att350251_password_prompt_branding_fallback.patch
50
51 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/112-bz466923_att350251_password_prompt_branding_fallback.patch?rev=1.1&view=markup
52 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/112-bz466923_att350251_password_prompt_branding_fallback.patch?rev=1.1&content-type=text/plain
53
54 Index: 112-bz466923_att350251_password_prompt_branding_fallback.patch
55 ===================================================================
56 ---
57 toolkit/components/passwordmgr/src/nsLoginManagerPrompter.js | 21 ++++++++---
58 1 file changed, 16 insertions(+), 5 deletions(-)
59
60 Index: mozilla/toolkit/components/passwordmgr/src/nsLoginManagerPrompter.js
61 ===================================================================
62 --- mozilla.orig/toolkit/components/passwordmgr/src/nsLoginManagerPrompter.js
63 +++ mozilla/toolkit/components/passwordmgr/src/nsLoginManagerPrompter.js
64 @@ -649,18 +649,24 @@
65 this._getLocalizedString("notifyBarRememberButtonText");
66 var rememberButtonAccessKey =
67 this._getLocalizedString("notifyBarRememberButtonAccessKey");
68 var notNowButtonText =
69 this._getLocalizedString("notifyBarNotNowButtonText");
70 var notNowButtonAccessKey =
71 this._getLocalizedString("notifyBarNotNowButtonAccessKey");
72
73 - var brandShortName =
74 - this._brandBundle.GetStringFromName("brandShortName");
75 + var brandShortName = "toolkit@×××××××.org";
76 + try {
77 + brandShortName =
78 + this._brandBundle.GetStringFromName("brandShortName");
79 + } catch (e) {
80 + this.log ("no brandShortName available for prompting - most likely incomplete embedding.");
81 + }
82 +
83 var displayHost = this._getShortDisplayHost(aLogin.hostname);
84 var notificationText;
85 if (aLogin.username) {
86 var displayUser = this._sanitizeUsername(aLogin.username);
87 notificationText = this._getLocalizedString(
88 "saveLoginText",
89 [brandShortName, displayUser, displayHost]);
90 } else {
91 @@ -737,20 +743,25 @@
92 *
93 */
94 _showSaveLoginDialog : function (aLogin) {
95 const buttonFlags = Ci.nsIPrompt.BUTTON_POS_1_DEFAULT +
96 (Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_0) +
97 (Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_1) +
98 (Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_2);
99
100 - var brandShortName =
101 - this._brandBundle.GetStringFromName("brandShortName");
102 - var displayHost = this._getShortDisplayHost(aLogin.hostname);
103 + var brandShortName = "toolkit@×××××××.org";
104 + try {
105 + brandShortName =
106 + this._brandBundle.GetStringFromName("brandShortName");
107 + } catch (e) {
108 + this.log ("no brandShortName available for prompting - most likely incomplete embedding.");
109 + }
110
111 + var displayHost = this._getShortDisplayHost(aLogin.hostname);
112 var dialogText;
113 if (aLogin.username) {
114 var displayUser = this._sanitizeUsername(aLogin.username);
115 dialogText = this._getLocalizedString(
116 "saveLoginText",
117 [brandShortName, displayUser, displayHost]);
118 } else {
119 dialogText = this._getLocalizedString(
120
121
122
123 1.1 src/patchsets/xulrunner/1.9.2/118-bz467766_att351173-dont-reset-user-prefs-on-upgrade.patch
124
125 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/118-bz467766_att351173-dont-reset-user-prefs-on-upgrade.patch?rev=1.1&view=markup
126 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/118-bz467766_att351173-dont-reset-user-prefs-on-upgrade.patch?rev=1.1&content-type=text/plain
127
128 Index: 118-bz467766_att351173-dont-reset-user-prefs-on-upgrade.patch
129 ===================================================================
130
131 This bug is due to the fact, applications are restarted before extension
132 defaults are loaded.
133
134 To reproduce, choose any preference and set the values like:
135 system default:
136 pref("prefkey",systemvalue);
137 extension default:
138 pref("prefkey", extensiondefault);
139 user pref:
140 user_pref("prefkey", systemvalue);
141
142 Next, trigger application behaviour similar to upgrade by removing compreg.dat
143 from profile and start the application.
144
145 Result:
146 User sees extensiondefault after upgrade, because the user_pref has been
147 eliminated ... which is definitly not what the user expects because he explicitly
148 had *systemvalue* set before the upgrade.
149
150 Evaluation:
151 The bug happens because restart is performed *before* extension defaults have been
152 loaded and the prefapi.cpp always eliminate user preference if the user preference
153 is equal to the actual default (which happens to be extensiondefault normally - so
154 no reset, but is systemvalue during restart).
155
156 Fix:
157 1. savePrefs should not try to be smart ... this patch removes the heuristic that guesses
158 whether a setting can be eliminated or not; it should be sufficient to only eliminate
159 prefs in hashPrefs.
160
161 2. This patch prevents hashPrefs from eliminating the user pref in case we are in
162 *startup* ... unfortunately no such state info exists, which lets us guess that
163 we are in startup for the previously not dealt case: !set_default &&
164 !pref_ValueChanged(pref->defaultPref, value, type) && !PREF_HAS_USER_VALUE(pref).
165
166 If is the case we explicitly remember that this setting is a user-pref ...
167 even though it might be temporarily equal to the default pref.
168
169 ---
170 modules/libpref/src/prefapi.cpp | 20 ++++++++++++++------
171 1 file changed, 14 insertions(+), 6 deletions(-)
172
173 Index: mozilla/modules/libpref/src/prefapi.cpp
174 ===================================================================
175 --- mozilla.orig/modules/libpref/src/prefapi.cpp
176 +++ mozilla/modules/libpref/src/prefapi.cpp
177 @@ -324,23 +324,20 @@
178 if (!pref)
179 return PL_DHASH_NEXT;
180
181 nsCAutoString prefValue;
182
183 // where we're getting our pref from
184 PrefValue* sourcePref;
185
186 - if (PREF_HAS_USER_VALUE(pref) &&
187 - pref_ValueChanged(pref->defaultPref,
188 - pref->userPref,
189 - (PrefType) PREF_TYPE(pref)))
190 - sourcePref = &pref->userPref;
191 - else if (PREF_IS_LOCKED(pref))
192 + if (PREF_IS_LOCKED(pref))
193 sourcePref = &pref->defaultPref;
194 + else if (PREF_HAS_USER_VALUE(pref))
195 + sourcePref = &pref->userPref;
196 else
197 // do not save default prefs that haven't changed
198 return PL_DHASH_NEXT;
199
200 // strings are in quotes!
201 if (pref->flags & PREF_STRING) {
202 prefValue = '\"';
203 str_escape(sourcePref->stringVal, prefValue);
204 @@ -742,16 +739,27 @@
205 Otherwise, set the user value only if it has changed */
206 if ( !pref_ValueChanged(pref->defaultPref, value, type) )
207 {
208 if (PREF_HAS_USER_VALUE(pref))
209 {
210 pref->flags &= ~PREF_USERSET;
211 if (!PREF_IS_LOCKED(pref))
212 valueChanged = PR_TRUE;
213 + } else {
214 + // this is tricky: we have !set_default ...
215 + // thus we are setting a user pref; however the user
216 + // pref set is same as *current default*; this normally
217 + // means to un-set ... however since we have
218 + // !PREF_HAS_USER_VALUE(pref) this can only be during
219 + // startup
220 + pref_SetValue(&pref->userPref, value, type);
221 + pref->flags |= PREF_USERSET;
222 + if (!PREF_IS_LOCKED(pref))
223 + valueChanged = PR_TRUE;
224 }
225 }
226 else if ( !PREF_HAS_USER_VALUE(pref) ||
227 pref_ValueChanged(pref->userPref, value, type) )
228 {
229 pref_SetValue(&pref->userPref, value, type);
230 pref->flags |= PREF_USERSET;
231 if (!PREF_IS_LOCKED(pref))
232
233
234
235 1.1 src/patchsets/xulrunner/1.9.2/135-xulrunner-1.9.1.1-nptypes.h.patch
236
237 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/135-xulrunner-1.9.1.1-nptypes.h.patch?rev=1.1&view=markup
238 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/135-xulrunner-1.9.1.1-nptypes.h.patch?rev=1.1&content-type=text/plain
239
240 Index: 135-xulrunner-1.9.1.1-nptypes.h.patch
241 ===================================================================
242 --- modules/plugin/base/public/nptypes.h.orig 2009-07-27 09:29:43.345576888 +0430
243 +++ modules/plugin/base/public/nptypes.h 2009-07-27 09:31:09.416973317 +0430
244 @@ -36,6 +36,9 @@
245 *
246 * ***** END LICENSE BLOCK ***** */
247
248 +#ifndef nptypes_h_
249 +#define nptypes_h_
250 +
251 /*
252 * Header file for ensuring that C99 types ([u]int32_t and bool) and
253 * true/false macros are available.
254 @@ -111,3 +114,5 @@
255 #endif
256 #endif
257 #endif
258 +
259 +#endif /* nptypes_h_ */
260
261
262
263
264 1.1 src/patchsets/xulrunner/1.9.2/203-mozilla-about-firefox-version.patch
265
266 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/203-mozilla-about-firefox-version.patch?rev=1.1&view=markup
267 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/203-mozilla-about-firefox-version.patch?rev=1.1&content-type=text/plain
268
269 Index: 203-mozilla-about-firefox-version.patch
270 ===================================================================
271 diff -up mozilla-1.9.1/toolkit/content/Makefile.in.about-firefox-version mozilla-1.9.1/toolkit/content/Makefile.in
272 --- mozilla-1.9.1/toolkit/content/Makefile.in.about-firefox-version 2009-06-29 18:15:23.000000000 +0200
273 +++ mozilla-1.9.1/toolkit/content/Makefile.in 2009-07-07 13:43:54.000000000 +0200
274 @@ -46,7 +46,7 @@ CHROME_DEPS = buildconfig.html
275 include $(DEPTH)/config/autoconf.mk
276
277 DEFINES += \
278 - -DMOZ_APP_VERSION=$(MOZ_APP_VERSION) \
279 + -DMOZ_APP_VERSION=$(FIREFOX_VERSION) \
280 -Dtarget="$(target)" \
281 -Dac_configure_args="$(ac_configure_args)" \
282 -DCC="$(CC)" \
283
284
285
286 1.1 src/patchsets/xulrunner/1.9.2/205-mozilla-ps-pdf-simplify-operators.patch
287
288 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/205-mozilla-ps-pdf-simplify-operators.patch?rev=1.1&view=markup
289 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/205-mozilla-ps-pdf-simplify-operators.patch?rev=1.1&content-type=text/plain
290
291 Index: 205-mozilla-ps-pdf-simplify-operators.patch
292 ===================================================================
293 https://bugzilla.mozilla.org/show_bug.cgi?id=435313
294
295 Index: mozilla/gfx/thebes/public/gfxPDFSurface.h
296 ===================================================================
297 RCS file: /cvsroot/mozilla/gfx/thebes/public/gfxPDFSurface.h,v
298 retrieving revision 1.13
299 diff -d -u -p -r1.13 gfxPDFSurface.h
300 --- mozilla/gfx/thebes/public/gfxPDFSurface.h 19 Mar 2008 20:51:42 -0000 1.13
301 +++ mozilla/gfx/thebes/public/gfxPDFSurface.h 23 May 2008 00:50:31 -0000
302 @@ -63,7 +63,11 @@ public:
303 // this is in points!
304 const gfxSize& GetSize() const { return mSize; }
305
306 - virtual PRInt32 GetDefaultContextFlags() const { return gfxContext::FLAG_DISABLE_SNAPPING; }
307 + virtual PRInt32 GetDefaultContextFlags() const
308 + {
309 + return gfxContext::FLAG_SIMPLIFY_OPERATORS |
310 + gfxContext::FLAG_DISABLE_SNAPPING;
311 + }
312
313 private:
314 nsCOMPtr<nsIOutputStream> mStream;
315 Index: mozilla/gfx/thebes/public/gfxPSSurface.h
316 ===================================================================
317 RCS file: /cvsroot/mozilla/gfx/thebes/public/gfxPSSurface.h,v
318 retrieving revision 1.13
319 diff -d -u -p -r1.13 gfxPSSurface.h
320 --- mozilla/gfx/thebes/public/gfxPSSurface.h 19 Mar 2008 20:51:42 -0000 1.13
321 +++ mozilla/gfx/thebes/public/gfxPSSurface.h 23 May 2008 00:50:31 -0000
322 @@ -63,7 +63,11 @@ public:
323 // this is in points!
324 const gfxSize& GetSize() const { return mSize; }
325
326 - virtual PRInt32 GetDefaultContextFlags() const { return gfxContext::FLAG_DISABLE_SNAPPING; }
327 + virtual PRInt32 GetDefaultContextFlags() const
328 + {
329 + return gfxContext::FLAG_SIMPLIFY_OPERATORS |
330 + gfxContext::FLAG_DISABLE_SNAPPING;
331 + }
332
333 private:
334 nsCOMPtr<nsIOutputStream> mStream;
335
336
337
338 1.1 src/patchsets/xulrunner/1.9.2/300-xulrunner-fix-jemalloc-vs-aslr.patch
339
340 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/300-xulrunner-fix-jemalloc-vs-aslr.patch?rev=1.1&view=markup
341 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/300-xulrunner-fix-jemalloc-vs-aslr.patch?rev=1.1&content-type=text/plain
342
343 Index: 300-xulrunner-fix-jemalloc-vs-aslr.patch
344 ===================================================================
345 diff -urpx 'cscope*' -x '.*.swp' mozilla-1.9.1-orig/memory/jemalloc/jemalloc.c mozilla-1.9.1/memory/jemalloc/jemalloc.c
346 --- mozilla-1.9.1-orig/memory/jemalloc/jemalloc.c 2009-07-30 17:30:25.000000000 +0200
347 +++ mozilla-1.9.1/memory/jemalloc/jemalloc.c 2009-08-10 14:28:59.000000000 +0200
348 @@ -392,7 +392,7 @@ __FBSDID("$FreeBSD: head/lib/libc/stdlib
349 static const bool __isthreaded = true;
350 #endif
351
352 -#if defined(MOZ_MEMORY_SOLARIS) && defined(MAP_ALIGN) && !defined(JEMALLOC_NEVER_USES_MAP_ALIGN)
353 +#if defined(MOZ_MEMORY_SOLARIS) || defined(MOZ_MEMORY_LINUX) || defined(MOZ_MEMORY_BSD)
354 #define JEMALLOC_USES_MAP_ALIGN /* Required on Solaris 10. Might improve performance elsewhere. */
355 #endif
356
357 @@ -2305,20 +2305,31 @@ pages_map_align(size_t size, int pfd, si
358 * We don't use MAP_FIXED here, because it can cause the *replacement*
359 * of existing mappings, and we only want to create new mappings.
360 */
361 -#ifdef MALLOC_PAGEFILE
362 - if (pfd != -1) {
363 - ret = mmap((void *)alignment, size, PROT_READ | PROT_WRITE, MAP_PRIVATE |
364 - MAP_NOSYNC | MAP_ALIGN, pfd, 0);
365 - } else
366 -#endif
367 - {
368 - ret = mmap((void *)alignment, size, PROT_READ | PROT_WRITE, MAP_PRIVATE |
369 - MAP_NOSYNC | MAP_ALIGN | MAP_ANON, -1, 0);
370 - }
371 + ret = mmap(NULL, size + alignment, PROT_READ | PROT_WRITE, MAP_PRIVATE |
372 + MAP_NOSYNC| MAP_ANON, -1, 0);
373 assert(ret != NULL);
374
375 if (ret == MAP_FAILED)
376 ret = NULL;
377 + else {
378 + uintptr_t aligned_ret;
379 + size_t extra_size;
380 +
381 + aligned_ret = (uintptr_t)ret + alignment - 1;
382 + aligned_ret &= ~(alignment - 1);
383 + extra_size = aligned_ret - (uintptr_t)ret;
384 + munmap(ret, extra_size);
385 + munmap(ret + extra_size + size, alignment - extra_size);
386 + ret = (void *)aligned_ret;
387 +#ifdef MALLOC_PAGEFILE
388 + if (pfd != -1) {
389 + ret = mmap(ret, size, PROT_READ | PROT_WRITE, MAP_PRIVATE |
390 + MAP_NOSYNC | MAP_FIXED, pfd, 0);
391 + }
392 + if (ret == MAP_FAILED)
393 + ret = NULL;
394 +#endif
395 + }
396 return (ret);
397 }
398 #endif
399
400
401
402
403 1.1 src/patchsets/xulrunner/1.9.2/400-libdl.patch
404
405 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/400-libdl.patch?rev=1.1&view=markup
406 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/400-libdl.patch?rev=1.1&content-type=text/plain
407
408 Index: 400-libdl.patch
409 ===================================================================
410 Check for dlopen in the libc too.
411 Some systems (eg FreeBSD) provide it there.
412
413 --- mozilla-1.9.2/configure.in.old 2010-01-11 00:15:26 +0100
414 +++ mozilla-1.9.2/configure.in 2010-01-11 00:27:10 +0100
415 @@ -3129,10 +3129,15 @@
416 ;;
417 *)
418 AC_CHECK_LIB(m, atan)
419 - AC_CHECK_LIB(dl, dlopen,
420 - AC_CHECK_HEADER(dlfcn.h,
421 - LIBS="-ldl $LIBS"
422 - AC_DEFINE(HAVE_LIBDL)))
423 + ac_cv_my_have_libdl=no
424 + AC_CHECK_FUNC(dlopen,
425 + ac_cv_my_have_libdl=yes,
426 + AC_CHECK_LIB(dl, dlopen,
427 + ac_cv_my_have_libdl=yes
428 + LIBS="-ldl $LIBS"))
429 + if test "${ac_cv_my_have_libdl}" = "yes"; then
430 + AC_CHECK_HEADER(dlfcn.h, AC_DEFINE(HAVE_LIBDL))
431 + fi
432 ;;
433 esac
434
435
436
437
438 1.1 src/patchsets/xulrunner/1.9.2/401-libsydney_oss.patch
439
440 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/401-libsydney_oss.patch?rev=1.1&view=markup
441 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/401-libsydney_oss.patch?rev=1.1&content-type=text/plain
442
443 Index: 401-libsydney_oss.patch
444 ===================================================================
445 --- mozilla-1.9.2/media/libsydneyaudio/src/Makefile.in.orig 2009-08-11 16:28:21.000000000 +0200
446 +++ mozilla-1.9.2/media/libsydneyaudio/src/Makefile.in 2009-08-11 16:29:08.000000000 +0200
447 @@ -45,6 +45,12 @@
448 LIBRARY_NAME = sydneyaudio
449 FORCE_STATIC_LIB= 1
450
451 +ifeq ($(OS_ARCH),FreeBSD)
452 +CSRCS = \
453 + sydney_audio_oss.c \
454 + $(NULL)
455 +endif
456 +
457 ifeq ($(OS_ARCH),Linux)
458 CSRCS = \
459 sydney_audio_alsa.c \
460
461
462
463 1.1 src/patchsets/xulrunner/1.9.2/402-oggzfbsd.patch
464
465 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/402-oggzfbsd.patch?rev=1.1&view=markup
466 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/402-oggzfbsd.patch?rev=1.1&content-type=text/plain
467
468 Index: 402-oggzfbsd.patch
469 ===================================================================
470 --- mozilla-1.9.2/media/liboggz/include/oggz/oggz_off_t_generated.h.old 2010-01-11 01:52:46 +0100
471 +++ mozilla-1.9.2/media/liboggz/include/oggz/oggz_off_t_generated.h 2010-01-11 01:53:03 +0100
472 @@ -59,7 +59,7 @@
473
474 #include <sys/types.h>
475
476 -#if defined(__APPLE__) || defined(SOLARIS) || defined(OS2)
477 +#if defined(__APPLE__) || defined(SOLARIS) || defined(OS2) || defined(__FreeBSD__)
478 typedef off_t oggz_off_t;
479 #else
480 typedef loff_t oggz_off_t;
481
482
483
484 1.1 src/patchsets/xulrunner/1.9.2/500-nsFrame-public.patch
485
486 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/500-nsFrame-public.patch?rev=1.1&view=markup
487 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/500-nsFrame-public.patch?rev=1.1&content-type=text/plain
488
489 Index: 500-nsFrame-public.patch
490 ===================================================================
491 diff -up xulrunner-1.9.2.1/mozilla-1.9.2/layout/generic/nsFrame.h.old xulrunner-1.9.2.1/mozilla-1.9.2/layout/generic/nsFrame.h
492 --- xulrunner-1.9.2.1/mozilla-1.9.2/layout/generic/nsFrame.h.old 2009-11-11 15:34:51.000000000 +0100
493 +++ xulrunner-1.9.2.1/mozilla-1.9.2/layout/generic/nsFrame.h 2009-11-11 15:33:09.000000000 +0100
494 @@ -157,7 +157,7 @@ private:
495 // Left undefined; nsFrame objects are never allocated from the heap.
496 void* operator new(size_t sz) CPP_THROW_NEW;
497
498 -protected:
499 +public:
500 // Overridden to prevent the global delete from being called, since
501 // the memory came out of an arena instead of the heap.
502 //
503
504
505
506 1.1 src/patchsets/xulrunner/1.9.2/700-sparc-build.patch
507
508 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/700-sparc-build.patch?rev=1.1&view=markup
509 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/xulrunner/1.9.2/700-sparc-build.patch?rev=1.1&content-type=text/plain
510
511 Index: 700-sparc-build.patch
512 ===================================================================
513 diff -ur mozilla-1.9.2.orig/js/src/nanojit/CodeAlloc.cpp mozilla-1.9.2/js/src/nanojit/CodeAlloc.cpp
514 --- mozilla-1.9.2.orig/js/src/nanojit/CodeAlloc.cpp 2010-01-26 19:38:51.000000000 +0000
515 +++ mozilla-1.9.2/js/src/nanojit/CodeAlloc.cpp 2010-01-26 19:41:53.000000000 +0000
516 @@ -247,8 +247,20 @@
517 #endif
518
519 #ifdef AVMPLUS_SPARC
520 +#ifdef __linux__ // bugzilla 502369
521 +void sync_instruction_memory(caddr_t v, u_int len)
522 +{
523 + caddr_t end = v + len;
524 + caddr_t p = v;
525 + while (p < end) {
526 + asm("flush %0" : : "r" (p));
527 + p += 32;
528 + }
529 +}
530 +#else
531 extern "C" void sync_instruction_memory(caddr_t v, u_int len);
532 #endif
533 +#endif
534
535 #if defined NANOJIT_IA32 || defined NANOJIT_X64
536 // intel chips have dcache/icache interlock