Merge lp:~rsalveti/firefox/natty-fix-thumb2 into lp:~mozillateam/firefox/firefox.natty

Proposed by Ricardo Salveti
Status: Rejected
Rejected by: Micah Gersten
Proposed branch: lp:~rsalveti/firefox/natty-fix-thumb2
Merge into: lp:~mozillateam/firefox/firefox.natty
Diff against target: 101 lines (+81/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/firefox-webm-thumb2-fix.patch (+73/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~rsalveti/firefox/natty-fix-thumb2
Reviewer Review Type Date Requested Status
Micah Gersten (community) Disapprove
Review via email: mp+65922@code.launchpad.net

Description of the change

Including patch debian/patches/firefox-webm-thumb2-fix.patch:
Description: Enforce alignment for ARM code in Thumb mode in libvpx.
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=666931
Forwarded: Yes, and already upstream.

Patch already applied upstream, at http://hg.mozilla.org/mozilla-central/rev/938c253f031c

To post a comment you must log in.
857. By Micah Gersten

No change rebuild to pick up LP: #800857 on armel and powerpc

858. By Micah Gersten

releasing version 5.0+build1+nobinonly-0ubuntu0.11.04.3

859. By Ricardo Salveti

* debian/patches/firefox-webm-thumb2-fix.patch:
  - Fix to make webm work when build with thumb2 support (LP: #789198)

Revision history for this message
Micah Gersten (micahg) wrote :

Thanks, but Firefox 7 comes out on Tuesday, so we won't be respinning for this alone, I've added the bug to my changelog for Firefox 7.

review: Disapprove

Unmerged revisions

859. By Ricardo Salveti

* debian/patches/firefox-webm-thumb2-fix.patch:
  - Fix to make webm work when build with thumb2 support (LP: #789198)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2011-06-28 22:45:31 +0000
+++ debian/changelog 2011-07-06 23:52:42 +0000
@@ -1,3 +1,10 @@
1firefox (5.0+build1+nobinonly-0ubuntu0.11.04.4) UNRELEASED; urgency=low
2
3 * debian/patches/firefox-webm-thumb2-fix.patch:
4 - Fix to make webm work when build with thumb2 support (LP: #789198)
5
6 -- Ricardo Salveti de Araujo <ricardo.salveti@linaro.org> Fri, 24 Jun 2011 17:43:08 -0300
7
1firefox (5.0+build1+nobinonly-0ubuntu0.11.04.3) natty-security; urgency=low8firefox (5.0+build1+nobinonly-0ubuntu0.11.04.3) natty-security; urgency=low
29
3 * No change rebuild to pick up LP: #800857 on armel and powerpc10 * No change rebuild to pick up LP: #800857 on armel and powerpc
411
=== added file 'debian/patches/firefox-webm-thumb2-fix.patch'
--- debian/patches/firefox-webm-thumb2-fix.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/firefox-webm-thumb2-fix.patch 2011-07-06 23:52:42 +0000
@@ -0,0 +1,73 @@
1
2# HG changeset patch
3# User Timothy B. Terriberry <tterribe@vt.edu>
4# Date 1309201530 25200
5# Node ID 938c253f031cdffd490289d134f704570bc39400
6# Parent 45aa79639b58b88210529f05ce40e0dca747fbba
7Bug 666931 - Enforce alignment for ARM code in Thumb mode in libvpx. r=cpearce
8
9diff --git a/media/libvpx/bug666931.patch b/media/libvpx/bug666931.patch
10new file mode 100644
11--- /dev/null
12+++ b/media/libvpx/bug666931.patch
13@@ -0,0 +1,25 @@
14+diff --git a/media/libvpx/build/make/ads2gas.pl b/media/libvpx/build/make/ads2gas.pl
15+--- a/media/libvpx/build/make/ads2gas.pl
16++++ b/media/libvpx/build/make/ads2gas.pl
17+@@ -74,17 +74,20 @@ while (<STDIN>)
18+
19+ # Convert INCLUDE to .INCLUDE "file"
20+ s/INCLUDE(\s*)(.*)$/.include $1\"$2\"/;
21+
22+ # Code directive (ARM vs Thumb)
23+ s/CODE([0-9][0-9])/.code $1/;
24+
25+ # No AREA required
26+- s/^\s*AREA.*$/.text/;
27++ # But ALIGNs in AREA must be obeyed
28++ s/^\s*AREA.*ALIGN=([0-9])$/.text\n.p2align $1/;
29++ # If no ALIGN, strip the AREA and align to 4 bytes
30++ s/^\s*AREA.*$/.text\n.p2align 2/;
31+
32+ # DCD to .word
33+ # This one is for incoming symbols
34+ s/DCD\s+\|(\w*)\|/.long $1/;
35+
36+ # DCW to .short
37+ s/DCW\s+\|(\w*)\|/.short $1/;
38+ s/DCW(.*)/.short $1/;
39diff --git a/media/libvpx/build/make/ads2gas.pl b/media/libvpx/build/make/ads2gas.pl
40--- a/media/libvpx/build/make/ads2gas.pl
41+++ b/media/libvpx/build/make/ads2gas.pl
42@@ -74,17 +74,20 @@ while (<STDIN>)
43
44 # Convert INCLUDE to .INCLUDE "file"
45 s/INCLUDE(\s*)(.*)$/.include $1\"$2\"/;
46
47 # Code directive (ARM vs Thumb)
48 s/CODE([0-9][0-9])/.code $1/;
49
50 # No AREA required
51- s/^\s*AREA.*$/.text/;
52+ # But ALIGNs in AREA must be obeyed
53+ s/^\s*AREA.*ALIGN=([0-9])$/.text\n.p2align $1/;
54+ # If no ALIGN, strip the AREA and align to 4 bytes
55+ s/^\s*AREA.*$/.text\n.p2align 2/;
56
57 # DCD to .word
58 # This one is for incoming symbols
59 s/DCD\s+\|(\w*)\|/.long $1/;
60
61 # DCW to .short
62 s/DCW\s+\|(\w*)\|/.short $1/;
63 s/DCW(.*)/.short $1/;
64diff --git a/media/libvpx/update.sh b/media/libvpx/update.sh
65--- a/media/libvpx/update.sh
66+++ b/media/libvpx/update.sh
67@@ -323,3 +323,6 @@
68
69 # Patch to fix data race on global function pointers
70 patch -p1 < bug640935.patch
71+
72+# Patch to fix alignment problems with using ARM asm in Thumb mode.
73+patch -p3 < bug666931.patch
074
=== modified file 'debian/patches/series'
--- debian/patches/series 2011-06-10 13:18:29 +0000
+++ debian/patches/series 2011-07-06 23:52:42 +0000
@@ -20,3 +20,4 @@
20fix-selection-drag-autoscroll.patch20fix-selection-drag-autoscroll.patch
21ubuntu-codes-baidu.patch21ubuntu-codes-baidu.patch
22powerpc-build-fix.patch22powerpc-build-fix.patch
23firefox-webm-thumb2-fix.patch

Subscribers

People subscribed via source and target branches