Because of the security vulnerabilities fixed in thunderbird 2.0.0.23, I
decided to build it for myself ahead of schedule. In so doing, I
discovered it wouldn't build for me, and located a patch to fix it.
I attach the modified PKGBUILD and the patch here, perhaps to save some
others some effort. Built and running successfully on i686-- used to
send this message, in fact.
Provenance of the patch is Fedora, via this thread:
http://groups.google.com/group/mozilla.dev.apps.thunderbird/browse_thread/thread/512f83ea2ba541fd/f762691cef05e30a?lnk=raot&pli=1
- P
# $Id: PKGBUILD 46668 2009-07-19 15:08:42Z jgc $
# Maintainer: Alexander Baldeck
# Contributor: Dale Blount
# Contributor: Anders Bostrom
pkgname=thunderbird
pkgver=2.0.0.23
pkgrel=1
pkgdesc="Standalone Mail/News reader"
arch=('i686' 'x86_64')
license=('MPL' 'GPL')
url="http://www.mozilla.org/projects/thunderbird"
provides=('mozilla-thunderbird')
conflicts=('mozilla-thunderbird')
replaces=('mozilla-thunderbird')
depends=('gtk2>=2.16.5' 'gcc-libs>=4.4' 'libidl2>=0.8.13' 'mozilla-common' 'nss>=3.12.3' 'libxt' 'shared-mime-info')
makedepends=('zip' 'pkgconfig' 'imagemagick>=6.5.3.10-1' 'libgnomeui')
options=('!makeflags')
source=(ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/${pkgver}/source/thunderbird-${pkgver}-source.tar.bz2
mozconfig
thunderbird.desktop
thunderbird-1.5-lang.patch
firefox-2.0-link-layout.patch
thunderbird-appversion.patch
xulrunner-elif.patch
thunderbird-2.0-visibility.patch)
md5sums=('2e118fcf752ee60ce994f1471f9632d1'
'17e3015259da53f40bc445b27078f693'
'ea4e3c3dee98e3891bef16409551eb6e'
'bc6f10a06407faee6494acad546aabf9'
'b933c00957ea793fe940f4d46a85e10e'
'63dd0436e43e2de71abcf9160a1a6f44'
'38457261a6355365079dbe5c2342ec68'
'50345f0dc7b1fc59c3bb9fb49a19b7e5')
build() {
cd "${srcdir}/mozilla"
patch -Np1 -i "${srcdir}/thunderbird-1.5-lang.patch" || return 1
patch -Np1 -i "${srcdir}/firefox-2.0-link-layout.patch" || return 1
patch -Np1 -i "${srcdir}/thunderbird-appversion.patch" || return 1
patch -Np1 -i "${srcdir}/xulrunner-elif.patch" || return 1
patch -Np1 -i "${srcdir}/thunderbird-2.0-visibility.patch" || return 1
cp "${srcdir}/mozconfig" .mozconfig
if [ "${CARCH}" = "x86_64" ]; then
echo "ac_cv_visibility_pragma=no" >> .mozconfig
fi
export MOZ_PROJECT=mail
unset CXXFLAGS
unset CFLAGS
make -f client.mk build || return 1
make DESTDIR="${pkgdir}" install || return 1
rm -rf "${pkgdir}/usr/bin/defaults"
install -m755 -d "${pkgdir}/usr/share/applications"
install -m755 -d "${pkgdir}/usr/share/pixmaps"
convert "${srcdir}/mozilla/mail/app/default.xpm" \
"${pkgdir}/usr/share/pixmaps/thunderbird.png" || return 1
install -m644 "${srcdir}/thunderbird.desktop" \
"${pkgdir}/usr/share/applications/" || return 1
install -m644 "${srcdir}/mozilla/mail/app/default.xpm" \
"${pkgdir}/usr/lib/thunderbird-2.0/icons/" || return 1
rm -f ${pkgdir}/usr/lib/pkgconfig/thunderbird-ns{s,pr}.pc
}
diff -up mozilla/configure.vis mozilla/configure
--- mozilla/configure.vis 2009-08-19 14:43:58.000000000 +0200
+++ mozilla/configure 2009-08-19 15:15:11.000000000 +0200
@@ -8015,7 +8015,7 @@ EOF
if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
if egrep '\.(hidden|extern_private).*foo_hidden' conftest.s >/dev/null; then
if ! egrep '\.(hidden|extern_private).*foo_default' conftest.s > /dev/null; then
- ac_cv_visibility_pragma=yes
+ ac_cv_visibility_pragma=no
fi
fi
fi