summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/firefox
diff options
context:
space:
mode:
authorGreg Frost <gregfrost1@bigpond.com>2009-07-29 09:29:30 (GMT)
committerGreg Frost <gregfrost1@bigpond.com>2009-07-29 09:29:30 (GMT)
commit4159bd66e3adbf81679c68dfbe6a01486a3f53db (patch)
tree01bd3c6700bce3d19f053d900598cac1df63fcb9 /abs/extra-testing/community/firefox
parentfd40ea704a335d923d7af765add1b3bad1ee5a9d (diff)
downloadlinhes_pkgbuild-4159bd66e3adbf81679c68dfbe6a01486a3f53db.zip
linhes_pkgbuild-4159bd66e3adbf81679c68dfbe6a01486a3f53db.tar.gz
linhes_pkgbuild-4159bd66e3adbf81679c68dfbe6a01486a3f53db.tar.bz2
firefox3.5.1upgrade: firefox nss nspr sqlite3 xulrunner
Diffstat (limited to 'abs/extra-testing/community/firefox')
-rw-r--r--abs/extra-testing/community/firefox/PKGBUILD60
-rw-r--r--abs/extra-testing/community/firefox/browser-app-makefile.patch11
-rw-r--r--abs/extra-testing/community/firefox/browser-defaulturls.patch26
-rw-r--r--abs/extra-testing/community/firefox/firefox-appversion.patch11
-rw-r--r--abs/extra-testing/community/firefox/firefox-version.patch11
-rw-r--r--abs/extra-testing/community/firefox/mozbug421977.patch158
-rw-r--r--abs/extra-testing/community/firefox/mozconfig4
-rw-r--r--abs/extra-testing/community/firefox/mozilla-firstrun.patch49
8 files changed, 77 insertions, 253 deletions
diff --git a/abs/extra-testing/community/firefox/PKGBUILD b/abs/extra-testing/community/firefox/PKGBUILD
index c72e419..1d2ea63 100644
--- a/abs/extra-testing/community/firefox/PKGBUILD
+++ b/abs/extra-testing/community/firefox/PKGBUILD
@@ -1,14 +1,15 @@
-# $Id: PKGBUILD 36426 2009-04-22 11:55:02Z pierre $
+# $Id: PKGBUILD 46468 2009-07-18 13:24:45Z jgc $
# Contributor: Jakub Schmidtke <sjakub@gmail.com>
pkgname=firefox
-pkgver=3.0.9
-pkgrel=2
+pkgver=3.5.1
+pkgrel=1
+_xulver=1.9.1.1
pkgdesc="Standalone web browser from mozilla.org"
arch=(i686 x86_64)
license=('MPL' 'GPL' 'LGPL')
-depends=('xulrunner=1.9.0.9' 'desktop-file-utils')
-makedepends=('zip' 'pkgconfig' 'diffutils' 'libgnomeui>=2.24.1' 'python' 'xorg-server')
+depends=("xulrunner>=${_xulver}" 'desktop-file-utils' "nspr>=4.8")
+makedepends=('zip' 'pkgconfig' 'diffutils' 'libgnomeui>=2.24.1' 'python')
replaces=('firefox3')
install=firefox.install
url="http://www.mozilla.org/projects/firefox"
@@ -17,47 +18,42 @@ source=(http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${pkgver}/s
firefox.desktop
firefox-safe.desktop
mozilla-firefox-1.0-lang.patch
- mozbug421977.patch
- firefox-appversion.patch)
-md5sums=('f80b085699db8201e5db6b30fc63c60d'
- '8b6e5f7d0a9e3f64747a024cf8f12069'
+ browser-defaulturls.patch
+ firefox-version.patch
+ browser-app-makefile.patch)
+md5sums=('18169e189785d680827d4fce94524449'
+ '3c928b11918d22377eba01de34debc19'
'68cf02788491c6e846729b2f2913bf79'
'5e68cabfcf3c021806b326f664ac505e'
'bd5db57c23c72a02a489592644f18995'
- '7976e3ff52e01af3388dfc3a479c4955'
- 'c6f27fca2e6bd2a570b271ec3ce35782')
+ '346d74ec560e7bbf453c02ff21f4b868'
+ '1dd9a10df0b9e4cf332eadc326d78e07'
+ '165c43a5b03a0bf7ad2e7210b0d8c82c')
build() {
- cd ${srcdir}/mozilla
-
- patch -Np1 -i ${srcdir}/mozilla-firefox-1.0-lang.patch || return 1
-
- # FS#10836: fixes backgroundcolor parsing with gnome
- patch -Np0 -i ${srcdir}/mozbug421977.patch || return 1
-
- patch -Np1 -i ${srcdir}/firefox-appversion.patch || return 1
-
- cp ${srcdir}/mozconfig .mozconfig
+ cd "${srcdir}/mozilla-1.9.1"
+ patch -Np1 -i "${srcdir}/mozilla-firefox-1.0-lang.patch" || return 1
+ patch -Np0 -i "${srcdir}/browser-defaulturls.patch" || return 1
+ patch -Np1 -i "${srcdir}/firefox-version.patch" || return 1
+ cp "${srcdir}/mozconfig" .mozconfig
unset CFLAGS
unset CXXFLAGS
- export LDFLAGS="-Wl,-rpath,/usr/lib/firefox-3.0"
-
- LD_PRELOAD="" /usr/bin/Xvfb -nolisten tcp -extension GLX :99 &
- XPID=$!
- export DISPLAY=:99
-
- LD_PRELOAD="" make -j1 -f client.mk profiledbuild MOZ_MAKE_FLAGS="${MAKEFLAGS}" || return 1
- kill $XPID
+ export LDFLAGS="-Wl,-rpath,/usr/lib/firefox-3.5"
- make -j1 DESTDIR=${pkgdir} -C ff-opt-obj install || return 1
+ make -j1 -f client.mk configure MOZ_MAKE_FLAGS="${MAKEFLAGS}" || return 1
+ cd browser/app
+ patch -p2 < "${srcdir}/browser-app-makefile.patch" || return 1
+ cd ../..
+ make -j1 -f client.mk build MOZ_MAKE_FLAGS="${MAKEFLAGS}" || return 1
+ make -j1 DESTDIR="${pkgdir}" install || return 1
- rm -f ${pkgdir}/usr/lib/firefox-3.0/libjemalloc.so
+ rm -f ${pkgdir}/usr/lib/firefox-3.5/libjemalloc.so
install -m755 -d ${pkgdir}/usr/share/applications
install -m755 -d ${pkgdir}/usr/share/pixmaps
- install -m644 ${srcdir}/mozilla/browser/branding/unofficial/default48.png ${pkgdir}/usr/share/pixmaps/firefox.png || return 1
+ install -m644 ${srcdir}/mozilla-1.9.1/browser/branding/unofficial/default48.png ${pkgdir}/usr/share/pixmaps/firefox.png || return 1
install -m644 ${srcdir}/firefox.desktop ${pkgdir}/usr/share/applications/ || return 1
install -m644 ${srcdir}/firefox-safe.desktop ${pkgdir}/usr/share/applications/ || return 1
}
diff --git a/abs/extra-testing/community/firefox/browser-app-makefile.patch b/abs/extra-testing/community/firefox/browser-app-makefile.patch
new file mode 100644
index 0000000..9a02c40
--- /dev/null
+++ b/abs/extra-testing/community/firefox/browser-app-makefile.patch
@@ -0,0 +1,11 @@
+--- browser/app/Makefile 2009-07-27 22:41:13.000000000 +0930
++++ browser-new/app/Makefile 2009-07-27 22:42:51.000000000 +0930
+@@ -279,7 +279,7 @@
+
+ ifneq (,$(filter-out OS2 WINNT WINCE,$(OS_ARCH)))
+
+-$(MOZ_APP_NAME):: $(topsrcdir)/build/unix/mozilla.in $(GLOBAL_DEPS)
++$(MOZ_APP_NAME): $(topsrcdir)/build/unix/mozilla.in $(GLOBAL_DEPS)
+ cat $< | sed -e "s|%MOZAPPDIR%|$(installdir)|" \
+ -e "s|%MOZ_APP_DISPLAYNAME%|$(MOZ_APP_DISPLAYNAME)|" > $@
+ chmod +x $@
diff --git a/abs/extra-testing/community/firefox/browser-defaulturls.patch b/abs/extra-testing/community/firefox/browser-defaulturls.patch
new file mode 100644
index 0000000..42a2e1d
--- /dev/null
+++ b/abs/extra-testing/community/firefox/browser-defaulturls.patch
@@ -0,0 +1,26 @@
+--- browser/branding/unofficial/locales/browserconfig.properties~ 2009-06-13 17:04:42.000000000 +0200
++++ browser/branding/unofficial/locales/browserconfig.properties 2009-06-13 17:05:28.000000000 +0200
+@@ -1,3 +1,3 @@
+ # Do NOT localize or otherwise change these values
+-browser.startup.homepage=http://www.mozilla.org/projects/shiretoko/
++browser.startup.homepage=http://www.google.com/firefox
+
+--- browser/branding/unofficial/pref/firefox-branding.js~ 2009-06-13 16:57:53.000000000 +0200
++++ browser/branding/unofficial/pref/firefox-branding.js 2009-06-13 16:59:17.000000000 +0200
+@@ -1,5 +1,5 @@
+-pref("startup.homepage_override_url","http://www.mozilla.org/projects/%APP%/%VERSION%/whatsnew/");
+-pref("startup.homepage_welcome_url","http://www.mozilla.org/projects/%APP%/%VERSION%/firstrun/");
++pref("startup.homepage_override_url","http://www.mozilla.com/%APP%/%VERSION%/whatsnew/");
++pref("startup.homepage_welcome_url","http://www.mozilla.com/%APP%/%VERSION%/firstrun/");
+ // The time interval between checks for a new version (in seconds)
+ // nightly=8 hours, official=24 hours
+ pref("app.update.interval", 28800);
+@@ -11,7 +11,7 @@
+ pref("app.update.url.details", "http://www.mozilla.org/projects/%APP%/");
+
+ // Release notes URL
+-pref("app.releaseNotesURL", "http://www.mozilla.org/projects/%APP%/%VERSION%/releasenotes/");
++pref("app.releaseNotesURL", "http://www.mozilla.com/%APP%/%VERSION%/releasenotes/");
+
+ // Search codes belong only in builds with official branding
+ pref("browser.search.param.yahoo-fr", "");
diff --git a/abs/extra-testing/community/firefox/firefox-appversion.patch b/abs/extra-testing/community/firefox/firefox-appversion.patch
deleted file mode 100644
index 458904e..0000000
--- a/abs/extra-testing/community/firefox/firefox-appversion.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- mozilla/browser/installer/Makefile.in.orig 2008-11-19 22:49:15.000000000 +0100
-+++ mozilla/browser/installer/Makefile.in 2008-11-19 22:49:32.000000000 +0100
-@@ -43,6 +43,8 @@
-
- include $(DEPTH)/config/autoconf.mk
-
-+MOZ_APP_VERSION=3.0
-+
- NO_PKG_FILES = \
- $(MOZ_APP_NAME)-config \
- $(MOZ_APP_NAME)-bin.elf \
diff --git a/abs/extra-testing/community/firefox/firefox-version.patch b/abs/extra-testing/community/firefox/firefox-version.patch
new file mode 100644
index 0000000..b0a4552
--- /dev/null
+++ b/abs/extra-testing/community/firefox/firefox-version.patch
@@ -0,0 +1,11 @@
+--- mozilla-1.9.1/browser/installer/Makefile.in.ver 2009-07-18 13:32:35.000000000 +0200
++++ mozilla-1.9.1/browser/installer/Makefile.in 2009-07-18 13:33:12.000000000 +0200
+@@ -43,6 +43,8 @@
+
+ include $(DEPTH)/config/autoconf.mk
+
++MOZ_APP_VERSION="3.5"
++
+ NO_PKG_FILES = \
+ $(MOZ_APP_NAME)-config \
+ $(MOZ_APP_NAME)-bin.elf \
diff --git a/abs/extra-testing/community/firefox/mozbug421977.patch b/abs/extra-testing/community/firefox/mozbug421977.patch
deleted file mode 100644
index df8371a..0000000
--- a/abs/extra-testing/community/firefox/mozbug421977.patch
+++ /dev/null
@@ -1,158 +0,0 @@
-Index: browser/components/shell/src/nsGNOMEShellService.cpp
-===================================================================
-RCS file: /cvsroot/mozilla/browser/components/shell/src/nsGNOMEShellService.cpp,v
-retrieving revision 1.21
-diff -d -u -p -U 8 -r1.21 nsGNOMEShellService.cpp
---- browser/components/shell/src/nsGNOMEShellService.cpp 1 Oct 2007 18:25:26 -0000 1.21
-+++ browser/components/shell/src/nsGNOMEShellService.cpp 15 Mar 2008 07:08:47 -0000
-@@ -58,16 +58,17 @@
- #include "nsIImage.h"
- #include "prprf.h"
- #ifdef MOZ_WIDGET_GTK2
- #include "nsIImageToPixbuf.h"
- #endif
-
- #include <glib.h>
- #include <glib-object.h>
-+#include <gdk/gdk.h>
- #include <gdk-pixbuf/gdk-pixbuf.h>
- #include <limits.h>
- #include <stdlib.h>
-
- struct ProtocolAssociation
- {
- const char *name;
- PRBool essential;
-@@ -442,117 +443,56 @@ nsGNOMEShellService::SetDesktopBackgroun
- EmptyCString());
-
- gconf->SetString(NS_LITERAL_CSTRING(kDesktopImageKey), filePath);
- gconf->SetBool(NS_LITERAL_CSTRING(kDesktopDrawBGKey), PR_TRUE);
-
- return rv;
- }
-
--// In: pointer to two characters CC
--// Out: parsed color number
--static PRUint8
--HexToNum(char ch)
--{
-- if ('0' <= ch && '9' >= ch)
-- return ch - '0';
--
-- if ('A' <= ch && 'F' >= ch)
-- return ch - 'A';
--
-- if ('a' <= ch && 'f' >= ch)
-- return ch - 'a';
--
-- return 0;
--}
--
--
--// In: 3 or 6-character RRGGBB hex string
--// Out: component colors
--static PRBool
--HexToRGB(const nsCString& aColorSpec,
-- PRUint8 &aRed,
-- PRUint8 &aGreen,
-- PRUint8 &aBlue)
--{
-- const char *buf = aColorSpec.get();
--
-- if (aColorSpec.Length() == 6) {
-- aRed = HexToNum(buf[0]) >> 4 |
-- HexToNum(buf[1]);
-- aGreen = HexToNum(buf[2]) >> 4 |
-- HexToNum(buf[3]);
-- aBlue = HexToNum(buf[4]) >> 4 |
-- HexToNum(buf[5]);
-- return PR_TRUE;
-- }
--
-- if (aColorSpec.Length() == 3) {
-- aRed = HexToNum(buf[0]);
-- aGreen = HexToNum(buf[1]);
-- aBlue = HexToNum(buf[2]);
--
-- aRed |= aRed >> 4;
-- aGreen |= aGreen >> 4;
-- aBlue |= aBlue >> 4;
--
-- return PR_TRUE;
-- }
--
-- return PR_FALSE;
--}
-+#define COLOR_16_TO_8_BIT(_c) ((_c) >> 8)
-+#define COLOR_8_TO_16_BIT(_c) ((_c) << 8)
-
- NS_IMETHODIMP
- nsGNOMEShellService::GetDesktopBackgroundColor(PRUint32 *aColor)
- {
- nsCOMPtr<nsIGConfService> gconf = do_GetService(NS_GCONFSERVICE_CONTRACTID);
-
- nsCAutoString background;
- gconf->GetString(NS_LITERAL_CSTRING(kDesktopColorKey), background);
-
- if (background.IsEmpty()) {
- *aColor = 0;
- return NS_OK;
- }
-
-- // Chop off the leading '#' character
-- background.Cut(0, 1);
-+ GdkColor color;
-+ gboolean success = gdk_color_parse(background.get(), &color);
-
-- PRUint8 red, green, blue;
-- if (!HexToRGB(background, red, green, blue))
-- return NS_ERROR_FAILURE;
-+ NS_ENSURE_TRUE(success, NS_ERROR_FAILURE);
-
-- // The result must be in RGB order with the high 8 bits zero.
-- *aColor = (red << 16 | green << 8 | blue);
-+ *aColor = COLOR_16_TO_8_BIT(color.red) << 16 |
-+ COLOR_16_TO_8_BIT(color.green) << 8 |
-+ COLOR_16_TO_8_BIT(color.blue);
- return NS_OK;
- }
-
--static void
--ColorToHex(PRUint32 aColor, nsCString& aResult)
--{
-- char *buf = aResult.BeginWriting(7);
-- if (!buf)
-- return;
--
-- PRUint8 red = (aColor >> 16);
-- PRUint8 green = (aColor >> 8) & 0xff;
-- PRUint8 blue = aColor & 0xff;
--
-- PR_snprintf(buf, 8, "#%02x%02x%02x", red, green, blue);
--}
--
- NS_IMETHODIMP
- nsGNOMEShellService::SetDesktopBackgroundColor(PRUint32 aColor)
- {
- nsCOMPtr<nsIGConfService> gconf = do_GetService(NS_GCONFSERVICE_CONTRACTID);
-
-- nsCString colorString;
-- ColorToHex(aColor, colorString);
-+ GdkColor color;
-+ color.red = COLOR_8_TO_16_BIT(aColor >> 16);
-+ color.green = COLOR_8_TO_16_BIT((aColor >> 8) & 0xff);
-+ color.blue = COLOR_8_TO_16_BIT(aColor & 0xff);
-
-- gconf->SetString(NS_LITERAL_CSTRING(kDesktopColorKey), colorString);
-+ gchar *colorString = gdk_color_to_string(&color);
-+ gconf->SetString(NS_LITERAL_CSTRING(kDesktopColorKey), nsDependentCString(colorString));
-+ g_free (colorString);
-
- return NS_OK;
- }
-
- NS_IMETHODIMP
- nsGNOMEShellService::OpenApplication(PRInt32 aApplication)
- {
- nsCAutoString scheme;
diff --git a/abs/extra-testing/community/firefox/mozconfig b/abs/extra-testing/community/firefox/mozconfig
index b40ce01..030317d 100644
--- a/abs/extra-testing/community/firefox/mozconfig
+++ b/abs/extra-testing/community/firefox/mozconfig
@@ -23,11 +23,9 @@ ac_add_options --enable-canvas
ac_add_options --enable-startup-notification
ac_add_options --enable-libxul
ac_add_options --disable-crashreporter
-ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-1.9
+ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-1.9.1.1
ac_add_options --enable-safe-browsing
ac_add_options --with-branding=browser/branding/unofficial
-mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt-obj
-mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) $(MOZ_OBJDIR)/_profile/pgo/profileserver.py'
export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
diff --git a/abs/extra-testing/community/firefox/mozilla-firstrun.patch b/abs/extra-testing/community/firefox/mozilla-firstrun.patch
deleted file mode 100644
index 3a75328..0000000
--- a/abs/extra-testing/community/firefox/mozilla-firstrun.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-diff -up mozilla/browser/base/jar.mn.firstrun mozilla/browser/base/jar.mn
---- mozilla/browser/base/jar.mn.firstrun 2008-06-15 12:39:28.000000000 -0700
-+++ mozilla/browser/base/jar.mn 2008-06-15 12:39:34.000000000 -0700
-@@ -21,9 +21,6 @@ browser.jar:
- * content/browser/browser.js (content/browser.js)
- * content/browser/browser.xul (content/browser.xul)
- * content/browser/credits.xhtml (content/credits.xhtml)
--* content/browser/EULA.js (content/EULA.js)
--* content/browser/EULA.xhtml (content/EULA.xhtml)
--* content/browser/EULA.xul (content/EULA.xul)
- * content/browser/metaData.js (content/metaData.js)
- * content/browser/metaData.xul (content/metaData.xul)
- * content/browser/pageinfo/pageInfo.xul (content/pageinfo/pageInfo.xul)
---- mozilla/browser/components/nsBrowserGlue.js 2008-09-16 19:07:25.000000000 +0000
-+++ mozilla/browser/components/nsBrowserGlue.js.new 2008-10-03 14:54:50.955760018 +0000
-@@ -175,33 +175,6 @@
- // profile startup handler (contains profile initialization routines)
- _onProfileStartup: function()
- {
-- // Check to see if the EULA must be shown on startup
--
-- var prefBranch = Cc["@mozilla.org/preferences-service;1"].
-- getService(Ci.nsIPrefBranch);
-- var mustDisplayEULA = false;
-- try {
-- mustDisplayEULA = !prefBranch.getBoolPref("browser.EULA.override");
-- } catch (e) {
-- // Pref might not exist
-- }
--
-- // Make sure it hasn't already been accepted
-- if (mustDisplayEULA) {
-- try {
-- var EULAVersion = prefBranch.getIntPref("browser.EULA.version");
-- mustDisplayEULA = !prefBranch.getBoolPref("browser.EULA." + EULAVersion + ".accepted");
-- } catch(ex) {
-- }
-- }
--
-- if (mustDisplayEULA) {
-- var ww2 = Cc["@mozilla.org/embedcomp/window-watcher;1"].
-- getService(Ci.nsIWindowWatcher);
-- ww2.openWindow(null, "chrome://browser/content/EULA.xul",
-- "_blank", "chrome,centerscreen,modal,resizable=yes", null);
-- }
--
- this.Sanitizer.onStartup();
- // check if we're in safe mode
- var app = Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULAppInfo).