~ubuntu-branches/ubuntu/karmic/seamonkey/karmic

« back to all changes in this revision

Viewing changes to debian/patches/38_hppa_xpcom.patch

  • Committer: Bazaar Package Importer
  • Author(s): Fabien Tassin, Fabien Tassin
  • Date: 2007-12-02 19:27:42 UTC
  • Revision ID: james.westby@ubuntu.com-20071202192742-llg1mzf5cg021i7y
Tags: 1.1.6+nobinonly-0ubuntu1
[ Fabien Tassin ]
* Remove unused patches:
  - drop debian/patches/20_visibility.dpatch,
    debian/patches/28_ppc64_build.dpatch,
    debian/patches/38_unsupported_arch_build.dpatch,
    debian/patches/80_calendar_locale.dpatch,
    debian/patches/82_prefs_ubuntu.dpatch
* Migrate from dpatch to quilt
  - update debian/control: build-depends on quilt
  - debian/rules: update patching rules
  - drop debian/patches/80_config.dpatch: done by quilt
  - rename and update debian/patches/00list => debian/patches/series
  - rename and update debian/patches/*.dpatch => debian/patches/*.patch
* Fix unclean distclean leaving dist/ behind
  - update debian/patches/60_distclean.patch
* Migrate to CDBS
  - update debian/rules and debian/control
* Revert the Iceape unbranding to Seamonkey
  - drop debian/patches/80_app_name.patch and update
    debian/patches/series
  - update debian/patches/82_prefs.patch and
    debian/patches/99_configure.patch
  - drop iceape's icons:
    - update debian/rules
    - drop debian/extras/iceape* and debian/extras/Throbber*
    - drop debian/extras/license.txt
    - update wording
    - update debian/copyright  
  - rename packages to seamonkey-*
    - update debian/control
    - rename debian/iceape-*.{dirs,install,links,postinst,postrm,preinst}
      to debian/seamonkey-*.{dirs,install,links,postinst,postrm,preinst}
    - rename debian/iceape-*.{menu,mime,manpages}
      to debian/seamonkey-*.{menu,mime,manpages}
  - rename and update debian/menu_dir/iceape-*.desktop to
    debian/menu_dir/seamonkey-*.desktop
  - rename and update debian/{iceape.cfg,iceaperc,iceape-runner} to
    debian/{seamonkey.cfg,seamonkeyrc,seamonkey-runner}
  - update debian/about_debian.js, debian/base.js and debian/homepagereset.js
* Drop leftovers from calendar
  - drop debian/iceape-calendar.*
  - drop debian/extras/calendar.svg
  - drop debian/menu_dir/iceape-calendar.desktop
  - update debian/control
* Clean-up
  - drop debian/README.source (no longer useful)
  - drop debian/mozconfig (leftover from previous commit)
* Drop debian/patches/81_free_art_improvements.patch (was part of
  the unbranding)
  - update debian/patches/series
* Make seamonkey build at last
  - fix FTBFS with new libnss (since bz399589 landed)
    - add debian/patches/11_bz399589_fix_missing_symbol_with_new_nss.patch
    - update debian/patches/series
  - fix another FTBFS with libnss (caused by bad linking order with libcrmf)
    - add debian/patches/12_fix_ftbfs_with_nss.patch
    - update debian/patches/99_configure.patch
    - update debian/patches/series
  - fix bad syntax for --enable-extensions
    - update debian/rules
  - fix FTBFS with dh_install needing DEB_DH_INSTALL_SOURCEDIR
    - update debian/rules
  - fix install of additionnal searchplugins
    - update debian/rules
  - don't install hicolor icons (we don't have any)
    - update debian/seamonkey-browser.install
* Install libnssckbi.so in seamonkey-browser and drop other libnss links
  - update debian/rules and debian/seamonkey-browser.links
* Fix broken chrome.d files and clean-up install rules
  - update debian/rules
  - update debian/seamonkey-browser.{install,dirs}
  - update debian/seamonkey-chatzilla.install
  - update debian/seamonkey-dom-inspector.install
  - update debian/seamonkey-mailnews.install
* Update bug link and README to point Seamonkey toward Ubuntu 
  - update debian/about_debian.js
  - debian/README.Debian
* Fix FTBFS on amd64 (don't depend on arch indep rules for binary
  packages
  - update debian/rules
  - update debian/seamonkey-browser.install
  - update debian/seamonkey-chatzilla.install
  - update debian/seamonkey-dom-inspector.install
  - update debian/seamonkey-mailnews.install
* Update to upstream release 1.1.6 (from 1.1.4)
  - update debian/control
  - Security fixes provided by 1.1.5:
    MFSA 2007-36, MFSA 2007-35, MFSA 2007-34, MFSA 2007-33, MFSA 2007-32,
    MFSA 2007-31, MFSA 2007-30, MFSA 2007-29 and MFSA 2007-28.
* Update diverged patches:
  - update debian/patches/35_theme_switch.patch
  - debian/patches/38_kbsd.patch
  - debian/patches/68_mips_performance.patch
  - debian/patches/99_configure.patch
* Update Maintainer to Ubuntu Mozilla Team
  - update debian/control
* Conflicts/Replaces iceape
  - update debian/control
* Fix nss links not installed where CDBS would have done it
  - update debian/rules
* Remove bin-only files from upstream tarball using debian/remove.binonly.sh.
  Add a nobinonly target in debian/rules to clean up the current tarball,
  preserve logs in mozilla/REMOVED+nobinonly.txt.
  - rename and update debian/remove.nonfree => debian/remove.binonly.sh
  - update debian/rules
* Fix desktop files to make desktop-file-validate happy
  - update debian/menu_dir/*.desktop
* Disable all desktop files except seamonkey.desktop, using the icon
  from branding (instead of the old style Mozilla one)
  - update debian/menu_dir/*.desktop
  - update debian/rules
* Add dummy packages for migration of iceape and mozilla packages:
  mozilla, mozilla-browser, mozilla-dev, mozilla-mailnews, mozilla-chatzilla,
  mozilla-psm, mozilla-dom-inspector, mozilla-js-debugger, mozilla-calendar,
  iceape, iceape-browser, iceape-gnome-support, iceape-dev, iceape-dbg,
  iceape-mailnews, iceape-chatzilla, iceape-calendar and iceape-dom-inspector
  - update debian/control
* Merge DSP settings from previously installed /etc/iceape/iceaperc or
  /etc/mozilla/mozillarc into /etc/seamonkey/seamonkeyrc
  - update debian/seamonkey-browser.preinst
* Remove leftovers from iceape packages
  - add debian/iceape-browser.postrm
  - add debian/iceape-browser.preinst
* Re-install /etc/seamonkey files previously disabled
  - update debian/seamonkey-browser.install
* Add missing 'upgrade' target to preinst script
  - update debian/iceape-browser.preinst
* Exclude CVS stuff when doing nobinonly tarballs
  - update debian/rules
* Fix a recent FTBFS in hardy where gtk+ is no longer bringing
  some X libs in build-deps
  - add debian/patches/13_bz344818_att264996.patch
  - update debian/patches/99_configure.patch
  - update debian/patches/series

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
---
 
2
 xpcom/reflect/xptcall/src/md/unix/Makefile.in                   |   14 +
 
3
 xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_parisc_linux.s |  128 ++++++++++
 
4
 xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_parisc_linux.s  |   73 +++++
 
5
 3 files changed, 215 insertions(+)
 
6
 
 
7
## 38_hppa_xpcom.patch converted from dpatch file initially by Mike Hommey <glandium@debian.org>
 
8
#
 
9
# patch from Ivar (Contributed by Randolph Chung) to fix Firefox on hppa.
 
10
# bz#287150
 
11
 
 
12
Index: iceape-1.1.4/xpcom/reflect/xptcall/src/md/unix/Makefile.in
 
13
===================================================================
 
14
--- iceape-1.1.4.orig/xpcom/reflect/xptcall/src/md/unix/Makefile.in
 
15
+++ iceape-1.1.4/xpcom/reflect/xptcall/src/md/unix/Makefile.in
 
16
@@ -180,16 +180,30 @@
 
17
 ASFILES                := xptcstubs_asm_ipf32.s xptcinvoke_asm_ipf32.s
 
18
 endif
 
19
 
 
20
 # #18875  Building the CPP's (CXX) optimized causes a crash
 
21
 CXXFLAGS       :=  $(filter-out $(MOZ_OPTIMIZE_FLAGS), $(CXXFLAGS))
 
22
 endif
 
23
 endif
 
24
 
 
25
+#
 
26
+# Linux/HPPA/GCC
 
27
+#
 
28
+ifeq ($(OS_ARCH),Linux)
 
29
+ifneq (,$(filter hppa,$(OS_TEST)))
 
30
+ifeq ($(CC),gcc)
 
31
+CPPSRCS                := xptcinvoke_pa32.cpp xptcstubs_pa32.cpp
 
32
+ASFILES                := xptcstubs_asm_parisc_linux.s xptcinvoke_asm_parisc_linux.s
 
33
+CXXFLAGS       += -O0
 
34
+endif
 
35
+endif
 
36
+endif
 
37
+
 
38
+
 
39
 ######################################################################
 
40
 # M68k
 
41
 ######################################################################
 
42
 #
 
43
 # NetBSD/m68k
 
44
 #
 
45
 ifeq ($(OS_ARCH),NetBSD)
 
46
 ifneq (,$(filter amiga atari hp300 mac68k mvme68k next68k sun3 sun3x x68k,$(OS_TEST)))
 
47
Index: iceape-1.1.4/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_parisc_linux.s
 
48
===================================================================
 
49
--- /dev/null
 
50
+++ iceape-1.1.4/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_parisc_linux.s
 
51
@@ -0,0 +1,128 @@
 
52
+
 
53
+       .LEVEL 1.1
 
54
+       .text
 
55
+       .align 4
 
56
+
 
57
+framesz:
 
58
+       .equ 128
 
59
+
 
60
+; XPTC_InvokeByIndex(nsISuppots* that, PRUint32 methodIndex,
 
61
+;   PRUint32 paramCount, nsXPTCVariant* params);
 
62
+
 
63
+.globl XPTC_InvokeByIndex
 
64
+       .type XPTC_InvokeByIndex, @function
 
65
+
 
66
+
 
67
+XPTC_InvokeByIndex:
 
68
+       .PROC
 
69
+       .CALLINFO FRAME=72, CALLER,SAVE_RP, SAVE_SP, ENTRY_GR=3
 
70
+       .ENTRY
 
71
+
 
72
+ ; frame marker takes 48 bytes,
 
73
+ ; register spill area takes 8 bytes,
 
74
+ ; local stack area takes 72 bytes result in 128 bytes total
 
75
+
 
76
+        STW          %rp,-20(%sp)
 
77
+        STW,MA       %r3,128(%sp)
 
78
+
 
79
+        LDO     -framesz(%r30),%r28
 
80
+        STW     %r28,-4(%r30)       ; save previous sp
 
81
+        STW     %r19,-32(%r30)
 
82
+
 
83
+        STW     %r26,-36-framesz(%r30)  ; save argument registers in
 
84
+        STW     %r25,-40-framesz(%r30)  ; in PREVIOUS frame
 
85
+        STW     %r24,-44-framesz(%r30)  ;
 
86
+        STW     %r23,-48-framesz(%r30)  ;
 
87
+
 
88
+;      B,L     .+8,%r2
 
89
+;      ADDIL   L'invoke_count_bytes-$PIC_pcrel$1+4,%r2,%r1
 
90
+;    ;    LDO     R'invoke_count_bytes-$PIC_pcrel$2+8(%r1),%r1
 
91
+;$PIC_pcrel$1
 
92
+;        LDSID   (%r1),%r31
 
93
+;$PIC_pcrel$2
 
94
+;        MTSP    %r31,%sr0
 
95
+
 
96
+       .CALL   ARGW0=GR,ARGW1=GR,ARGW2=GR ;in=24,25,26;out=28
 
97
+        BL    invoke_count_bytes,%r31
 
98
+        COPY    %r31,%r2
 
99
+
 
100
+        CMPIB,>=        0,%r28, .+76
 
101
+        COPY    %r30,%r3            ; copy stack ptr to saved stack ptr
 
102
+        ADD     %r30,%r28,%r30      ; extend stack frame
 
103
+        LDW     -4(%r3),%r28        ; move frame
 
104
+        STW     %r28,-4(%r30)
 
105
+        LDW     -8(%r3),%r28
 
106
+        STW     %r28,-8(%r30)
 
107
+        LDW     -12(%r3),%r28
 
108
+        STW     %r28,-12(%r30)
 
109
+        LDW     -16(%r3),%r28
 
110
+        STW     %r28,-16(%r30)
 
111
+        LDW     -20(%r3),%r28
 
112
+        STW     %r28,-20(%r30)
 
113
+        LDW     -24(%r3),%r28
 
114
+        STW     %r28,-24(%r30)
 
115
+        LDW     -28(%r3),%r28
 
116
+        STW     %r28,-28(%r30)
 
117
+        LDW     -32(%r3),%r28
 
118
+        STW     %r28,-32(%r30)
 
119
+
 
120
+        LDO     -40(%r30),%r26         ; load copy address
 
121
+        LDW     -44-framesz(%r3),%r25  ; load rest of 2 arguments
 
122
+        LDW     -48-framesz(%r3),%r24  ;
 
123
+
 
124
+        LDW     -32(%r30),%r19 ; shared lib call destroys r19; reload
 
125
+;        B,L     .+8,%r2
 
126
+;        ADDIL   L'invoke_copy_to_stack-$PIC_pcrel$3+4,%r2,%r1
 
127
+;        LDO     R'invoke_copy_to_stack-$PIC_pcrel$4+8(%r1),%r1
 
128
+;$PIC_pcrel$3
 
129
+;        LDSID   (%r1),%r31
 
130
+;$PIC_pcrel$4
 
131
+;        MTSP    %r31,%sr0
 
132
+        .CALL   ARGW0=GR,ARGW1=GR,ARGW2=GR ;in=24,25,26
 
133
+        BL    invoke_copy_to_stack,%r31
 
134
+        COPY    %r31,%r2
 
135
+
 
136
+        LDO     -48(%r30),%r20
 
137
+        EXTRW,U,= %r28,31,1,%r22
 
138
+        FLDD    0(%r20),%fr7  ; load double arg 1
 
139
+        EXTRW,U,= %r28,30,1,%r22
 
140
+        FLDW    8(%r20),%fr5L ; load float arg 1
 
141
+        EXTRW,U,= %r28,29,1,%r22
 
142
+        FLDW    4(%r20),%fr6L ; load float arg 2
 
143
+        EXTRW,U,= %r28,28,1,%r22
 
144
+        FLDW    0(%r20),%fr7L ; load float arg 3
 
145
+
 
146
+        LDW     -36-framesz(%r3),%r26  ; load ptr to 'that'
 
147
+        LDW     -40(%r30),%r25  ; load the rest of dispatch argument registers
 
148
+        LDW     -44(%r30),%r24
 
149
+        LDW     -48(%r30),%r23
 
150
+
 
151
+        LDW     -36-framesz(%r3),%r20  ; load vtable addr
 
152
+        LDW     -40-framesz(%r3),%r28  ; load index
 
153
+        LDW     0(%r20),%r20    ; follow vtable
 
154
+;        LDO     0(%r20),%r20   ; offset vtable by 16 bytes (g++: 8, aCC: 16)
 
155
+        SH2ADDL %r28,%r20,%r28  ; add 4*index to vtable entry
 
156
+        LDW     0(%r28),%r22    ; load vtable entry
 
157
+
 
158
+;        B,L     .+8,%r2
 
159
+;        ADDIL   L'$$dyncall_external-$PIC_pcrel$5+4,%r2,%r1
 
160
+;        LDO     R'$$dyncall_external-$PIC_pcrel$6+8(%r1),%r1
 
161
+;$PIC_pcrel$5
 
162
+;        LDSID   (%r1),%r31
 
163
+;$PIC_pcrel$6
 
164
+;        MTSP    %r31,%sr0
 
165
+        .CALL ARGW0=GR,ARGW1=GR,ARGW2=GR,ARGW3=GR,RTNVAL=GR ;in=22-26;out=28;
 
166
+        BL    $$dyncall,%r31
 
167
+        COPY    %r31,%r2
 
168
+
 
169
+        LDW     -32(%r30),%r19
 
170
+        COPY    %r3,%r30              ; restore saved stack ptr
 
171
+
 
172
+        LDW          -148(%sp),%rp
 
173
+        LDWM       -128(%sp),%r3
 
174
+       BV,N             (%rp)
 
175
+       NOP
 
176
+   .EXIT
 
177
+  .PROCEND  ;in=23,24,25,26;
 
178
+  .SIZE XPTC_InvokeByIndex, .-XPTC_InvokeByIndex
 
179
+
 
180
Index: iceape-1.1.4/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_parisc_linux.s
 
181
===================================================================
 
182
--- /dev/null
 
183
+++ iceape-1.1.4/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_parisc_linux.s
 
184
@@ -0,0 +1,73 @@
 
185
+        .LEVEL  1.1
 
186
+       .TEXT
 
187
+       .ALIGN 4
 
188
+
 
189
+curframesz:
 
190
+       .EQU 128
 
191
+
 
192
+
 
193
+; SharedStub has stack size of 128 bytes
 
194
+
 
195
+lastframesz:
 
196
+       .EQU 64
 
197
+
 
198
+; the StubN C++ function has a small stack size of 64 bytes
 
199
+
 
200
+
 
201
+.globl SharedStub
 
202
+       .type SharedStub, @function
 
203
+
 
204
+SharedStub:
 
205
+        .PROC
 
206
+        .CALLINFO CALLER,FRAME=80,SAVE_RP
 
207
+
 
208
+  .ENTRY
 
209
+        STW     %rp,-20(%sp)
 
210
+        LDO     128(%sp),%sp
 
211
+
 
212
+        STW     %r19,-32(%r30)
 
213
+        STW     %r26,-36-curframesz(%r30) ; save arg0 in previous frame
 
214
+
 
215
+        LDO     -80(%r30),%r28
 
216
+        FSTD,MA %fr5,8(%r28)   ; save darg0
 
217
+        FSTD,MA %fr7,8(%r28)   ; save darg1
 
218
+        FSTW,MA %fr4L,4(%r28)  ; save farg0
 
219
+        FSTW,MA %fr5L,4(%r28)  ; save farg1
 
220
+        FSTW,MA %fr6L,4(%r28)  ; save farg2
 
221
+        FSTW,MA %fr7L,4(%r28)  ; save farg3
 
222
+
 
223
+        ; Former value of register 26 is already properly saved by StubN,
 
224
+        ; but register 25-23 are not because of the arguments mismatch
 
225
+        STW     %r25,-40-curframesz-lastframesz(%r30) ; save r25
 
226
+        STW     %r24,-44-curframesz-lastframesz(%r30) ; save r24
 
227
+        STW     %r23,-48-curframesz-lastframesz(%r30) ; save r23
 
228
+        COPY    %r26,%r25                             ; method index is arg1
 
229
+        LDW     -36-curframesz-lastframesz(%r30),%r26 ; self is arg0
 
230
+        LDO     -40-curframesz-lastframesz(%r30),%r24 ; normal args is arg2
 
231
+        LDO     -80(%r30),%r23                        ; floating args is arg3
 
232
+
 
233
+;       BL      .+8,%r2
 
234
+;       ADDIL   L'PrepareAndDispatch-$PIC_pcrel$0+4,%r2
 
235
+;        LDO     R'PrepareAndDispatch-$PIC_pcrel$1+8(%r1),%r1
 
236
+;$PIC_pcrel$0
 
237
+;        LDSID   (%r1),%r31
 
238
+;$PIC_pcrel$1
 
239
+;        MTSP    %r31,%sr0
 
240
+        .CALL   ARGW0=GR,ARGW1=GR,ARGW2=GR,ARGW3=GR,RTNVAL=GR ;in=23-26;out=28;
 
241
+        BL     PrepareAndDispatch, %r31
 
242
+        COPY    %r31,%r2
 
243
+
 
244
+        LDW     -32(%r30),%r19
 
245
+
 
246
+        LDW     -148(%sp),%rp
 
247
+        LDO     -128(%sp),%sp
 
248
+
 
249
+
 
250
+       BV,N     (%rp)
 
251
+       NOP
 
252
+       NOP
 
253
+
 
254
+       .EXIT
 
255
+        .PROCEND        ;in=26;out=28;
 
256
+
 
257
+       .SIZE SharedStub, .-SharedStub