diff options
author | Jory Pratt <anarchy@gentoo.org> | 2005-07-31 02:21:03 +0000 |
---|---|---|
committer | Jory Pratt <anarchy@gentoo.org> | 2005-07-31 02:21:03 +0000 |
commit | 27b9495f5b79eb029e985fb886272792b946cf74 (patch) | |
tree | 55d99e45d04ccf60fda1a887f8cf8cdeabe0c7db /mail-client/mozilla-thunderbird | |
parent | Added ~mips. (diff) | |
download | gentoo-2-27b9495f5b79eb029e985fb886272792b946cf74.tar.gz gentoo-2-27b9495f5b79eb029e985fb886272792b946cf74.tar.bz2 gentoo-2-27b9495f5b79eb029e985fb886272792b946cf74.zip |
updated gcc4 patch
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'mail-client/mozilla-thunderbird')
5 files changed, 313 insertions, 16 deletions
diff --git a/mail-client/mozilla-thunderbird/ChangeLog b/mail-client/mozilla-thunderbird/ChangeLog index 143ede3a7939..d9e1c2cdf452 100644 --- a/mail-client/mozilla-thunderbird/ChangeLog +++ b/mail-client/mozilla-thunderbird/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for mail-client/mozilla-thunderbird # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.79 2005/07/23 13:29:48 gustavoz Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.80 2005/07/31 02:21:03 anarchy Exp $ + +*mozilla-thunderbird-1.0.6-r3 (31 Jul 2005) + + 31 Jul 2005; Jory A. Pratt <anarchy@gentoo.org> + +files/mozilla-thunderbird-1.0.6-gcc4.patch, + +mozilla-thunderbird-1.0.6-r3.ebuild: + Updated gcc4 patch 23 Jul 2005; Gustavo Zacarias <gustavoz@gentoo.org> mozilla-thunderbird-1.0.6-r2.ebuild: diff --git a/mail-client/mozilla-thunderbird/Manifest b/mail-client/mozilla-thunderbird/Manifest index 69d46e383f71..0bb5c84e162d 100644 --- a/mail-client/mozilla-thunderbird/Manifest +++ b/mail-client/mozilla-thunderbird/Manifest @@ -1,23 +1,16 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 9f8a30a5db14358d2dc4415696e127af mozilla-thunderbird-1.0.5-r1.ebuild 4322 -MD5 0de78038591c16287d68ca07e9336d1e mozilla-thunderbird-1.0.6-r2.ebuild 5292 +MD5 9366b3c778497e744beac64f348996eb ChangeLog 11139 MD5 ce23390351fe8020387d93ee29e09a3d metadata.xml 160 +MD5 9f8a30a5db14358d2dc4415696e127af mozilla-thunderbird-1.0.5-r1.ebuild 4322 MD5 4bc9516d4d3a8f835aedb450aa72caf4 mozilla-thunderbird-1.0.5.ebuild 4259 -MD5 79e182c3dddad1ea4416475f3b2fa416 ChangeLog 10935 +MD5 0de78038591c16287d68ca07e9336d1e mozilla-thunderbird-1.0.6-r2.ebuild 5292 +MD5 46a438cb3e391bcad97cbe4aaa33be3f mozilla-thunderbird-1.0.6-r3.ebuild 5291 MD5 360f4688625a7f73f782b59d4b9575bd files/digest-mozilla-thunderbird-1.0.5 156 -MD5 a3ab6ae2213780c0e20c5b9aa8f018e9 files/mozilla-thunderbird-1.0.2-gcc4.patch 1818 -MD5 23d6b685fd5e49a07cc4a1786871bf47 files/mozilla-alpha-xpcom-subs-fix.patch 4953 MD5 360f4688625a7f73f782b59d4b9575bd files/digest-mozilla-thunderbird-1.0.5-r1 156 MD5 7bb4144812a01ca4baebba3acc63b143 files/digest-mozilla-thunderbird-1.0.6-r2 307 +MD5 23d6b685fd5e49a07cc4a1786871bf47 files/mozilla-alpha-xpcom-subs-fix.patch 4953 +MD5 a3ab6ae2213780c0e20c5b9aa8f018e9 files/mozilla-thunderbird-1.0.2-gcc4.patch 1818 MD5 f014f20584305e86670ed50e990745db files/thunderbird-0.7-init.tar.bz2 3345 +MD5 07a5a1ce0146f1badc4e04849a9b1830 files/mozilla-thunderbird-1.0.6-gcc4.patch 6131 +MD5 7bb4144812a01ca4baebba3acc63b143 files/digest-mozilla-thunderbird-1.0.6-r3 307 MD5 1c810870d0c92c730341e491c310e2d4 files/icon/mozillathunderbird.desktop 184 MD5 04115f0e204444eac76a092a63c89027 files/icon/thunderbird-icon.png 6499 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.1-ecc0.1.6 (GNU/Linux) - -iD8DBQFC4kZtKRy60XGEcJIRArKRAJ4tKufvay5rI/9i+GsE5O7sGmnwvQCgp5f9 -FU7KrA7lOlS1PmGKqFirXBw= -=nxei ------END PGP SIGNATURE----- diff --git a/mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-1.0.6-r3 b/mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-1.0.6-r3 new file mode 100644 index 000000000000..13ea2738b58e --- /dev/null +++ b/mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-1.0.6-r3 @@ -0,0 +1,4 @@ +MD5 a0ddcc8bd5ee2c9be724b6963ad27111 thunderbird-1.0.6-source.tar.bz2 33366077 +MD5 1d6205bf7449fcdcae08cc1db524760d mozilla-firefox-1.0-4ft2.patch.bz2 5601 +MD5 7960994910bda4c14a52bc119f9ceefc mozilla-jslibmath-alpha.patch 625 +MD5 9dfe0379cb62cc623c7f5752fb4dd849 mozilla-firefox-1.0.6-nsplugins.patch 1167 diff --git a/mail-client/mozilla-thunderbird/files/mozilla-thunderbird-1.0.6-gcc4.patch b/mail-client/mozilla-thunderbird/files/mozilla-thunderbird-1.0.6-gcc4.patch new file mode 100644 index 000000000000..8c9eea40b00c --- /dev/null +++ b/mail-client/mozilla-thunderbird/files/mozilla-thunderbird-1.0.6-gcc4.patch @@ -0,0 +1,124 @@ +diff -ur mozilla-orig/security/nss/lib/pki1/oiddata.h mozilla/security/nss/lib/pki1/oiddata.h +--- mozilla-orig/security/nss/lib/pki1/oiddata.h 2005-03-13 19:12:25.000000000 -0500 ++++ mozilla/security/nss/lib/pki1/oiddata.h 2005-03-13 19:15:19.000000000 -0500 +@@ -43,12 +43,6 @@ + #include "nsspki1t.h" + #endif /* NSSPKI1T_H */ + +-extern const NSSOID nss_builtin_oids[]; +-extern const PRUint32 nss_builtin_oid_count; +- +-/*extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[];*/ +-/*extern const PRUint32 nss_attribute_type_alias_count;*/ +- + extern const NSSOID *NSS_OID_RFC1274_UID; + extern const NSSOID *NSS_OID_RFC1274_EMAIL; + extern const NSSOID *NSS_OID_RFC2247_DC; +diff -ur mozilla-orig/security/nss/lib/pki1/oidgen.perl mozilla/security/nss/lib/pki1/oidgen.perl +--- mozilla-orig/security/nss/lib/pki1/oidgen.perl 2005-03-13 19:12:25.000000000 -0500 ++++ mozilla/security/nss/lib/pki1/oidgen.perl 2005-03-13 19:15:19.000000000 -0500 +@@ -233,12 +233,6 @@ + #include "nsspki1t.h" + #endif /* NSSPKI1T_H */ + +-extern const NSSOID nss_builtin_oids[]; +-extern const PRUint32 nss_builtin_oid_count; +- +-/*extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[];*/ +-/*extern const PRUint32 nss_attribute_type_alias_count;*/ +- + EOD + ; + +diff -ur mozilla-orig/security/nss/lib/pki1/pki1.h mozilla/security/nss/lib/pki1/pki1.h +--- mozilla-orig/security/nss/lib/pki1/pki1.h 2005-03-13 19:12:25.000000000 -0500 ++++ mozilla/security/nss/lib/pki1/pki1.h 2005-03-13 19:15:19.000000000 -0500 +@@ -55,7 +55,9 @@ + + PR_BEGIN_EXTERN_C + +-/* fgmr 19990505 moved these here from oiddata.h */ ++extern const NSSOID nss_builtin_oids[]; ++extern const PRUint32 nss_builtin_oid_count; ++ + extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[]; + extern const PRUint32 nss_attribute_type_alias_count; + +diff -ur mozilla-orig/xpcom/base/nscore.h mozilla/xpcom/base/nscore.h +--- mozilla-orig/xpcom/base/nscore.h 2005-07-24 05:07:54.627311840 +0000 ++++ mozilla/xpcom/base/nscore.h 2005-07-24 05:13:02.327534296 +0000 +@@ -365,8 +365,9 @@ + * Use these macros to do 64bit safe pointer conversions. + */ + +-#define NS_PTR_TO_INT32(x) ((char *)(x) - (char *)0) +-#define NS_INT32_TO_PTR(x) ((void *)((char *)0 + (x))) ++#define NS_PTR_TO_INT32(x) ((PRInt32) (PRWord) (x)) ++#define NS_PTR_TO_UINT32(x) ((PRUint32) (PRWord) (x)) ++#define NS_INT32_TO_PTR(x) ((void *) (PRWord) (x)) + + /* + * These macros allow you to give a hint to the compiler about branch +diff -ur mozilla-orig/netwerk/protocol/http/src/nsHttpConnectionMgr.cpp mozilla/netwerk/protocol/http/src/nsHttpConnectionMgr.cpp +--- mozilla-orig/netwerk/protocol/http/src/nsHttpConnectionMgr.cpp 2005-07-24 05:07:51.199832896 +0000 ++++ mozilla/netwerk/protocol/http/src/nsHttpConnectionMgr.cpp 2005-07-24 05:13:08.302625944 +0000 +@@ -834,8 +834,8 @@ + void + nsHttpConnectionMgr::OnMsgUpdateParam(nsresult status, void *param) + { +- PRUint16 name = (PRUint32(param) & 0xFFFF0000) >> 16; +- PRUint16 value = PRUint32(param) & 0x0000FFFF; ++ PRUint16 name = (NS_PTR_TO_UINT32(param) & 0xFFFF0000) >> 16; ++ PRUint16 value = NS_PTR_TO_UINT32(param) & 0x0000FFFF; + + switch (name) { + case MAX_CONNECTIONS: +diff -ur mozilla-orig/widget/src/gtk2/nsDragService.cpp mozilla/widget/src/gtk2/nsDragService.cpp +--- mozilla-orig/widget/src/gtk2/nsDragService.cpp 2005-07-24 05:08:57.666728392 +0000 ++++ mozilla/widget/src/gtk2/nsDragService.cpp 2005-07-24 05:13:33.910732920 +0000 +@@ -838,7 +838,7 @@ + (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry)); + listTarget->target = g_strdup(gMimeListType); + listTarget->flags = 0; +- listTarget->info = (guint)listAtom; ++ listTarget->info = GPOINTER_TO_UINT(listAtom); + PR_LOG(sDragLm, PR_LOG_DEBUG, + ("automatically adding target %s with id %ld\n", + listTarget->target, listAtom)); +@@ -877,7 +877,7 @@ + (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry)); + listTarget->target = g_strdup(gTextUriListType); + listTarget->flags = 0; +- listTarget->info = (guint)listAtom; ++ listTarget->info = GPOINTER_TO_UINT(listAtom); + PR_LOG(sDragLm, PR_LOG_DEBUG, + ("automatically adding target %s with \ + id %ld\n", listTarget->target, listAtom)); +@@ -914,7 +914,7 @@ + (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry)); + target->target = g_strdup(flavorStr); + target->flags = 0; +- target->info = (guint)atom; ++ target->info = GPOINTER_TO_UINT(atom); + PR_LOG(sDragLm, PR_LOG_DEBUG, + ("adding target %s with id %ld\n", + target->target, atom)); +@@ -931,7 +931,7 @@ + (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry)); + plainTarget->target = g_strdup(kTextMime); + plainTarget->flags = 0; +- plainTarget->info = (guint)plainAtom; ++ plainTarget->info = GPOINTER_TO_UINT(plainAtom); + PR_LOG(sDragLm, PR_LOG_DEBUG, + ("automatically adding target %s with \ + id %ld\n", plainTarget->target, plainAtom)); +@@ -948,7 +948,7 @@ + (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry)); + urlTarget->target = g_strdup(gMozUrlType); + urlTarget->flags = 0; +- urlTarget->info = (guint)urlAtom; ++ urlTarget->info = GPOINTER_TO_UINT(urlAtom); + PR_LOG(sDragLm, PR_LOG_DEBUG, + ("automatically adding target %s with \ + id %ld\n", urlTarget->target, urlAtom)); + diff --git a/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.0.6-r3.ebuild b/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.0.6-r3.ebuild new file mode 100644 index 000000000000..a4e49e639f4d --- /dev/null +++ b/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.0.6-r3.ebuild @@ -0,0 +1,169 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.0.6-r3.ebuild,v 1.1 2005/07/31 02:21:03 anarchy Exp $ + +unset ALLOWED_FLAGS # stupid extra-functions.sh ... bug 49179 +inherit flag-o-matic toolchain-funcs eutils mozconfig mozilla-launcher makeedit multilib + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="http://www.mozilla.org/projects/thunderbird/" +SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/${PV}/source/thunderbird-${PV}-source.tar.bz2 + mirror://gentoo/mozilla-firefox-1.0-4ft2.patch.bz2 + mirror://gentoo/mozilla-jslibmath-alpha.patch + mirror://gentoo/mozilla-firefox-1.0.6-nsplugins.patch + http://dev.gentoo.org/~agriffis/dist/mozilla-firefox-1.0.6-nsplugins.patch" + +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" +SLOT="0" +LICENSE="MPL-1.1 NPL-1.1" +IUSE="mozcalendar ldap" + +RDEPEND=">=www-client/mozilla-launcher-1.39" + +S=${WORKDIR}/mozilla + +# Needed by src_compile() and src_install(). +# Would do in pkg_setup but that loses the export attribute, they +# become pure shell variables. +export BUILD_OFFICIAL=1 +export MOZILLA_OFFICIAL=1 +export MOZ_THUNDERBIRD=1 + +src_unpack() { + declare x + + for x in ${A}; do + [[ $x == *.tar.* ]] || continue + unpack $x || die "unpack failed" + done + cd ${S} || die "cd failed" + + #################################### + # + # architecture patches + # + #################################### + + if [[ $(gcc-major-version) -eq 3 ]]; then + # ABI Patch for alpha/xpcom for gcc-3.x + if [[ ${ARCH} == alpha ]]; then + epatch ${FILESDIR}/mozilla-alpha-xpcom-subs-fix.patch + fi + fi + + # patch to fix math operations on alpha, makes maps.google.com work! + epatch ${DISTDIR}/mozilla-jslibmath-alpha.patch + + #################################### + # + # general compilation and run-time fixes + # + #################################### + + # GCC4 compile fix, bug #87800 + epatch ${FILESDIR}/${P}-gcc4.patch + + # patch out ft caching code since the API changed between releases of + # freetype; this enables freetype-2.1.8+ compat. + # https://bugzilla.mozilla.org/show_bug.cgi?id=234035#c65 + epatch ${DISTDIR}/mozilla-firefox-1.0-4ft2.patch.bz2 + + # look in /usr/lib/nsplugins for plugins, in addition to the usual places + epatch ${DISTDIR}/mozilla-firefox-1.0.6-nsplugins.patch +} + +src_compile() { + declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN} + + #################################### + # + # mozconfig, CFLAGS and CXXFLAGS setup + # + #################################### + + mozconfig_init + + # tb-specific settings + mozconfig_use_enable ldap + mozconfig_use_enable ldap ldap-experimental + mozconfig_use_enable mozcalendar calendar + mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} + mozconfig_annotate '' --with-user-appdir=.thunderbird + + # Finalize and report settings + mozconfig_final + + # hardened GCC uses -fstack-protector-all by default, which breaks us + has_hardened && append-flags -fno-stack-protector-all + replace-flags -fstack-protector-all -fstack-protector + + #################################### + # + # Configure and build + # + #################################### + + LD="$(tc-getLD)" CC="$(tc-getCC)" CXX="$(tc-getCXX)" \ + econf || die + + # This removes extraneous CFLAGS from the Makefiles to reduce RAM + # requirements while compiling + edit_makefiles + + emake || die +} + +src_install() { + declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN} + + # Most of the installation happens here + dodir ${MOZILLA_FIVE_HOME} + cp -RL --no-preserve=links ${S}/dist/bin/* ${D}${MOZILLA_FIVE_HOME} + + # Create directory structure to support portage-installed extensions. + # See update_chrome() in mozilla-launcher + keepdir ${MOZILLA_FIVE_HOME}/chrome.d + keepdir ${MOZILLA_FIVE_HOME}/extensions.d + cp ${D}${MOZILLA_FIVE_HOME}/chrome/installed-chrome.txt \ + ${D}${MOZILLA_FIVE_HOME}/chrome.d/0_base-chrome.txt + + # Create /usr/bin/thunderbird + install_mozilla_launcher_stub thunderbird ${MOZILLA_FIVE_HOME} + + # Install icon and .desktop for menu entry + insinto /usr/share/pixmaps + doins ${FILESDIR}/icon/thunderbird-icon.png + + # Fix bug 54179: Install .desktop file into /usr/share/applications + # instead of /usr/share/gnome/apps/Internet (18 Jun 2004 agriffis) + insinto /usr/share/applications + doins ${FILESDIR}/icon/mozillathunderbird.desktop +} + +pkg_postinst() { + declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN} + + # Update the component registry + MOZILLA_LIBDIR=${ROOT}${MOZILLA_FIVE_HOME} MOZILLA_LAUNCHER=thunderbird \ + /usr/libexec/mozilla-launcher -register + + # This should be called in the postinst and postrm of all the + # mozilla, mozilla-bin, firefox, firefox-bin, thunderbird and + # thunderbird-bin ebuilds. + update_mozilla_launcher_symlinks + + ewarn "Enigmail Support has been dropped since it doesn't work on fresh install." + ewarn "The Gentoo Mozilla team is working on making enigmail its own build," + ewarn "sorry for the inconvenience. For now, you can download enigmail from" + ewarn "http://enigmail.mozdev.org" +} + +pkg_postrm() { + declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN} + + # Update the component registry + MOZILLA_LIBDIR=${ROOT}${MOZILLA_FIVE_HOME} MOZILLA_LAUNCHER=thunderbird \ + /usr/libexec/mozilla-launcher -register + + update_mozilla_launcher_symlinks +} |