From 5037e06a81de028796a10c63764be283d52c72d8 Mon Sep 17 00:00:00 2001 From: Christopher Aillon Date: Wed, 28 Sep 2005 17:59:54 +0000 Subject: [PATCH] compile on other non-x86 platforms --- firefox-1.1-visibility.patch | 22 ++++++++++++++++++++++ thunderbird.spec | 12 ++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 firefox-1.1-visibility.patch diff --git a/firefox-1.1-visibility.patch b/firefox-1.1-visibility.patch new file mode 100755 index 0000000..e0665fe --- /dev/null +++ b/firefox-1.1-visibility.patch @@ -0,0 +1,22 @@ +Index: configure +=================================================================== +RCS file: /cvsroot/mozilla/configure,v +retrieving revision 1.1443 +diff -u -p -6 -r1.1443 configure +--- configure 2 Jun 2005 04:00:20 -0000 1.1443 ++++ configure 6 Jun 2005 07:34:06 -0000 +@@ -7303,13 +7303,13 @@ else + int foo_default = 1; + EOF + ac_cv_visibility_pragma=no + if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then + if grep '\.hidden.*foo_hidden' conftest.s >/dev/null; then + if ! grep '\.hidden.*foo_default' conftest.s > /dev/null; then +- ac_cv_visibility_pragma=yes ++ ac_cv_visibility_pragma=no + fi + fi + fi + rm -f conftest.cs + + fi diff --git a/thunderbird.spec b/thunderbird.spec index 0416137..563cf07 100644 --- a/thunderbird.spec +++ b/thunderbird.spec @@ -1,3 +1,6 @@ +# Temporary until this works again +ExcludeArch: ppc64 + %define desktop_file_utils_version 0.9 %define nspr_version 4.6 %define cairo_version 1.0 @@ -29,6 +32,7 @@ Source100: find-external-requires # Build patches Patch2: firefox-1.0-prdtoa.patch +Patch5: firefox-1.1-visibility.patch Patch6: firefox-1.1-nss-system-nspr.patch Patch10: thunderbird-0.7.3-psfonts.patch @@ -78,6 +82,14 @@ Mozilla Thunderbird is a standalone mail and newsgroup client. %setup -q -n mozilla %patch2 -p0 + +# Pragma visibility is broken on most platforms for some reason. +# It works on i386 so leave it alone there. Disable elsewhere. +# See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20297 +%ifarch i386 +%patch5 -p0 +%endif + %patch6 -p1 %patch10 -p1 -b .psfonts %patch11 -p1 -b .gnome-uriloader