--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/mozilla-1.9.1-1.9.1.8+build1-source.tar.bz2.cdbs-config_list
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/mozilla-1.9.1-1.9.1.8+build1-source.tar.bz2.cdbs-config_list
@@ -0,0 +1,83 @@
+mozilla/media/libtheora/include/theora/config.h
+mozilla/media/libtheora/lib/config.h
+mozilla/media/liboggz/include/oggz/config.h
+mozilla/media/liboggplay/src/liboggplay/config.h
+mozilla/media/libfishsound/src/libfishsound/config.h
+mozilla/media/libfishsound/include/fishsound/config.h
+mozilla/toolkit/themes/pinstripe/global/config.css
+mozilla/toolkit/themes/winstripe/global/config.css
+mozilla/toolkit/components/viewconfig/content/config.js
+mozilla/toolkit/components/viewconfig/content/config.xul
+mozilla/toolkit/crashreporter/google-breakpad/src/config.h.in
+mozilla/toolkit/crashreporter/google-breakpad/autotools/config.guess
+mozilla/toolkit/crashreporter/google-breakpad/autotools/config.sub
+mozilla/toolkit/locales/en-US/chrome/global/config.dtd
+mozilla/toolkit/locales/en-US/chrome/global/config.properties
+mozilla/js/tests/config.mk
+mozilla/js/tests/config.sh
+mozilla/js/src/config.mk
+mozilla/js/src/config/config.mk
+mozilla/js/src/build/autoconf/config.guess
+mozilla/js/src/build/autoconf/config.sub
+mozilla/security/nss/tests/pkcs11/netscape/suites/config.mk
+mozilla/security/nss/tests/pkcs11/netscape/suites/security/config.mk
+mozilla/security/nss/tests/pkcs11/netscape/suites/security/ssl/config.mk
+mozilla/security/nss/tests/pkcs11/netscape/suites/security/pkcs11/config.mk
+mozilla/security/nss/tests/pkcs11/netscape/trivial/config.h.in
+mozilla/security/nss/cmd/crmftest/config.mk
+mozilla/security/nss/cmd/libpkix/config.mk
+mozilla/security/nss/cmd/libpkix/testutil/config.mk
+mozilla/security/nss/cmd/crmf-cgi/config.mk
+mozilla/security/nss/cmd/lib/config.mk
+mozilla/security/nss/cmd/zlib/config.mk
+mozilla/security/nss/lib/pk11wrap/config.mk
+mozilla/security/nss/lib/dev/config.mk
+mozilla/security/nss/lib/ckfw/capi/config.mk
+mozilla/security/nss/lib/ckfw/config.mk
+mozilla/security/nss/lib/ckfw/nssmkey/config.mk
+mozilla/security/nss/lib/ckfw/dbm/config.mk
+mozilla/security/nss/lib/ckfw/builtins/config.mk
+mozilla/security/nss/lib/certhigh/config.mk
+mozilla/security/nss/lib/libpkix/pkix_pl_nss/system/config.mk
+mozilla/security/nss/lib/libpkix/pkix_pl_nss/config.mk
+mozilla/security/nss/lib/libpkix/pkix_pl_nss/module/config.mk
+mozilla/security/nss/lib/libpkix/pkix_pl_nss/pki/config.mk
+mozilla/security/nss/lib/libpkix/config.mk
+mozilla/security/nss/lib/libpkix/pkix/config.mk
+mozilla/security/nss/lib/libpkix/pkix/crlsel/config.mk
+mozilla/security/nss/lib/libpkix/pkix/params/config.mk
+mozilla/security/nss/lib/libpkix/pkix/top/config.mk
+mozilla/security/nss/lib/libpkix/pkix/store/config.mk
+mozilla/security/nss/lib/libpkix/pkix/certsel/config.mk
+mozilla/security/nss/lib/libpkix/pkix/checker/config.mk
+mozilla/security/nss/lib/libpkix/pkix/results/config.mk
+mozilla/security/nss/lib/libpkix/pkix/util/config.mk
+mozilla/security/nss/lib/libpkix/include/config.mk
+mozilla/security/nss/lib/nss/config.mk
+mozilla/security/nss/lib/certdb/config.mk
+mozilla/security/nss/lib/cryptohi/config.mk
+mozilla/security/nss/lib/freebl/config.mk
+mozilla/security/nss/lib/ssl/config.mk
+mozilla/security/nss/lib/jar/config.mk
+mozilla/security/nss/lib/softoken/config.mk
+mozilla/security/nss/lib/softoken/legacydb/config.mk
+mozilla/security/nss/lib/pki/config.mk
+mozilla/security/nss/lib/pkcs7/config.mk
+mozilla/security/nss/lib/util/config.mk
+mozilla/security/nss/lib/smime/config.mk
+mozilla/security/nss/lib/base/config.mk
+mozilla/security/nss/lib/sqlite/config.mk
+mozilla/security/nss/lib/pki1/config.mk
+mozilla/security/nss/lib/pkcs12/config.mk
+mozilla/security/nss/lib/crmf/config.mk
+mozilla/security/dbm/src/config.mk
+mozilla/security/dbm/config/config.mk
+mozilla/security/coreconf/config.mk
+mozilla/config/config.mk
+mozilla/tools/jprof/stub/config.h
+mozilla/tools/leaky/config.h
+mozilla/build/autoconf/config.guess
+mozilla/build/autoconf/config.sub
+mozilla/nsprpub/config/config.mk
+mozilla/nsprpub/build/autoconf/config.guess
+mozilla/nsprpub/build/autoconf/config.sub
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/xulrunner-1.9.1-dev.install
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/xulrunner-1.9.1-dev.install
@@ -0,0 +1,21 @@
+debian/tmp/usr/{include,share/idl}/xulrunner-1.9*/stable
+debian/tmp/usr/{include,share/idl}/xulrunner-1.9*/unstable/[a-mo-wyzA-SU-Z]*
+debian/tmp/usr/{include,share/idl}/xulrunner-1.9*/unstable/n[a-rt-zA-Z]*
+debian/tmp/usr/{include,share/idl}/xulrunner-1.9*/unstable/ns[a-zA-HJ-Z]*
+debian/tmp/usr/{include,share/idl}/xulrunner-1.9*/unstable/nsI[A-GI-RU-Za-z]*
+debian/tmp/usr/{include,share/idl}/xulrunner-1.9*/unstable/nsIH[a-su-zA-Z]*
+debian/tmp/usr/{include,share/idl}/xulrunner-1.9*/unstable/nsIHttp[A-RT-Za-z]*
+debian/tmp/usr/{include,share/idl}/xulrunner-1.9*/unstable/nsIS[A-Zb-z]*
+debian/tmp/usr/{include,share/idl}/xulrunner-1.9*/unstable/nsISa[a-ln-zA-Z]*
+debian/tmp/usr/{include,share/idl}/xulrunner-1.9*/unstable/nsIT[a-df-zA-Z]*
+debian/tmp/usr/{include,share/idl}/xulrunner-1.9*/unstable/nsITe[a-rt-zA-Z]*
+debian/tmp/usr/{include,share/idl}/xulrunner-1.9*/unstable/x[a-oq-zA-Z]*
+debian/tmp/usr/{include,share/idl}/xulrunner-1.9*/unstable/xp[abd-zA-Z]*
+debian/tmp/usr/{include,share/idl}/xulrunner-1.9*/unstable/xpc[_a-su-zA-Z]*
+debian/tmp/usr/lib/xulrunner-devel-1.9*/
+
+debian/tmp/usr/lib/pkgconfig/libxul*.pc /usr/lib/pkgconfig/
+debian/tmp/usr/lib/pkgconfig/mozilla-gtk*.pc /usr/lib/pkgconfig/
+debian/tmp/usr/lib/pkgconfig/mozilla-plugin.pc /usr/lib/pkgconfig/
+debian/tmp/usr/lib/pkgconfig/mozilla-js.pc /usr/lib/pkgconfig/
+
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/compat
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/compat
@@ -0,0 +1 @@
+5
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/changelog
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/changelog
@@ -0,0 +1,1427 @@
+xulrunner-1.9.1 (1.9.1.8+build1+nobinonly-0ubuntu0.9.10.1netbook0kunlun1) kunlun; urgency=low
+
+  * Backport for kunlun 
+
+ -- Nicolas Valcárcel Scerpella (Canonical) <nvalcarcel@canonical.com>  Tue, 23 Feb 2010 07:54:07 -0500
+
+xulrunner-1.9.1 (1.9.1.8+build1+nobinonly-0ubuntu0.9.10.1) karmic-security; urgency=low
+
+  * New upstream release v1.9.1.8 (FIREFOX_3_5_8_BUILD1)
+    - see USN-896-1 
+
+ -- Micah Gersten <micahg@ubuntu.com>  Tue, 09 Feb 2010 10:45:22 -0600
+
+xulrunner-1.9.1 (1.9.1.7+nobinonly-0ubuntu0.9.10.1) karmic-security; urgency=low
+
+  * New upstream release v1.9.1.7 (FIREFOX_3_5_7_RELEASE)
+    - see USN-878-1
+
+  [ Micah Gersten <micahg@ubuntu.com> ]
+  * Drop patch after upstream landing of (bmo: 521780) aka
+    extension upgrade with a moved location breaks extension manager
+    - drop debian/patches/lp441552_bz521780_att407108.patch
+    - update debian/patches/series
+
+ -- Alexander Sack <asac@ubuntu.com>  Wed, 06 Jan 2010 06:06:22 +0100
+
+xulrunner-1.9.1 (1.9.1.6+nobinonly-0ubuntu0.9.10.1) karmic-security; urgency=low
+
+  * New upstream release v1.9.1.6 (FIREFOX_3_5_6_RELEASE)
+    - see USN-874-1
+
+  * drop patches applied/superseded upstream
+    - remove debian/patches/fix_ftbfs_with_cairo_fb.patch
+    - remove debian/patches/bz499498_att397329_lp401055_bad_window.patch
+    - update debian/patches/series
+  * defer syslib stability/performance updates for sqlite and cairo to SRU
+    - add debian/patches/defer_syslibs_bumps_to_sru.patch
+    - add debian/patches/series
+
+ -- Alexander Sack <asac@ubuntu.com>  Tue, 15 Dec 2009 23:43:21 +0100
+
+xulrunner-1.9.1 (1.9.1.5+nobinonly-0ubuntu0.9.10.1) karmic-security; urgency=low
+
+  * New upstream release v1.9.1.5 (FIREFOX_3_5_5_RELEASE)
+    - fixes regressions and crashers only
+
+ -- Alexander Sack <asac@ubuntu.com>  Mon, 09 Nov 2009 11:52:26 +0100
+
+xulrunner-1.9.1 (1:1.9.1.5+nobinonly-0ubuntu0.9.10.1netbook0kunlun2) kunlun; urgency=low
+
+  * Rebuild against new nspr version
+  * Fix debian revision
+
+ -- Bruno Dilly <bruno.dilly@canonical.com>  Tue, 08 Dec 2009 16:13:45 -0200
+
+xulrunner-1.9.1 (1.9.1.5+nobinonly-0ubuntu0.9.10.netbook0kunlun1) kunlun; urgency=low
+
+  * Upload for kunlun
+
+ -- Nicolas Valcárcel Scerpella (Canonical) <nvalcarcel@canonical.com>  Mon, 23 Nov 2009 17:10:47 -0500
+
+xulrunner-1.9.1 (1.9.1.4+nobinonly-0ubuntu0.9.10.1) karmic-security; urgency=low
+
+  * New upstream release v1.9.1.4 (FIREFOX_3_5_4_RELEASE)
+    - see USN-853-1
+
+ -- Alexander Sack <asac@ubuntu.com>  Wed, 28 Oct 2009 16:13:21 +0100
+
+xulrunner-1.9.1 (1.9.1.3+build1+nobinonly-0ubuntu6) karmic; urgency=low
+
+  [ Fabien Tassin <fta@ubuntu.com> ]
+  * fix LP: #454166 - target the 'default' branch instead of tip;
+    this just affects daily builds from this branch
+    - add debian/moz-rev.sh
+    - update debian/mozclient/xulrunner-1.9.1.conf
+
+  [ Alexander Sack <asac@ubuntu.com> ]
+  * fix LP: #441552 - [MASTER] Firefox 3.5 prompting to restart without
+    installing new addons; basically on upgrade if firefox does not find
+    an reference to a previously known extension location in the new created
+    extension rdf, the extension manager will fail leading to a bad startup
+    sequence, basically leaving users in a instable state as no extension
+    upgrades etc. will finish/work properly. The fix takes latest upstream
+    patch (attach 407108) from https://bugzilla.mozilla.org/show_bug.cgi?id=521780
+    - add debian/patches/lp441552_bz521780_att407108.patch
+    - update debian/patches/series
+
+ -- Alexander Sack <asac@ubuntu.com>  Tue, 20 Oct 2009 12:08:40 +0200
+
+xulrunner-1.9.1 (1.9.1.3+build1+nobinonly-0ubuntu5) karmic; urgency=low
+
+  * fix LP: #401055 - Gdk-ERROR **: The program 'firefox-3.5' received
+    an X Window System error (BadWindow); add patch from upstream bug
+    (also LP: #411695)
+    - add debian/patches/bz499498_att397329_lp401055_bad_window.patch
+    - update debian/patches/series
+
+ -- Alexander Sack <asac@ubuntu.com>  Wed, 07 Oct 2009 10:23:28 +0200
+
+xulrunner-1.9.1 (1.9.1.3+build1+nobinonly-0ubuntu4) karmic; urgency=low
+
+  * fix previous added workaround for LP: #435560 by appending the powerpc
+    specific optimization flags to configure instead of prepending them
+    - update debian/rules
+
+ -- Alexander Sack <asac@ubuntu.com>  Thu, 24 Sep 2009 14:16:23 +0200
+
+xulrunner-1.9.1 (1.9.1.3+build1+nobinonly-0ubuntu3) karmic; urgency=low
+
+  * workaround LP: #411439 - build failure on sparc; we disable jit on sparc until
+    bmo 502369 is really fixed for us
+    - update debian/rules
+  * workaround LP: #435560 - xpidl binary produced by gcc 4.4 crashes on
+    powerpc if built using -Os optimization; we force -O2 on powerpc to
+    workaround this
+    - update debian/rules
+  * require libiw-dev >= 29-2ubuntu6 for powerpc and sparc as it contains fixes
+    for such long double 128 support archs. See LP: #435793
+    - update debian/control
+
+ -- Alexander Sack <asac@ubuntu.com>  Thu, 24 Sep 2009 14:03:12 +0200
+
+xulrunner-1.9.1 (1.9.1.3+build1+nobinonly-0ubuntu2) karmic; urgency=low
+
+  [ Fabien Tassin <fta@ubuntu.com> ]
+  * Bump requirement for system sqlite to >= 3.6.16 (bmo 508104)
+    - update debian/rules
+
+  [ Alexander Sack <asac@ubuntu.com> ]
+  * fix LP: #423610 - daily build failures after landing of mozilla-nss.pc
+    droppage (bug 422829); ensure that nspr-config is properly available in
+    sdk regardless of using system or in-source nspr; also ensure that the
+    xulrunner nspr/ include directory points to the system one in system-nspr
+    case.
+    - update debian/rules
+  * fix LP: #427638 - xulrunner includes no longer have nspr headers; explicit
+    link against nspr is required; we append /usr/include/xulrunner-*/stable/nspr/
+    to all .pc Cflags:
+    - update debian/rules
+
+ -- Alexander Sack <asac@ubuntu.com>  Tue, 15 Sep 2009 13:42:31 +0200
+
+xulrunner-1.9.1 (1.9.1.3+build1+nobinonly-0ubuntu1) karmic; urgency=low
+
+  * security/stability update v1.9.1.3 (FIREFOX_3_5_3_BUILD1)
+    - see USN-821-1
+  * fix LP: #398205 - Geolocation via WLAN doesn't seem to work; enable
+    wireless scanning for geolocation by adding libiw-dev to build depends
+    - update debian/control
+  * fix LP: #422829 - mozilla-nss.pc is broken; stop installing mozilla-nspr.pc
+    and mozilla-nss.pc
+    - update debian/xulrunner-1.9.1-dev.install
+  * in turn we drop the patch we previously used to keep mozilla-nspr.pc
+    and mozilla-nss.pc in a usable state when using system nss/nspr
+    - delete debian/patches/bzXXX_pc_honour_system_nspr_nss.patch
+    - update debian/patches/series
+
+ -- Alexander Sack <asac@ubuntu.com>  Wed, 02 Sep 2009 16:31:23 +0200
+
+xulrunner-1.9.1 (1.9.1.2+nobinonly-0ubuntu3) karmic; urgency=low
+
+  * set BUILD_OFFICIAL = 1 to enable all official build features
+    - update debian/rules
+  * fix LP: #404827 - Firefox doesn't warn about Attack Sites!?; add
+    --enable-safe-browsing to configure flags
+    - update debian/rules
+
+ -- Alexander Sack <asac@ubuntu.com>  Mon, 10 Aug 2009 15:23:40 +0200
+
+xulrunner-1.9.1 (1.9.1.2+nobinonly-0ubuntu2) karmic; urgency=low
+
+  * fix LP: #409264 - make xulrunner 1.9.1 the default in karmic; we ship
+    the default -dev package now
+    - update debian/control
+
+ -- Alexander Sack <asac@ubuntu.com>  Wed, 05 Aug 2009 13:09:58 +0200
+
+xulrunner-1.9.1 (1.9.1.2+nobinonly-0ubuntu1) karmic; urgency=low
+
+  * security/stability update v1.9.1.2 (FIREFOX_3_5_2_RELEASE)
+  * drop update-alternative --remove-all hack (which ensured that non-existing alternatives dont end
+    up in "manual" mode in the past) now that dpkg fails on them - also the "auto" mode seems to be fixed
+    - update debian/xulrunner-1.9.2.prerm.in
+  * enable support for "extensions" in build-system
+    - update debian/create-build-system.sh
+  * drop not used patch from package
+    - delete debian/patches/bz321315_gconf_backend_for_19.patch
+
+ -- Alexander Sack <asac@ubuntu.com>  Mon, 03 Aug 2009 14:07:22 +0200
+
+xulrunner-1.9.1 (1.9.1.1+build1+nobinonly-0ubuntu1) karmic; urgency=low
+
+  * security/stability update v1.9.1.1 build1 (FIREFOX_3_5_1_BUILD1)
+  * tighten depends of xulrunner-1.9.1-dev; use xulrunner-1.9.1 (= ${binary:Version})
+    - update debian/control
+  * prepare package for launchpad translations; open up EM_TRANSLATION
+    versions (min: 1.9.1 / max: 1.9.1.*)
+    - update debian/rules
+
+ -- Alexander Sack <asac@ubuntu.com>  Thu, 16 Jul 2009 18:26:43 +0200
+
+xulrunner-1.9.1 (1.9.1+nobinonly-0ubuntu1) karmic; urgency=low
+
+  * New upstream release taken from tag FIREFOX_3_5_RELEASE
+  * Add libxul-dev and libmozjs-dev to Conflicts of the main
+    xulrunner-1.9.1 package
+    - update debian/control
+  * Change the id of the langpacks to 1.9.1
+    - update debian/translation-support/install.rdf.in
+
+ -- Fabien Tassin <fta@ubuntu.com>  Tue, 30 Jun 2009 19:55:54 +0200
+
+xulrunner-1.9.1 (1.9.1~rc2+nobinonly-0ubuntu1) karmic; urgency=low
+
+  * New upstream release taken from tag FIREFOX_3_5rc2_RELEASE
+  * Bump requirement for system nspr to >= 4.8 (bmo 492464), for sqlite
+    to >= 3.6.10 (bmo 478297) and for cairo to >= 1.6.0 (bmo 428563)
+    - update debian/rules
+  * Bump Standards-Version to 3.8.1
+    - update debian/control
+  * Make the -dbg package strictly depend on the main package, and move it
+    to the debug section, and assign its priority to extra
+    - update debian/control
+  * Fix crash on shutdown by leaking env between firefox and xulrunner
+    - add debian/patches/bz473629_lp319480_leak_setenv_apprunner.patch
+    - update debian/patches/series
+  * Update diverged patches:
+    - update debian/patches/bzXXX_fix_test_suite_bashisms.patch
+    - update debian/patches/bzXXX_urlclassifier_prefs_in_toolkit.patch
+
+ -- Fabien Tassin <fta@ubuntu.com>  Fri, 19 Jun 2009 18:55:00 +0200
+
+xulrunner-1.9.1 (1.9.1~b4+nobinonly-0ubuntu1) karmic; urgency=low
+
+  [ Fabien Tassin ]
+  * Bump requirement for system nss to >= 3.12.3 since Mozilla bug 485052 landed
+    - update debian/rules
+  * Update diverged patches:
+    - update debian/patches/bzXXX_fix_test_suite_bashisms.patch
+    - update debian/patches/bz461277_att344402_eliminate_deprecated_gtk_type_macros.patch
+
+  [ Alexander Sack ]
+  * Update diverged patches:
+    - update debian/patches/bzXXX_pc_honour_system_nspr_nss.patch
+  * drop patch after upstream fix landing
+    - drop debian/patches/bz478871_att369648_new_pango_api.patch
+    - update debian/patches/series
+
+ -- Alexander Sack <asac@ubuntu.com>  Wed, 29 Apr 2009 14:01:47 +0200
+
+xulrunner-1.9.1 (1.9.1~b4~hg20090330r24021+nobinonly-0ubuntu1) jaunty; urgency=low
+
+  * New upstream snapshot, needed to match the firefox 3.1->3.5 transition (LP: #352995)
+  * Update MOZCLIENT_GETDATE to make it use pushlog so it is not confused by merges with
+    dates in the past
+    - update debian/mozclient/xulrunner-1.9.1.conf
+  * Fix FTBFS caused by API breakage in pango
+    - add debian/patches/bz478871_att369648_new_pango_api.patch
+    - update debian/patches/series
+  * Drop files no longer in the install dir
+    - update debian/xulrunner-1.9.1-testsuite.install
+
+ -- Fabien Tassin <fta@ubuntu.com>  Mon, 30 Mar 2009 19:00:40 +0200
+
+xulrunner-1.9.1 (1.9.1~b3+build2+nobinonly-0ubuntu1) jaunty; urgency=low
+ 
+  * New upstream release taken from tag FIREFOX_3_1b3_BUILD2 (LP: #339181)
+ 
+ -- Fabien Tassin <fta@ubuntu.com>  Sat, 07 Mar 2009 15:27:58 +0100
+
+xulrunner-1.9.1 (1.9.1~b3~hg20090205r23182+nobinonly-0ubuntu1) jaunty; urgency=low
+
+  * new upstream pre b3 snapshot taken on 5th Feb 2008
+
+ -- Alexander Sack <asac@ubuntu.com>  Sat, 07 Feb 2009 15:38:48 +0100
+
+xulrunner-1.9.1 (1.9.1~b3~hg20090117r22878+nobinonly-0ubuntu1) jaunty; urgency=low
+
+  [ Alexander Sack ]
+  * don't version pkgconfig files; in turn conflict with xulrunner-1.9-dev
+    package
+    - update debian/control
+    - delete debian/patches/install_pkgconfig_files_with_version.patch
+    - update debian/patches/series
+  * upstream lockPref everywhere patch
+    - rename debian/patches/bzXXX_deb469020_lockPref_everywhere.patch =>
+        debian/patches/bz467738_att351145_lockPref_everywhere.patch
+    - update debian/patches/series
+  * upstream xre part for debian sysplugin location
+    - rename debian/patches/bzXXX_sysplugin_support_xre_part.patch =>
+        debian/patches/bz467751_att351167_sysplugin_xre_part.patch
+    - update debian/patches/series
+  * upstream patch to prevent loss of some user prefs on first start after
+    upgrade
+    - rename debian/patches/bzXXX-dont-reset-user-prefs-on-upgrade.patch =>
+        debian/patches/bz467766_att351173-dont-reset-user-prefs-on-upgrade.patch
+    - update debian/patches/series
+
+  [ Fabien Tassin ]
+  * Build the test suite according to the WANT_UNIT_TESTS variable and
+    store the results into the xulrunner-1.9.1-testsuite package.
+    - update debian/rules
+    - update debian/control
+    - udpate debian/xulrunner-1.9.1-dev.install
+    - update debian/xulrunner-1.9.1.install
+    - add debian/xulrunner-1.9.1-testsuite.install
+    - add debian/xulrunner-1.9.1-testsuite-dev.install
+  * Fix test suite to avoid bashisms (breaking dash)
+    - add debian/patches/bzXXX_fix_test_suite_bashisms.patch
+    - update debian/patches/series
+  * Run make check at build time in a non fatal way for now
+    - update debian/rules
+  * Bundle test results (_leaktest, _profile, _tests & tools/test-harness) into
+    the -testsuite package as test-results.tar.gz
+    - update debian/rules
+  * Temporarily disable some tests depending on UTF-8 at build time
+    - add debian/patches/testsuite_skip_tests_depending_on_utf8.patch
+    - update debian/patches/series
+  * Make the -dev package conflicts with xulrunner-1.9.2-dev as we now have
+    unversionned pkgconfig files
+    - update debian/control
+  * Fix permissions in the -dev package (LP: #303940)
+    - update debian/rules
+  * As some files are only available on some arches, introduce a mechanism
+    to create *.install.arch files dynamically allowing includes
+    - update debian/rules
+  * Use a slightly shorter path in the install files to make the merge
+    with the 1.9.2 branch easier
+    - update debian/*.install, debian/*.install.*.pp
+  * Move header files from JIT to arch specific install files as they are not
+    available on 64bit platforms
+    - update debian/xulrunner-1.9.1-dev.install
+    - add debian/xulrunner-1.9.1-dev.install.i386.pp
+    - add debian/xulrunner-1.9.1-dev.install.lpia.pp
+  * Fix preinst script to better handle the /etc/gre.d clean-up
+    - update debian/xulrunner-1.9.1.preinst.in
+  * Bump Standards-Version to 3.8.0
+    - update debian/control
+  * Install missing files detected by 'compare'
+    - update debian/xulrunner-1.9.1.install
+  * Move mozclient project files from mozilla-descripts to this package
+    and update the upstream branch now that it has moved to 1.9.2
+    - add debian/mozclient/xulrunner-1.9.1.conf
+    - add debian/mozclient/xulrunner-1.9.1.mk
+    - update debian/rules
+  * Add support for Python xpcom and dom. Fixes contributed by Alexander
+    - update debian/rules
+    - add debian/patches/bzXXX_fix_python_dom_hidden_symbols.patch
+    - add debian/patches/bzXXX_fix_python_dom_pyxultest.patch
+    - add debian/patches/bzXXX_fix_python_xpcom.patch
+    - update debian/patches/series
+  * Update diverged patches:
+    - update debian/patches/bz467766_att351173-dont-reset-user-prefs-on-upgrade.patch
+    - update debian/patches/bzXXX_pc_honour_system_nspr_nss.patch
+    - update debian/patches/system_path_launch_child.patch
+
+ -- Fabien Tassin <fta@ubuntu.com>  Wed, 21 Jan 2009 20:17:32 +0100
+
+xulrunner-1.9.1 (1.9.1~b2+build1+nobinonly-0ubuntu3) jaunty; urgency=low
+
+  New upstream release: 1.9.1 beta 2 from FIREFOX_3_1b2_BUILD1 (LP: #274187)
+
+  [ Alexander Sack <asac@ubuntu.com> ]
+  * add patch to eliminate long deprecated GTK_CHECK type macros from
+    gtkmozembed code; instead we use the current G_TYPE/OBJECT macros
+    - add debian/patches/bz461277_att344402_eliminate_deprecated_gtk_type_macros.patch
+    - update debian/patches/series
+  * we explicitly use -O0 -g as optimize flags for |noopt| builds
+    - update debian/rules
+  * drop patches superseeded by upstream fix
+    - delete debian/patches/ARMEL_Wno_error_in_network_cookie_src.patch
+    - update debian/patches/series
+  * polish "save password" prompt patch for upstream submission and send
+    upstream
+    - rename and update debian/patches/bzXXX_attXXX_fix_remember_password_for_embedders_without_branding.patch
+      => bz466923_att350251_password_prompt_branding_fallback.patch
+
+  [ Fabien Tassin <fta@ubuntu.com> ]
+  * Resurrect the -dbg package, at least until bug 156575 is fixed
+    - update debian/control
+  * Add a version to pkg-config files so the -dev package could coexist with
+    xulrunner 1.9
+    - add debian/patches/install_pkgconfig_files_with_version.patch
+    - update debian/patches/series
+  * Drop 'Breaks' from xulrunner-1.9.1 and drop the xulrunner-dev meta package
+    - update debian/control
+  * Drop --enable-webservices and --enable-safe-browsing
+    - update debian/rules
+  * Build DEB_MOZ_EXTENSIONS=default
+    - update debian/rules
+  * Update requirement for system sqlite3 to >= 3.6.2
+    - update debian/rules
+  * Update requirement for system nspr to >= 4.7.3 and for nss to >= 3.12.2
+    - update debian/rules
+  * Drop support for venkman and dom-inspector, no longer in the tree
+    - update debian/rules
+    - drop debian/patches/bz428848_att319775_fix_venkman_chrome_access.patch
+    - drop debian/patches/rename_venkman_addon.patch
+    - drop debian/patches/dom_inspector_support_for_prism.patch
+    - update debian/patches/series
+  * Fix FTBFS introduced by cairo 1.8.4 which is now built with directfb
+    by default.
+    - add debian/patches/fix_ftbfs_with_cairo_fb.patch
+    - update debian/patches/series
+  * Update EM_TRANSLATION_MAX_VERSION to match xulrunner version
+    - update debian/rules
+  * Add libasound2-dev to Build-Depends for the new HTML5 <video> tag
+    - update debian/control
+  * Run autoconf in js/src now that SpiderMonkey has its own build system
+    - update debian/rules
+  * Make the prerm script a .in file as we need to pass some variables
+    - rename debian/xulrunner-1.9.1.prerm => debian/xulrunner-1.9.1.prerm.in
+    - update debian/rules
+  * Drop obsolete /etc/gre.d files generated by this package
+    - update debian/xulrunner-1.9.1.preinst
+  * Prevent the build system to be exported twice
+    - update debian/rules
+  * Drop to in-source hunspell when system hunspell is not at least 1.2.*.
+    This is needed for hardy.
+    - update debian/rules
+  * Update patch series file missing bz466923_att350251_password_prompt_branding_fallback.patch
+    - update update debian/patches/series
+  * Remove patches applied upstream
+    - drop debian/patches/bz429747_att317495+move_hunspell_1.2.patch
+    - drop debian/patches/bz462467_att345635_system_nspr_and_spidermonkey.patch
+    - drop debian/patches/installer_use_stdout_for_missing_files.patch
+    - drop debian/patches/bzXXX_gre_autoreg.patch
+    - drop debian/patches/bz412610_att335369_realpath_overflow.patch
+    - drop debian/patches/bz233371_att297343_fix_outofscreen_embed_tooltip.patch
+    - drop debian/patches/bz436133_att322801.patch
+    - drop debian/patches/bzXXX_autoconfig_in_gre.patch
+    - drop debian/patches/bz372826_att337031_about_style.patch
+    - drop debian/patches/bz368428_attachment_308130.patch
+    - drop debian/patches/bzXXX_sysplugin_support.patch
+    - update debian/patches/series
+  * Update diverged patches:
+    - update debian/patches/bzXXX_plugin_for_mimetype_pref.patch
+    - update debian/patches/bzXXX_attXXX_fix_remember_password_for_embedders_without_branding.patch
+    - update debian/patches/protect_tests_by_ifdefs.patch
+    - update debian/patches/bzXXX_pc_honour_system_nspr_nss.patch
+    - update debian/patches/install_pkgconfig_files_with_version.patch
+    - update debian/patches/bzXXX_sysplugin_support_xre_part.patch
+    - update debian/patches/bzXXX_gre_extension_plugin_support.patch
+    - update debian/patches/add_syspref_dir.patch
+    - update debian/patches/system_path_launch_child.patch
+
+ -- Fabien Tassin <fta@ubuntu.com>  Fri, 28 Nov 2008 20:52:50 +0100
+
+xulrunner-1.9 (1.9.0.4+nobinonly-0ubuntu1) jaunty; urgency=low
+
+  * new stability/security update FIREFOX_3_0_4_RELEASE (v1.9.0.4)
+    - see USN-667-1
+
+  [ Alexander Sack ]
+  * adjust patches
+    - update debian/patches/bz368428_attachment_308130.patch
+  * (hackily) fix build on armel by disabling -Werror in network/cookie/src;
+    - add debian/patches/ARMEL_Wno_error_in_network_cookie_src.patch
+    - update debian/patches/series
+
+  [ Fabien Tassin ]
+  * Improve convergence with the 1.9.1 branch by removing more
+    hardcoded 1.9
+    - rename debian/xulrunner-1.9.postinst => debian/xulrunner-1.9.postinst.in
+    - rename debian/xulrunner-1.9.prerm => debian/xulrunner-1.9.prerm.in
+    - update debian/rules
+  * Drop obsolete /etc/gre.d files generated by this package
+    - add debian/xulrunner-1.9.preinst.in
+    - update debian/rules
+
+ -- Alexander Sack <asac@ubuntu.com>  Sun, 16 Nov 2008 17:05:19 +0100
+
+xulrunner-1.9 (1.9.0.3+nobinonly-0ubuntu1) intrepid; urgency=low
+
+  * Rename upstream tarball: 1.9.0.3 - no change upload
+
+ -- Fabien Tassin <fta@ubuntu.com>  Mon, 13 Oct 2008 16:10:34 +0200
+
+xulrunner-1.9 (1.9.0.3+build1+nobinonly-0ubuntu2) intrepid; urgency=low
+
+  regression fix release (v1.9.0.3 build1)
+  - see USN-645-3
+
+  * fix LP: #270429 - [MASTER] passwords lost from 3.0.1 to 3.0.2; we drop
+    the prepatch shipped in previous package as this was applied upstream now.
+    - delete debian/patches/bz454708_att340035.patch
+    - update debian/patches/series
+
+ -- Alexander Sack <asac@ubuntu.com>  Thu, 25 Sep 2008 17:05:45 +0200
+
+xulrunner-1.9 (1.9.0.2+build6+nobinonly-0ubuntu2) intrepid; urgency=low
+
+  * fix LP: #270429 - [MASTER] passwords lost from 3.0.1 to 3.0.2; we prepatch
+    the upstream fix for bz454708
+    - add debian/patches/bz454708_att340035.patch
+    - update debian/patches/series
+
+ -- Alexander Sack <asac@ubuntu.com>  Wed, 24 Sep 2008 19:33:05 +0200
+
+xulrunner-1.9 (1.9.0.2+build6+nobinonly-0ubuntu1) intrepid; urgency=low
+
+  Security/Stability update (v1.9.0.2 build6)
+  - see USN-645-1
+
+  [ Alexander Sack <asac@ubuntu.com> ]
+  * preferred plugins are now matched by pref filename it is just a substring
+    of the plugins fullname/fullpath. Otherwise the plugin alternative config
+    dialog cannot use the filename it gets from navigator.plugins[x].filename
+    when plugin.expose_full_path is false.
+    - update debian/patches/bzXXX_plugin_for_mimetype_pref.patch
+  * fix LP: #269580 - ubufox fails to restart firefox on major version
+    upgrades; new patch that makes toolkit/xre/ LaunchChild also try
+    /usr/bin/`basename $0` before using $0 to launch the child process
+    - add debian/patches/system_path_launch_child.patch
+    - update debian/patches/series
+
+  [ Fabien Tassin <fta@ubuntu.com> ]
+  * Fix broken symlink for system-grepref.js in /etc/xulrunner-$(DEB_MOZ_VERSION)
+    - update debian/rules
+  * Improve way to fix permissions for images, text and source files
+    - update debian/rules
+  * Use new style/look for "about:" pages
+    - add debian/patches/bz372826_att337031_about_style.patch
+    - update debian/patches/series
+
+ -- Fabien Tassin <fta@ubuntu.com>  Tue, 23 Sep 2008 17:38:00 +0200
+
+xulrunner-1.9 (1.9.0.2+build3+nobinonly-0ubuntu1) intrepid; urgency=low
+
+  [ Sasa Bodiroza ]
+  * In debian/rules:
+    - Set 644 chmod to png files (LP: #252793) [Patch by Paolo Naldini]
+
+  [ Fabien Tassin ]
+  * improve create-build-system.sh to detect build-tree directory
+    when embedded tarball is used. Fix un-escaped variables.
+    Create build-system.tar.gz in the debian directory to prevent
+    cdbs to check and unpack it during the build
+    - update debian/create-build-system.sh
+  * Fix variables when an embedded tarball is used
+    - update debian/rules
+  * Fix buffer overflow in realpath() at runtime and drop -U_FORTIFY_SOURCE
+    from CPPFLAGS (LP: #263014)
+    - add debian/patches/bz412610_att335369_realpath_overflow.patch
+    - update debian/patches/series
+
+  [ Alexander Sack <asac@jwsdot.com> ]
+  * introduce preferred plugins by mime-type experimental feature;
+    you can now set a pref to explicitly select a plugin to serve a particilar
+    mime-type; patch contains further documentation.
+    - add debian/patches/bzXXX_plugin_for_mimetype_pref.patch
+    - update debian/patches/series
+  * drop patches applied upstream
+    - drop bz120380_att326044.patch (fixed by bz442629)
+    - update debian/patches/series
+
+ -- Fabien Tassin <fta@sofaraway.org>  Tue, 2 Sep 2008 11:54:00 +0200
+
+xulrunner-1.9 (1.9.0.1+build1+nobinonly-0ubuntu1) intrepid; urgency=low
+
+  * LP: #247494 - new upstream stability/security release (v1.9.0.1 build1)
+    - see USN-626-1
+
+  [ Fabien Tassin <fta@sofaraway.org>]
+  * Add a build-system for xulrunner application inside the SDK.
+    mozilla-devscripts is able to make use of this
+    - add debian/create-build-system.sh
+    - update debian/rules
+  * Rename the ld.so.conf.d file to xulrunner-1.9.conf as it seems
+    extension matters
+    - update debian/rules
+    - update debian/xulrunner-1.9.postinst
+  * Get DEB_MOZ_VERSION and DEB_MOZ_VERSION from changelog and make more use
+    of variables to make the merge with the 1.9.1 branch easier
+    - update debian/rules
+    - update debian/xulrunner-1.9.postinst
+    - update debian/xulrunner-1.9.postrm
+  * Make EM_TRANSLATION_VERSION follow upstream version now that strings are
+    hard frozen and bump EM_TRANSLATION_MAX_VERSION to 1.9.0.*
+    - update debian/rules
+
+  [ Alexander Sack <asac@ubuntu.com> ]
+  * borrow lockPref patch from debian xulrunner (Debbugs: #469020)
+    - add debian/patches/bzXXX_deb469020_lockPref_everywhere.patch
+    - update debian/patches/series
+  * Debian compatibility patch that is supposed to make xulrunner also
+    consider /usr/lib/mozilla/plugins/ in sid as of xulrunner 1.9~rc2-4
+    - add debian/patches/bzXXX_sysplugin_support.patch
+    - update debian/patches/series
+  * prepatch fix for bmo: #120380 - 'needsterminal flag in mailcap
+    must be respected'
+    - add debian/patches/bz120380_att326044.patch
+    - update debian/patches/series
+  * add xre part missed by debian for sysplugin support
+    - add debian/patches/bzXXX_sysplugin_support_xre_part.patch
+    - update debian/patches/series
+  * drop patches applied upstream
+    - delete debian/patches/bz428848_att319775_fix_venkman_chrome_access.patch
+    - update debian/patches/series
+  * housekeeping for debian/patches directory; remove obsolete patches from
+    debian/patches/ and drop commented patches from series
+    - delete debian/patches/bz384304_fix_recursive_symlinks.patch
+    - delete debian/patches/bzr423334_att310581_leak_initparser.patch
+    - debian/patches/drop_bz418016.patch
+    - update debian/patches/series
+  * (disabled in intrepid) fix "jemalloc not enabled in --with-xul-sdk= builds": we
+    fix this by building libjemalloc as a static lib and linking xulrunner-bin and
+    xulrunner-stub against it.
+    - add debian/patches/jemalloc_in_xul.patch
+    - add debian/patches/jemalloc_static.patch
+    - update debian/patches/series
+    - update debian/rules
+    - update debian/xulrunner-1.9.postinst
+  * link nss/nspr include directories to xulrunner-1.9 sdk in order to
+    allow upstream extensions to be built against ubuntu xulrunner.
+    - add debian/xulrunner-1.9-dev.links
+  * add empty xulrunner-dev package to ease sync/merge tasks for ubuntu
+    by providing the package name used by debian.
+    - update debian/control
+  * fix makefile style variable eval in xulrunner-1.9 prerm script and use
+    proper sh'ish style
+    - update debian/xulrunner-1.9.prerm
+  * add code/debug-support to disable -Bsymbolic-functions linkage - but keep
+    it commented by default
+    - update debian/rules
+  * hold back upgrade until firefox 3.0.1 is available; for that, we add a
+    Breaks: firefox-3.0 (<< 3.0.1) to xulrunner-1.9 binary package 
+    - update debian/control
+  * fix LP: #247132 - The Prism Refractor Extension (v0.2) causes file
+    downloads to kill firefox 3; we fix this by introducing a NULL check
+    in our bz368428 "XUL FastLoad cache corruption" patch
+    - update debian/patches/bz368428_attachment_308130.patch
+
+ -- Alexander Sack <asac@ubuntu.com>  Fri, 18 Jul 2008 17:36:30 +0200
+
+xulrunner-1.9 (1.9+nobinonly-0ubuntu2) intrepid; urgency=low
+
+  * New upstream release 1.9 RC2 (LP: #237690)
+
+  [ Alexander Sack <asac@ubuntu.com> ]
+  * Fix LP: #236266 - "Build Failure on HPPA architecture" by applying patch
+    from bugzilla https://bugzilla.mozilla.org/show_bug.cgi?id=436133
+    - add debian/patches/bz436133_att322801.patch
+    - update debian/patches/series
+  * drop image scaling patches - previously applied and finally superseeded
+    upstream to fix Vista bug https://bugzilla.mozilla.org/show_bug.cgi?id=434157
+    - delete debian/patches/bz394103_dont_scale_images.patch
+    - delete debian/patches/bz394103_scale_images_for_192+dpi.patch
+    - update debian/patches/series
+  * update patch for Bug 368428 – "XUL FastLoad cache corruption when
+    application running"; fix deadlock by using "antiLockZipGrip".
+    (LP: #236984)
+    - update debian/patches/bz368428_attachment_308130.patch
+
+  [ Fabien Tassin <fta@sofaraway.org> ]
+  * drop synchronous = NORMAL patch, now applied upstream
+    - delete debian/patches/bz421482_att320806_synchronous_NORMAL_for_storage_connections.patch
+    - update debian/patches/series
+  * Fix regression with venkman accessing chrome by applying patch
+    from bugzilla https://bugzilla.mozilla.org/show_bug.cgi?id=428848
+    - add debian/patches/bz428848_att319775_fix_venkman_chrome_access.patch
+    - update debian/patches/series
+  * Touch .autoreg in postinst with the exact GRE version as the glob is
+    causing troubles when multiple xulrunner are installed
+    - update debian/xulrunner-1.9.postinst
+    - update debian/xulrunner-1.9-gnome-support.postinst
+  * Don't install a libsqlite3.so.0 symlink if we are using system sqlite
+    - update debian/rules
+
+ -- Fabien Tassin <fta@sofaraway.org>  Tue, 10 Jun 2008 12:51:56 +0200
+
+xulrunner-1.9 (1.9~rc1+nobinonly-0ubuntu2) intrepid; urgency=low
+
+  * Fix FTBFS with hunspell 1.2 by splitting extensions/spellcheck/hunspell/src
+    to separate the hunspell library from the XPCOM glue (LP: #233922)
+    - add debian/patches/bz429747_att317495+move_hunspell_1.2.patch
+    - update debian/patches/series
+  * Drop irc (chatzilla) from DEB_MOZ_EXTENSIONS, we never packaged it
+    from there anyway
+    - update debian/rules
+  * cherry-pick 1.9b5 to 1.9rc1 upgrade Breaks: yelp (<< 2.22.1-0ubuntu2.8.04.1),
+    midbrowser (<< 0.3.0rc1), devhelp (<< 0.19-1ubuntu1.8.04.1)
+    - update debian/control
+
+ -- Fabien Tassin <fta@sofaraway.org>  Mon, 26 May 2008 14:47:22 +0200
+
+xulrunner-1.9 (1.9~rc1+nobinonly-0ubuntu1) intrepid; urgency=low
+
+  * new upstream release: xulrunner-1.9 RC1 (LP: #233922)
+
+  [ Fabien Tassin <fta@sofaraway.org> ]
+  * Bump EM_TRANSLATION_VERSION and EM_TRANSLATION_{MIN,MAX}_VERSION to 1.9
+    and clean-up the code to avoid unnecessary complexity
+    - update debian/rules
+  * Drop patch applied upstream
+    - drop debian/patches/bz423060_att312807_fix_rss_subscription.patch
+    - drop debian/patches/bz425814_att315081.patch
+    - drop debian/patches/inspector_maxversion_bump.patch
+    - update debian/patches/series
+  * Update diverges patches
+    - update debian/patches/bz394103_dont_scale_images.patch
+    - update debian/patches/bzXXX_gre_extension_plugin_support.patch
+    - update debian/patches/dom_inspector_support_for_prism.patch
+  * Build with system bzip2
+    - update debian/rules
+  * Workaround multiple crashes in Intrepid (at least 3 in realpath()) caused
+    by Intrepid shipping gcc 4.3 with -D_FORTIFY_SOURCE=2 by default.
+    Set CPPFLAGS to -U_FORTIFY_SOURCE
+    - update debian/rules
+  * Drop LDFLAGS workaround now that jemalloc is no longer a static lib.
+    We still ship jemalloc as a shared lib
+    - udate debian/rules
+  * Set synchronous = NORMAL by default for storage to avoid excessive fsync.
+    It could be changed using the toolkit.storage.synchronous preference using
+    values of 0 (OFF), 1 (NORMAL), and 2 (FULL)
+    - add debian/patches/bz421482_att320806_synchronous_NORMAL_for_storage_connections.patch
+    - update debian/patches/series
+
+  [ Alexander Sack <asac@ubuntu.com> ]
+  * remove cherry-pick for LP: #215728 - "excess disk IO when updating the
+    url-classifier" - applied upstream
+    - drop debian/patches/bz430530_attachment_318939.patch
+    - update debian/patches/series
+  * and cut out the "ship urlclassifier. settings in toolkit" part of the
+    patch to a separate one, targetted for upstream
+    - add debian/patches/bzXXX_urlclassifier_prefs_in_toolkit.patch
+    - update debian/patches/series
+  * prepatch from bugzilla fix for "Bug 368428 – XUL FastLoad cache corruption
+    when application running while upgrading"
+    - add debian/patches/bz368428_attachment_308130.patch
+    - update debian/patches/series
+  * 1.9b5 to 1.9rc1 upgrade Breaks: epiphany-gecko (<< 2.22.1.1-0ubuntu1.8.04.1)
+    - update debian/control
+
+ -- Fabien Tassin <fta@sofaraway.org>  Wed, 21 May 2008 14:38:00 +0200
+
+xulrunner-1.9 (1.9~b5+nobinonly-0ubuntu4) intrepid; urgency=low
+
+  * fix LP: #215728 - "excess disk IO when updating the url-classifier"; we
+    increase cache size of sqlite database and better align page size.
+    Cherry-picking and backporting upstream fix from bmo#430530;
+    other changes vs. upstream: we move default pref for cache size from
+    browser/ to toolkit/
+    - add debian/patches/bz430530_attachment_318939.patch
+    - update debian/patches/series
+  * don't use gcc-4.2/g++-4.2 and dont depend on that package accordingly
+    - update debian/rules
+    - update debian/control
+
+ -- Alexander Sack <asac@ubuntu.com>  Sat, 03 May 2008 01:08:17 +0200
+
+xulrunner-1.9 (1.9~b5+nobinonly-0ubuntu3) hardy; urgency=low
+
+  * j2re1.4 is the package that ships the plugin, not the mozilla-plugin
+    package. fixing conflicts for LP: #214468.
+    - update debian/control 
+
+ -- Alexander Sack <asac@ubuntu.com>  Tue, 15 Apr 2008 15:16:07 +0200
+
+xulrunner-1.9 (1.9~b5+nobinonly-0ubuntu2) hardy; urgency=low
+
+  * fix "firefox-3.0 gets removed on dist-upgrade when firefox-3.0 build is
+    not available on mirror". We deal with this situation by dropping the
+    Break: field from xulrunner-1.9 and adding upper bounds on xulrunner-1.9
+    to firefox-3.0 binary.
+    - update debian/control
+
+  * improve translation support by shipping a crafted install.rdf. We ship a
+    template install.rdf.in in debian/translation-support and replace the
+    em:{version,maxVersion,minVersion} during build. For now those versions
+    are maintained manually because we need maintainer attention on upgrades
+    considering the upstream string freeze. To increase failsafeness, we fail
+    the build if the version appears to be out of sync with the upstream
+    version in the post-install target. The install.rdf is finally added to
+    the zip file in the binary-post-install rule used to produce the
+    en-US.xpi.
+    - add debian/translation-support/install.rdf.in
+    - update debian/rules
+
+  * fix "USE_SYSTEM_NSS checks nspr version, not nss"
+    - update debian/rules
+
+  * fix "firefox resets user prefs if the user sets a preference that is equal
+    to the default shipped by firefox/xulrunner that was overloaded with an
+    extension default (aka ubufox). (LP: #203306). Patch ported from ffox 2
+    package.
+    - add debian/patches/bzXXX-dont-reset-user-prefs-on-upgrade.patch
+    - update debian/patches/series
+
+  * fix "broken wizard binding with javascript policies in place" -
+    For particular, this fixes "plugin installer wizard broken with adblock or
+    noscript installed" (LP: #215672). Patch taken from bugzilla 425814
+    - add debian/patches/bz425814_att315081.patch
+    - update debian/patches/series
+
+  * conflict with removed from archive package j2re1.4-mozilla-plugin as it
+    causes crashes in latest gecko code (LP: #214468)
+    - update debian/control
+
+ -- Alexander Sack <asac@ubuntu.com>  Tue, 15 Apr 2008 11:59:05 +0200
+
+xulrunner-1.9 (1.9~b5+nobinonly-0ubuntu1) hardy; urgency=low
+
+  [ Fabien Tassin <fta@sofaraway.org> ]
+  * Drop patch applied upstream
+    - drop debian/patches/bz333308_attXXXX_make_clean_cleaner.patch
+    - update debian/patches/series
+  * Set LDFLAGS so dpkg-buildpackage doesn't use -Wl,-Bsymbolic-functions
+    - update debian/rules
+  * Add support for a defaults/syspref directory containing system wide
+    preferences that will not be silently overwritten at each upgrade
+    (LP: #207281, #203538).
+    It works for both libxul apps such as firefox 3 and xulrunner
+    applications such as prism
+    - add debian/patches/add_syspref_dir.patch
+    - update debian/patches/series
+  * Fix broken RSS subscription
+    - add debian/patches/bz423060_att312807_fix_rss_subscription.patch
+    - update debian/patches/series
+  * Bump depends to libnspr4-dev >= 4.7.1~beta2 and libnss3-dev >= 3.12.0~beta3
+    - update update debian/control
+  * Hook up mozilla-devscript's compare module to binary-post-install
+    - update debian/rules
+
+  [ Alexander Sack <asac@ubuntu.com> ]
+  * switch to in-source jpeg to fix rendering issues at zoom levels
+    (LP: #182038); this measure should give us some performance
+    improvements.
+    - update debian/rules
+  * make pref extensions read defaults/autoconfig from NS_GRE_DIR instead
+    of NS_APP_DEFAULTS_50_DIR. If it turns out to be a bad decision, we should
+    reconsider this patch.
+    - add debian/patches/bzXXX_autoconfig_in_gre.patch
+    - update debian/patches/series
+  * install system-greprefs in /etc/xulrunner-1.9/ and create the proper
+    link in $pkglibdir/greprefs to it (LP: #139543)
+    - add debian/system-greprefs.js
+    - update debian/rules
+  * ship versioned link libsqlite3.so.0 => libsqlite3.so in $pkglibdir to
+    allow liferea workaround for LP: #203413 - "Liferea creates many corrupt
+    copies of places.sqlite in" by setting LD_LIBRARY_PATH properly
+    - update debian/rules
+  * ship .autoreg file in pkglibdir to allow autoreg touches by
+    plugins/extensions et al.
+    - update debian/rules
+  * touch .autoreg in xulrunner-1.9.postinst and
+    xulrunner-1.9-gnome-support.postinst
+    - update debian/xulrunner-1.9.postinst
+    - add debian/xulrunner-1.9-gnome-support.postinst
+  * hook in lp-export-xpi.mk from mozilla-devscript to export en-US
+    translation templates to debian/lp-export-xpis/; in turn, make
+    mozilla-devscripts a hard build-depends
+    - update debian/rules
+    - update debian/control
+  * consider NS_GRE_DIR/.autoreg to trigger component registry upgrades.
+    - add debian/patches/bzXXX_gre_autoreg.patch
+    - update debian/control/series
+  * Fix "Dom Inspector not compatible" by bumping maxVersion field in
+    extension install.rdf
+    - add debian/patches/inspector_maxversion_bump.patch
+    - update debian/patches/series
+  * Fix xulrunner side for bug "firefox needs restart after plugin install to
+    detect and activate them"; we scan for new plugins in GRE at startup runtime
+    - update debian/patches/bzXXX_gre_extension_plugin_support.patch
+
+ -- Fabien Tassin <fta@sofaraway.org>  Fri, 04 Apr 2008 23:11:10 +0200
+
+xulrunner-1.9 (1.9~b4+nobinonly-0ubuntu1) hardy; urgency=low
+
+  * new upstream release 1.9~b4 fixes:
+    - LP: #194486 - "printing in Firefox 3 Beta 3 is broken"
+    - LP: #192505 - "Where's my home button?"
+    - LP: #44062  - "Firefox allows cookies to be set for second-level
+      domain hierarchies"
+    - LP: #181575 - "pressing Enter in URL bar selects mouse hover target
+      in substring-search pop-down"
+
+  [ Fabien Tassin <fta@sofaraway.org> ]
+  * Drop patches applied upstream
+    - drop debian/patches/bz344818_cairo_xrender.patch
+    - drop debian/patches/bzXXX_fix_pyxpcom_build_failure.patch
+  * Update diverged patch:
+    - update debian/patches/dom_inspector_support_for_prism.patch
+  * Add support for system hunspell
+    - update debian/rules
+  * Add optional support for system sqlite3 (we need >= 3.5 not in hardy)
+    - update debian/rules
+  * Update clean rule to make it simpler and more friendly with
+    mozilla-devscripts
+    - update debian/rules
+  * Drop DEB_AUTO_UPDATE_DEBIAN_CONTROL cdbs variable completely. It was
+    wrongly set to zero
+    - update debian/rules
+  * Update clean rule now that Mozilla bug 333308 has landed.
+    To prevent a bug in cdbs where patches are unapplied before distclean
+    is performed, set DEB_MAKE_CLEAN_TARGET to $(NULL) and add call
+    distclean ourselves before cdbs files are included
+    - update debian/rules
+  * There're still some leftovers after distclean despite latest
+    Mozilla bug 333308 patch. Fix it once again and report it upstream
+    - add debian/patches/bz333308_attXXXX_make_clean_cleaner.patch
+    - update debian/patches/series
+  * Drop obsolete comment for extensions
+    - update debian/rules
+  * Stop build-tree/mozilla/README to be shipped as a doc by setting
+    cdbs DEB_INSTALL_DOCS_ALL to $(NULL)
+    - update debian/rules
+  * Drop obsolete TODO file
+    - drop debian/TODO
+
+  [ Alexander Sack <asac@ubuntu.com> ]
+  * fix "remember password" dialog for embedders that don't provide
+    a branding chrome
+    - add debian/patches/bzXXX_attXXX_fix_remember_password_for_embedders_without_branding.patch
+    - update debian/patches/series
+  * fix LP: #175904 "Firefox 3.0 makes everything annoyingly huge" by not
+    scaling images based on dpi.
+    - add debian/patches/bz394103_dont_scale_images.patch
+    - update debian/patches/series
+  * add alternative patch for LP: #175904 "Firefox 3.0 makes everything
+    annoyingly huge" by scaling images for 192dpi, 288dpi, etc. instead
+    of 142dpi, 238dpi and so on. (this patch is not applied atm and is
+    included for testing purpose)
+    - add debian/patches/bz394103_scale_images_for_192+dpi.patch
+  * add libsqlite3-dev to Build-Depends in order to effectively enable
+    optional system sqlite feature on buildd's with sqlite > 3.5
+    - update debian/control
+  * bump build requirements on nspr and nss to >= 4.7.0~1.9b4 and
+    >= 3.12.0~1.9b4 respectively
+    - update debian/control
+
+ -- Alexander Sack <asac@ubuntu.com>  Tue, 11 Mar 2008 02:06:46 +0100
+
+xulrunner-1.9 (1.9~b3+nobinonly-0ubuntu3) hardy; urgency=low
+
+  * add two patches for mozilla bug 394103 "All elements are HUGE" and enable
+    bz394103_dont_scale_images.patch for now (LP: #178558)
+    - add debian/patches/bz394103_dont_scale_images.patch
+    - add debian/patches/bz394103_scale_images_for_192+dpi.patch
+    - update debian/patches/series
+
+ -- Alexander Sack <asac@ubuntu.com>  Mon, 25 Feb 2008 11:45:00 +0100
+
+xulrunner-1.9 (1.9~b3+nobinonly-0ubuntu2) hardy; urgency=low
+
+  * add Breaks: firefox-3.0 (<< 3.0~b3) to fix transition breakage
+    - update debian/control
+
+ -- Alexander Sack <asac@ubuntu.com>  Thu, 14 Feb 2008 16:51:05 +0100
+
+xulrunner-1.9 (1.9~b3+nobinonly-0ubuntu1) hardy; urgency=low
+
+  * release FIREFOX_3_0b3_RELEASE
+
+  [ Alexander Sack ]
+  * submit patch that ships xpcshell to bugzilla
+    - rename debian/patches/ship_xpcshell.patch =>
+             debian/patches/bz410617_att295212_ship_xpcshell.patch
+    - update debian/patches/series
+  * fix tooltip in epiphany: previously displayed out of screen bounds
+    (LP: #37507)
+    - add debian/patches/bz233371_att297343_fix_outofscreen_embed_tooltip.patch
+    - update debian/patches/series
+  * use default upstream gcc tweaks for improved performance - especially of the
+    javascript engine
+    - update debian/rules
+  * update global extension/plugin patch to apply cleanly against latest code
+    - update debian/patches/bzXXX_gre_extension_plugin_support.patch
+  * fix pyxpcom build failure introduced by recent commit
+    - add debian/patches/bzXXX_fix_pyxpcom_build_failure.patch
+    - update debian/patches/series
+  * add distro independent global install locations for extensions,
+    /usr/lib/mozilla/extensions and /usr/share/mozilla/extensions
+    - update debian/xulrunner-1.9.dirs
+  * support embedded tarball layout when either there is a *.tar.bz2 in orig tarball
+    or if DEBIAN_MOZCLIENT_EMBEDDED is not unset (you will need this to produce embedded
+    tarballs during |get-orig-source|
+    - update debian/rules
+  * bump minimum libnss3-dev build requirements to >= 3.12.0~1.9b3
+    - update debian/control
+  * bump minimum libnspr4-dev build requirements to >= 4.7.0~1.9b3
+    - update debian/control
+
+  [ Fabien Tassin ]
+  * Drop patches applied upstream
+    - drop debian/patches/bz410617_att295212_ship_xpcshell.patch
+    - drop debian/patches/bz404634_att294921.patch
+    - drop debian/patches/bz386610_python2.5_ftbfs_amd64.patch
+    - drop debian/patches/bz373918_att295042.patch
+    - drop debian/patches/bz408062_unstable_pc.patch
+    - drop debian/patches/bz384304_fix_recursive_symlinks.patch
+    - update debian/patches/series
+  * Refresh diverged patches:
+    - update debian/patches/bzXXX_pc_honour_system_nspr_nss.patch
+    - update debian/patches/rename_venkman_addon.patch
+    - update debian/patches/bz344818_cairo_xrender.patch
+  * Install links for all .so libs in the -dev package
+    - update debian/patches/dont_install_so_in_dev.patch
+  * Bump gtk requirement to 2.12 as per Mozilla bug 412432
+    - update debian/control
+  * Add #DEBHELPER# token to postinst/prerm scripts
+    - update debian/xulrunner-1.9.{postinst,prerm}
+  * Install previously missed libdbusservice.so
+    - update debian/xulrunner-1.9.install
+  * Update venkman patch to also rename locales
+    - update debian/patches/rename_venkman_addon.patch
+  * Bump requirement for system cairo to >= 1.5.8 as we now need
+    the newly added cairo_path_extents()
+    - update debian/rules
+  * Include mozilla-devscripts file using -include so ifneq could be omitted
+    - update debian/rules
+  * Fix missing .so symlinks regression
+    - update debian/patches/dont_install_so_in_dev.patch
+
+ -- Alexander Sack <asac@ubuntu.com>  Wed, 13 Feb 2008 11:47:21 +0100
+
+xulrunner-1.9 (1.9~b3~cvs20080101t1000+nobinonly-0ubuntu1) hardy; urgency=low
+
+  * happy new year release for hardy (1.9b3 pre, CVS 20080101t1000) features:
+    - use system-cairo (LP: #152210, LP: #164640)
+    - use system-nspr/nss (LP: #177280)
+    - proper pkg-config files for -unstable and system-nspr/nss (see below)
+    - backed-out microb changes (back to square zero)
+    - fix various embedding issues (see below)
+
+  [ Fabien Tassin ]
+  * Disable bz404634_att290373.patch and bz373196_att281782.patch until trunk
+    is back in shape after the MicroB mass back out (See MozBug #408238)
+    - update debian/patches/series
+  * new upstream snapshot (1.9b3 pre, CVS 20071228t0918)
+  * Drop patch committed upstream:
+    - drop debian/patches/bz287150_att291740_hppa_fix.patch
+    - update debian/patches/series
+  * Add support for mozilla-devscripts
+    - update debian/control
+    - update debian/rules
+
+  [ Alexander Sack ]
+  * drop patches for mozilla bug #404634 completely to prepare landing of
+    improved patch:
+    - drop debian/patches/bz404634_att290305.patch
+    - drop debian/patches/bz404634_att290373.patch
+    - update debian/patches/series
+  * land improved patch for mozilla bug #404634 that properly disables
+    url-classifier if no profile is setup and makes nsUrlClassifierDBService
+    fall-back to NS_APP_USER_PROFILE_50_DIR if NS_APP_USER_PROFILE_LOCAL_50_DIR
+    is not provided by embedding app.
+    - add debian/patches/bz404634_att294921.patch
+    - update debian/patches/series
+  * remove bz373196_att281782.patch completely from tree as it tackled a MICROB
+    regression, which should now be fixed.
+  * add %FULL_NSPR_CFLAGS% to libxul-embedding* Cflags .pc files to fix
+    builds of embedders that link against system-nspr enabled xul
+    - update debian/patches/bzXXX_pc_honour_system_nspr_nss.patch
+  * do not export zlib headers with bogus symbols during make install if
+    system zlib is used. This breaks embedders and happens if MOZ_INSTALLER
+    is enabled.
+    - add debian/patches/bzXXX_no_zlib_export_if_native.patch
+    - update debian/patches/series
+  * drop mozilla-devscripts from build-depends as its not needed for the
+    actual package build process. Take care that debian/rules disables the
+    mozilla-devscripts include if it doesn't exist
+    - update debian/control
+    - update debian/rules
+  * add gtkmozembed_internal.h symbols to glue (mozilla bug 373918):
+    - add debian/patches/bz373918_att295042.patch
+    - update debian/patches/series
+  * add support for GRE extensions and plugins. We now search in PROFILE, APP
+    and GRE dir.
+    - add debian/patches/bzXXX_gre_extension_plugin_support.patch
+    - update debian/patches/series
+  * explicitly create addon directories /usr/lib/xulrunner-addons/{plugins,extensions}
+    - update debian/xulrunner-1.9.dirs
+  * drop hard-coded --with-system-nspr and --with-system-nss from CONFIGURE
+    flags
+    - update debian/rules
+  * don't enforce lower bound of system cairo and system nss versions
+    - update debian/control
+
+ -- Alexander Sack <asac@ubuntu.com>  Wed, 02 Jan 2008 14:55:34 +0100
+
+xulrunner-1.9 (1.9~b2+nobinonly-0ubuntu1) hardy; urgency=low
+
+  [ Fabien Tassin ]
+  * new upstream snapshot (1.9b2) from tag FIREFOX_3_0b2_RELEASE
+  * Update diverged patch:
+    - update debian/patches/bz399589_fix_missing_symbol_with_new_nss.patch
+  * Fix FTBFS on Hardy when using system nss. See MozBug #403994.
+    - add debian/patches/bz403994_dont_install_nss_includes_with_system_nss.patch
+    - update debian/patches/series
+  * Drop patches for bugs which recently landed
+    - drop debian/patches/bz405424_att290202.patch
+    - drop debian/patches/fix_ppc_ftbfs.patch
+    - update debian/patches/series
+  * Update rules for system cairo >= 1.5.4. It's still conditioned
+    by the presence or not of libcairo 1.5.* in hardy, also conditioning
+    lcd sub-pixel rendering
+    - update debian/rules
+    - add debian/patches/bz344818_cairo_xrender.patch
+    - update debian/patches/series
+  * add libpixman-1-dev to build-deps, needed by cairo
+    - update debian/control
+  * Update Standards-Version to 3.7.3
+    - update debian/control
+  * Re-enable DEB_AUTO_UPDATE_AUTOCONF=2.13 and depends on autoconf2.13
+    (will be dropped for final release)
+    - update debian/control
+    - update debian/rules
+  * Fold Build-Depends line making changes easier to track in diffs
+    and update versions based on http://wiki.mozilla.org/Linux/Runtime_Requirements
+    - update debian/control
+  * Add --enable-startup-notification and libstartup-notification0-dev to build-deps
+    - update debian/rules
+    - update debian/control
+  * Rewrite detection code for system nss and nspr, to ease backports to gutsy
+    - update debian/rules
+  * Fix FTBFS on hppa (See MozBug #287150)
+    - add debian/patches/bz287150_att291740_hppa_fix.patch
+    - update debian/patches/series
+
+  [ Alexander Sack ]
+  * force system cairo by adding versioned build-depends >= 1.5.4
+    - update debian/control
+  * provide libxul-unstable.pc and libxul-embedding-unstable.pc
+    - add debian/patches/bz408062_unstable_pc.patch
+    - update debian/patches/series
+  * fix missing icons if no gnome-support package is installed: move
+    libimgicon.so component from gnome-support package to plain xulrunner-1.9
+    - update debian/xulrunner-1.9.install
+    - update debian/xulrunner-1.9-gnome-support.install
+  * fix mozilla-nspr.pc for --with-system-nspr builds: mozilla-nspr.pc points
+    to the cflags and libs of system nspr now
+    - add debian/patches/bzXXX_pc_honour_system_nspr_nss.patch
+    - update debian/patches/series
+  * enforce libnss3-dev version (>= 3.12.0~1.9b2)
+    - update debian/control
+
+ -- Fabien Tassin <fta@sofaraway.org>  Wed, 19 Dec 2007 20:23:23 +0100
+
+xulrunner-1.9 (1.9~b1+nobinonly-0ubuntu2) hardy; urgency=low
+
+  [ Alexander Sack ]
+  * don't ship versioned .pc files anymore:
+    - remove debian/patches/install_pkgconfig_files_with_version.patch
+    - update debian/patches/series
+  * in turn xulrunner-1.9-dev package needs to Conflicts: on (old) mozilla-dev
+    - update debian/control
+
+  [ Fabien Tassin ]
+  * Add Homepage: and Vcs-Bzr: fields in control file
+    - update debian/control
+
+ -- Alexander Sack <asac@ubuntu.com>  Fri, 07 Dec 2007 00:11:43 +0100
+
+xulrunner-1.9 (1.9~b1+nobinonly-0ubuntu1) hardy; urgency=low
+
+  * new upstream snapshot (1.9b1 from FIREFOX_3_0b1_RELEASE)
+    - update debian/changelog
+  * Fix shell redirection in clean rule leaving orphaned processes
+    in buildd. (LP: #162723)
+    - update debian/rules
+  * Move extensions dir from /usr/lib/xulrunner-addons to
+    /usr/lib/xulrunner-addons/extensions and move plugins dir
+    from non-stable /usr/lib/xulrunner-1.9b1/plugins to
+    /usr/lib/xulrunner-addons/plugins
+    - update debian/rules
+    - update debian/xulrunner-1.9.install
+    - update debian/xulrunner-1.9-dom-inspector.install
+    - update debian/xulrunner-1.9-venkman.install
+  * new upstream snapshot (1.9b2pre cvs20071120t1456)
+  * Drop patches for MozBug #399589 and #403994 which landed:
+    - drop debian/patches/bz399589_fix_missing_symbol_with_new_nss.patch
+    - drop debian/patches/bz403994_dont_install_nss_includes_with_system_nss.patch
+    - update debian/patches/series
+  * Add libdbus-glib-1-dev >= 0.60 to build-deps. See MozBug #388743.
+    - update debian/control
+  * Add a postrm script to clean up left-overs from python/xpcom
+    - add debian/xulrunner-1.9.postrm.in
+    - update debian/rules
+  * Add support for Prism in the dom inspector addon
+    - add debian/patches/dom_inspector_support_for_prism.patch
+    - update debian/patches/series
+
+  [ Alexander Sack ]
+  * GtkEmbed DirectoryProvider provides NS_APP_USER_PROFILE_LOCAL_50_DIR special
+    directory now:
+    - add debian/patches/bz404634_att290373.patch
+    - update debian/patches/series (include currently applied patch)
+  * GtkEmbedEventListener.cpp now deals properly with selections:
+    - add debian/patches/bz373196_att281782.patch
+    - update debian/patches/series
+  * Fix ia64 build failure (thanks to Raúl Porcel)
+    - add debian/patches/bz405424_att290202.patch
+    - update debian/patches/series
+  * Fix url-classifier for embedders that don't provide a profile path. Use
+    a temp file to setup the url-classifier database and remove that one when
+    shutting down cleanly:
+    - add debian/patches/bz404634_att290305.patch
+    - update debian/patches/series
+
+ -- Fabien Tassin <fta@sofaraway.org>  Tue, 27 Nov 2007 16:01:49 +0100
+
+xulrunner-1.9 (1.9~b1~rc3+nobinonly-0ubuntu1) hardy; urgency=low
+
+  [ Fabien Tassin ]
+  * new upstream snapshot (1.9a9pre cvs20071012t0843)
+  * Drop debian/patches/bz392722_fix_nsinstall_on_double_slash.patch
+    (MozBug #397296 bumped nss/nspr requirements)
+    - update debian/patches/series
+  * Fix ftbfs with new nss caused by landing of MozBug #286642.
+    See MozBug 399589
+    - add debian/patches/bz399589_fix_missing_symbol_with_new_nss.patch
+    - update debian/patches/series
+  * Ship xpcshell as /usr/bin/xpcshell-1.9 (LP: #151400)
+    - update debian/rules
+    - add debian/patches/ship_xpcshell.patch
+    - update debian/patches/series
+  * new upstream snapshot (1.9a9pre cvs20071105t0339)
+    - update debian/changelogs
+  * Move gnome libs from xulrunner-1.9 to xulrunner-1.9-gnome-support
+    - update debian/control
+    - update debian/xulrunner-1.9.install
+    - add debian/xulrunner-1.9-gnome-support.install
+  * new upstream snapshot (1.9b1 rc3 from FIREFOX_3_0b1_RC3)
+    - update debian/changelogs
+  * Fix broken --with-default-mozilla-five-home value
+    - update debian/rules
+
+  [ Alexander Sack ]
+  * fix alternative migration bug that appears to happen on upstream version
+    upgrades: uninstall xulrunner alternative during "remove" and "upgrade" in
+    xulrunner-1.9.prerm
+    - update debian/xulrunner-1.9.prerm
+
+ -- Fabien Tassin <fta@sofaraway.org>  Wed, 14 Nov 2007 15:09:56 +0100
+
+xulrunner-1.9 (1.9~a9~cvs20071003t0648-0ubuntu1~mt2) gutsy; urgency=low
+
+  RELEASE: 1.9~a9~cvs20071003t0648-0ubuntu1~mt2 to gutsy/PPA
+
+  * Add /usr/bin/xulrunner-1.9 and make the alternative point to it so
+    xul apps that need xul 1.9 can use it. subst is no longer needed for
+    postinst/prerm scripts.
+    - rename and update:
+      - debian/xulrunner-1.9.postinst.in => debian/xulrunner-1.9.postinst
+      - debian/xulrunner-1.9.prerm.in => debian/xulrunner-1.9.prerm
+    - update debian/rules
+
+ -- Fabien Tassin <fta@sofaraway.org>  Mon, 08 Oct 2007 16:44:01 +0200
+
+xulrunner-1.9 (1.9~a9~cvs20071003t0648-0ubuntu1~mt1) gutsy; urgency=low
+
+  RELEASE: 1.9~a9~cvs20071003t0648-0ubuntu1~mt1 to gutsy/PPA
+
+  [ Fabien Tassin ]
+  * Add --disable-mochitest to debian/rules
+  * Protect tests targets by ifdefs so --disable-tests does the proper thing.
+    This is usefull for the stripped tarball.
+    - add debian/patches/protect_tests_by_ifdefs.patch
+    - update debian/patches/series
+  * Remove strict version check for extensions
+    - update debian/control
+
+  [ Alexander Sack ]
+  * unify test for dev-package in var DEV_PACKAGE_INDICATION and determine
+    whether to point libnssckbi.so to system nss using this test.
+  * drop versions from build-depends and depends on libnspr4-dev, libnss3-dev.
+    We use this to be able to use the same sources for both official uploads
+    (which uses in-xul nspr/nss) and dev/ppa uploads (which use system
+    nspr/nss).
+
+ -- Fabien Tassin <fta@sofaraway.org>  Sun, 07 Oct 2007 20:52:39 +0200
+
+xulrunner-1.9 (1.9~a8-0ubuntu2) gutsy; urgency=low
+
+  * debian/rules don't install link to system libnssckbi.so in order to use
+    xulrunner provided nss. (LP: #149822)
+
+ -- Alexander Sack <asac@ubuntu.com>  Sat, 06 Oct 2007 14:23:09 +0200
+
+xulrunner-1.9 (1.9~a8-0ubuntu1) gutsy; urgency=low
+
+  RELEASE: 1.9~a8 upload to gutsy.
+
+  [ Alexander Sack ]
+  * debian/rules: use EXTRA_SYSTEM_CONFIGURE_FLAGS to only use system-nss/-nspr
+    for cvs and mt builds.
+  * debian/control: drop build-depends on system-nss/-nspr ... later this
+    should be depent on the same test as EXTRA_SYSTEM_CONFIGURE_FLAGS.
+  * debian/patches/install_pkgconfig_files_with_version.patch: update patch
+    to ship versioned pkgconfig files: mozilla-nspr-1.9.pc and
+    mozilla-nss-1.9.pc when xulrunner is not using system nspr/nss.
+  * debian/control: drop system nspr/nss depends of xulrunner-1.9-dev.
+
+ -- Alexander Sack <asac@ubuntu.com>  Fri, 05 Oct 2007 01:43:55 +0200
+
+xulrunner-1.9 (1.9~a8-0ubuntu1~mt4) gutsy; urgency=low
+
+  [Fabien Tassin ]
+  * Compile with gcc/g++ 4.2 for all archs.
+  * Fix a nasty variable bug in debian/rules not doing
+    the proper substitution in postinst/prerm
+
+ -- Alexander Sack <asac@ubuntu.com>  Fri, 28 Sep 2007 23:31:04 +0200
+
+xulrunner-1.9 (1.9~a8-0ubuntu1~mt3) gutsy; urgency=low
+
+  [ Fabien Tassin ]
+  * DEBIAN_XUL_DIR is evaluated too early, replace ':=' by '='.
+    update debian/rules
+  * update debian/patches/rename_venkman_addon.patch as
+    a file was missing
+
+ -- Alexander Sack <asac@ubuntu.com>  Fri, 28 Sep 2007 17:12:45 +0200
+
+xulrunner-1.9 (1.9~a8-0ubuntu1~mt2) gutsy; urgency=low
+
+  [ Fabien Tassin ]
+  * Install addons in /usr/lib/xulrunner-addons:
+    - add debian/xulrunner-1.9.dirs
+    - update debian/rules to install a symlink
+      for /usr/lib/xulrunner-1.9*/extensions
+  * Create a package called xulrunner-1.9-dom-inspector
+    - update debian/rules
+    - add debian/xulrunner-1.9-dom-inspector.install
+  * Create a package called xulrunner-1.9-venkman
+    - update debian/rules
+    - add debian/debian/xulrunner-1.9-venkman.install
+    - add debian/patches/rename_venkman_addon.patch
+    - update debian/patches/series
+  * Install /usr/bin/xulrunner as an alternative
+    - add debian/xulrunner-1.9.postinst.in
+    - add debian/xulrunner-1.9.prerm.in
+    - update debian/rules
+    - update debian/xulrunner-1.9.install
+  * Add debian/patches/bz384304_fix_recursive_symlinks.patch
+    and update debian/patches/series
+  * Add Conflicts xulrunner (<< 1.8.1.4-2ubuntu4) so that
+    we can coexist with xulrunner 1.8 using alternatives
+
+ -- Alexander Sack <asac@ubuntu.com>  Tue, 25 Sep 2007 23:59:53 +0200
+    
+xulrunner-1.9 (1.9~a8-0ubuntu1~mt1) gutsy; urgency=low
+
+  Upstream Release: 1.9~a8 aka MOZILLA_1_9a8_RELEASE
+
+  [ Fabien Tassin ]
+  * Add --disable-install-strip to debian/rules (introduced
+    by Mozilla bug #391325)
+  * Don't install .so libs in -dev but link them instead
+    Add debian/patches/dont_install_so_in_dev.patch
+  * Make xulrunner-1.9-dev depend on lib{nss3,nspr4}-dev
+  * Don't hardcode xul version in debian/xulrunner-1.9.links
+    but link in debian/rules instead
+
+  [ Alexander Sack ]
+  * debian/rules: redirect output of finds in clean target to /dev/null
+
+ -- Alexander Sack <asac@ubuntu.com>  Tue, 25 Sep 2007 01:46:53 +0200
+
+xulrunner-1.9 (1.9~a8~cvs20070913t1423-0ubuntu1~mt2) gutsy; urgency=low
+
+  [ Fabien Tassin ]
+  * Remove Build-Depends-Indep as java is not needed
+  * Add --enable-safe-browsing to debian rules as it's good for us
+    and it brings the missing --enable-url-classifier
+  * Make the installer complain about missing files on stdout
+    instead of stderr so logs are easier to read.
+    Add debian/patches/installer_use_stdout_for_missing_files.patch
+    and update debian/patches/series
+
+ -- Alexander Sack <asac@ubuntu.com>  Mon, 17 Sep 2007 21:33:45 +0200
+
+xulrunner-1.9 (1.9~a8~cvs20070913t1423-0ubuntu1~mt1) gutsy; urgency=low
+
+  [ Fabien Tassin ]
+  * Add debian/patches/fix_ppc_ftbfs.patch to fix FTBFS on powerpcc:
+    now look for Linuxpowerpc instead of Linuxppc
+    (contributed by Luke Yelavich <themuso@ubuntu.com>)
+  * Add --enable-extensions to build xml-rpc, venkman, inspector, irc, gnomevfs,
+    cview, tasks, reporter and python/xpcom
+  * Add --enable-webservices
+  * Drop --disable-debug (it's the default)
+  * Add a clean rule to take care of some leftovers
+  * Add debian/xulrunner-1.9.links to link /usr/lib/nss/libnssckbi.so in
+    /usr/lib/xulrunner-1.9a8pre/libnssckbi.so in order to provide to all xul
+    applications CA certificates.
+  * update debian/patches/bz392722_fix_nsinstall_on_double_slash.patch
+    update from firefox-trunk to reflect upstream partial commit.
+
+  [ Alexander Sack ]
+  * debian/patches/bz386610_python2.5_ftbfs_amd64.patch,series: add patch from
+    bugzilla 386610 that fixes ftbfs on amd64 with python2.5.
+
+ -- Alexander Sack <asac@ubuntu.com>  Sat, 08 Sep 2007 15:03:13 +0200
+
+xulrunner-1.9 (1.9~a8~cvs20070829-0ubuntu1~mt1) gutsy; urgency=low
+
+  [ Fabien Tassin ]
+  * new upstream snapshot (1.9a8pre cvs20070829)
+  * Add debian/copyright
+  * Update debian/changelog to use a proper versionning scheme.
+  * Make xulrunner-1.9-dev depend on xulrunner-1.9 (update debian/control)
+  * Update Maintainer in debian/control to Mozilla team.
+  * Update debian/control to fix Build-Depends: drop dpatch, add quilt, cdbs,
+        zip.
+  * Update debian/rules to stop running autoconf.
+  * Add debian/patches/bz392722_fix_nsinstall_on_double_slash.patch fixing
+    nsinstall (patch reused from firefox-trunk)
+  * Add debian/patches/install_pkgconfig_files_with_version.patch so we
+    can install multiple xulrunner-dev and still use pkg-config
+  * Add debian/patches/series
+  * Update debian/control to create a -dev package
+  * Add debian/xulrunner-1.9.install and debian/xulrunner-1.9-dev.install
+    to move files to -dev package
+
+ -- Fabien Tassin <fta@sofaraway.org>  Wed, 29 Aug 2007 20:53:27 +0200
+
+xulrunner-1.9 (1.9~a8~cvs20070824-0ubuntu1) gutsy; urgency=low
+
+  [ Fabien Tassin ]
+  * new upstream snapshot (1.9a8pre cvs20070824)
+  * initial packaging inspired from firefox-trunk and reusing
+    package descriptions from previous xulrunner package.
+    Create xulrunner-1.9 and xulrunner-1.9-dev.
+
+ -- Fabien Tassin <fta@sofaraway.org>  Fri, 24 Aug 2007 22:01:38 +0000
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/xulrunner-1.9.1-testsuite.install
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/xulrunner-1.9.1-testsuite.install
@@ -0,0 +1,84 @@
+debian/tmp/usr/lib/xulrunner-1.9*/chrome/pageloader.jar
+debian/tmp/usr/lib/xulrunner-1.9*/chrome/pageloader.manifest
+debian/tmp/usr/lib/xulrunner-1.9*/chrome/reftest.jar
+debian/tmp/usr/lib/xulrunner-1.9*/chrome/reftest.manifest
+debian/tmp/usr/lib/xulrunner-1.9*/chrome/xslt-qa.jar
+debian/tmp/usr/lib/xulrunner-1.9*/chrome/xslt-qa.manifest
+debian/tmp/usr/lib/xulrunner-1.9*/components/httpd.js
+debian/tmp/usr/lib/xulrunner-1.9*/components/libMyService.so
+debian/tmp/usr/lib/xulrunner-1.9*/components/libtestdynamic.so
+debian/tmp/usr/lib/xulrunner-1.9*/components/libxpcomsample.so
+debian/tmp/usr/lib/xulrunner-1.9*/components/nsSample.js
+debian/tmp/usr/lib/xulrunner-1.9*/components/proxytest.xpt
+debian/tmp/usr/lib/xulrunner-1.9*/components/reftest-cmdline.js
+debian/tmp/usr/lib/xulrunner-1.9*/components/test_necko.xpt
+debian/tmp/usr/lib/xulrunner-1.9*/components/tp-cmdline.js
+debian/tmp/usr/lib/xulrunner-1.9*/components/xpcomsample.xpt
+debian/tmp/usr/lib/xulrunner-1.9*/components/xpconnect_tests.xpt
+debian/tmp/usr/lib/xulrunner-1.9*/grabpage
+debian/tmp/usr/lib/xulrunner-1.9*/NormalizationTest
+debian/tmp/usr/lib/xulrunner-1.9*/nsIFileEnumerator
+debian/tmp/usr/lib/xulrunner-1.9*/nsIFileTest
+debian/tmp/usr/lib/xulrunner-1.9*/nsTestSample
+# debian/tmp/usr/lib/xulrunner-1.9*/plugins/libnptest.so
+debian/tmp/usr/lib/xulrunner-1.9*/PrimitiveTest
+debian/tmp/usr/lib/xulrunner-1.9*/PropertiesTest
+debian/tmp/usr/lib/xulrunner-1.9*/proxy-create-threadsafety
+debian/tmp/usr/lib/xulrunner-1.9*/proxytests
+debian/tmp/usr/lib/xulrunner-1.9*/rdfcat
+debian/tmp/usr/lib/xulrunner-1.9*/rdfpoll
+debian/tmp/usr/lib/xulrunner-1.9*/ReadNTLM
+debian/tmp/usr/lib/xulrunner-1.9*/res/bloatcycle.html
+debian/tmp/usr/lib/xulrunner-1.9*/res/jarlist.dat
+debian/tmp/usr/lib/xulrunner-1.9*/res/test.properties
+debian/tmp/usr/lib/xulrunner-1.9*/res/urlparse.dat
+debian/tmp/usr/lib/xulrunner-1.9*/res/urlparse_unx.dat
+debian/tmp/usr/lib/xulrunner-1.9*/SimpleTypeLib
+debian/tmp/usr/lib/xulrunner-1.9*/TestAutoPtr
+debian/tmp/usr/lib/xulrunner-1.9*/TestBlockingSocket
+debian/tmp/usr/lib/xulrunner-1.9*/TestCallbacks
+debian/tmp/usr/lib/xulrunner-1.9*/TestCallTemplates
+debian/tmp/usr/lib/xulrunner-1.9*/TestCOMPtr
+debian/tmp/usr/lib/xulrunner-1.9*/TestCOMPtrEq
+debian/tmp/usr/lib/xulrunner-1.9*/TestCookie
+debian/tmp/usr/lib/xulrunner-1.9*/TestDNS
+debian/tmp/usr/lib/xulrunner-1.9*/TestFactory
+debian/tmp/usr/lib/xulrunner-1.9*/TestGtkEmbedChild
+debian/tmp/usr/lib/xulrunner-1.9*/TestGtkEmbedNotebook
+debian/tmp/usr/lib/xulrunner-1.9*/TestGtkEmbedSocket
+debian/tmp/usr/lib/xulrunner-1.9*/TestHashtables
+debian/tmp/usr/lib/xulrunner-1.9*/TestID
+debian/tmp/usr/lib/xulrunner-1.9*/TestIncrementalDownload
+debian/tmp/usr/lib/xulrunner-1.9*/TestINIParser
+debian/tmp/usr/lib/xulrunner-1.9*/TestLineBreak
+debian/tmp/usr/lib/xulrunner-1.9*/TestMinStringAPI
+debian/tmp/usr/lib/xulrunner-1.9*/TestNativeXMLHttpRequest
+debian/tmp/usr/lib/xulrunner-1.9*/TestObserverService
+debian/tmp/usr/lib/xulrunner-1.9*/TestOOM
+debian/tmp/usr/lib/xulrunner-1.9*/TestOpen
+debian/tmp/usr/lib/xulrunner-1.9*/TestPageLoad
+debian/tmp/usr/lib/xulrunner-1.9*/TestParser
+debian/tmp/usr/lib/xulrunner-1.9*/TestPipe
+debian/tmp/usr/lib/xulrunner-1.9*/TestPlainTextSerializer
+debian/tmp/usr/lib/xulrunner-1.9*/TestRacingServiceManager
+debian/tmp/usr/lib/xulrunner-1.9*/TestRegistrationOrder
+debian/tmp/usr/lib/xulrunner-1.9*/TestServ
+debian/tmp/usr/lib/xulrunner-1.9*/TestServMgr
+debian/tmp/usr/lib/xulrunner-1.9*/TestStandardURL
+debian/tmp/usr/lib/xulrunner-1.9*/teststorage1
+debian/tmp/usr/lib/xulrunner-1.9*/TestStreamConv
+debian/tmp/usr/lib/xulrunner-1.9*/TestStreamLoader
+debian/tmp/usr/lib/xulrunner-1.9*/TestStringAPI
+debian/tmp/usr/lib/xulrunner-1.9*/TestTextFormatter
+debian/tmp/usr/lib/xulrunner-1.9*/TestThreadPoolListener
+debian/tmp/usr/lib/xulrunner-1.9*/TestTimers
+debian/tmp/usr/lib/xulrunner-1.9*/TestTXMgr
+debian/tmp/usr/lib/xulrunner-1.9*/TestUpload
+debian/tmp/usr/lib/xulrunner-1.9*/TestURLParser
+debian/tmp/usr/lib/xulrunner-1.9*/TestVersionComparator
+debian/tmp/usr/lib/xulrunner-1.9*/TestXPC
+debian/tmp/usr/lib/xulrunner-1.9*/triplescat
+debian/tmp/usr/lib/xulrunner-1.9*/UnicharSelfTest
+debian/tmp/usr/lib/xulrunner-1.9*/UniversalChardetTest
+debian/tmp/usr/lib/xulrunner-1.9*/urltest
+debian/tmp/usr/lib/xulrunner-1.9*/WriteArgument
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/create-build-system.sh
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/create-build-system.sh
@@ -0,0 +1,122 @@
+#!/bin/sh
+
+# Copyright (c) 2008 Fabien Tassin <fta@sofaraway.org>
+# Description: Create a build-system for xulrunner applications
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+############################################################################
+
+DIRS="config build toolkit/mozapps/installer"
+FILES="configure.in aclocal.m4 allmakefiles.sh toolkit/xre/make-platformini.py nsprpub/config/make-system-wrappers.pl extensions/Makefile.in extensions/build.mk"
+
+NAME="build-system"
+
+SRCDIR=mozilla
+if [ ! -d $SRCDIR ] ; then
+  if [ -d build-tree/mozilla ] ; then
+    SRCDIR=build-tree/mozilla
+  else
+    echo "Error: can't find mozilla dir"
+    exit 1
+  fi
+fi
+
+rm -rf $NAME debian/$NAME.tar.gz
+mkdir -p $NAME
+tar -C $SRCDIR -cf - $DIRS $FILES | tar -C $NAME -xf -
+cat - > $NAME/Makefile.in <<EOF
+# ***** BEGIN LICENSE BLOCK *****
+# Version: MPL 1.1/GPL 2.0/LGPL 2.1
+#
+# The contents of this file are subject to the Mozilla Public License Version
+# 1.1 (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+# http://www.mozilla.org/MPL/
+#
+# Software distributed under the License is distributed on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+# for the specific language governing rights and limitations under the
+# License.
+#
+# The Original Code is Mozilla.
+#
+# The Initial Developer of the Original Code is
+# the Mozilla Foundation <http://www.mozilla.org/>.
+# Portions created by the Initial Developer are Copyright (C) 2007
+# the Initial Developer. All Rights Reserved.
+#
+# Contributor(s):
+#   Fabien Tassin <fta@sofaraway.org>
+#
+# Alternatively, the contents of this file may be used under the terms of
+# either the GNU General Public License Version 2 or later (the "GPL"), or
+# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+# in which case the provisions of the GPL or the LGPL are applicable instead
+# of those above. If you wish to allow use of your version of this file only
+# under the terms of either the GPL or the LGPL, and not to allow others to
+# use your version of this file under the terms of the MPL, indicate your
+# decision by deleting the provisions above and replace them with the notice
+# and other provisions required by the GPL or the LGPL. If you do not delete
+# the provisions above, a recipient may use your version of this file under
+# the terms of any one of the MPL, the GPL or the LGPL.
+#
+# ***** END LICENSE BLOCK *****
+
+DEPTH           = .
+topsrcdir       = @top_srcdir@
+srcdir          = @srcdir@
+VPATH           = @srcdir@
+
+include \$(DEPTH)/config/autoconf.mk
+
+include \$(topsrcdir)/config/config.mk
+
+default alldep all::
+	\$(RM) -rf _tests
+
+TIERS += base
+
+#
+# tier "base" - basic setup
+#
+tier_base_dirs = \\
+	config \\
+	build \\
+	\$(NULL)
+
+include \$(topsrcdir)/\$(MOZ_BUILD_APP)/build.mk
+
+GARBAGE_DIRS += dist _javagen _profile _tests staticlib
+DIST_GARBAGE = config.cache config.log config.status config-defs.h \\
+   dependencies.beos config/autoconf.mk config/myrules.mk config/myconfig.mk \\
+   unallmakefiles mozilla-config.h \\
+   netwerk/necko-config.h xpcom/xpcom-config.h xpcom/xpcom-private.h \\
+   \$(topsrcdir)/.mozconfig.mk \$(topsrcdir)/.mozconfig.out
+
+# Build pseudo-external modules first when export is explicitly called
+export::
+	\$(MAKE) -C config export
+	\$(MAKE) tier_nspr
+
+include \$(topsrcdir)/config/rules.mk
+
+distclean::
+	cat unallmakefiles | \$(XARGS) rm -f
+	rm -f unallmakefiles \$(DIST_GARBAGE)
+EOF
+
+tar -C $NAME -zcvf debian/$NAME.tar.gz .
+rm -rf $NAME
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/xulrunner-1.9.1.preinst.in
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/xulrunner-1.9.1.preinst.in
@@ -0,0 +1,39 @@
+#!/bin/sh
+set -e
+
+XUL_VERSION=@XULBRANCH@
+GRE_VERSION=@XULVER@
+OLD_GRE=`echo $2 | sed -e 's/\+.*//' -e 's/~\([^~]*\).*/\1pre/'`
+
+# Remove a no-longer used conffile
+rm_conffile() {
+  PKGNAME="$1"
+  CONFFILE="$2"
+  if [ -e "$CONFFILE" ]; then
+    md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
+    old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE '{s/ obsolete$//;s/.* //p}\"`"
+    if [ "$md5sum" != "$old_md5sum" ]; then
+      echo "Obsolete conffile $CONFFILE has been modified by you."
+      echo "Saving as $CONFFILE.dpkg-bak ..."
+      mv -f "$CONFFILE" "$CONFFILE".dpkg-bak
+    else
+      echo "Removing obsolete conffile $CONFFILE ..."
+      rm -f "$CONFFILE"
+    fi
+  fi
+}
+
+if [ "$1" = "upgrade" ]; then
+  # Remove all files already obsolete, unless this is one we want to install (downgrade)
+  for obsolete in `dpkg-query -W -f='${Conffiles}' xulrunner-$XUL_VERSION | grep 'obsolete$' | awk '{ print $1 }'` ; do
+    if [ "$obsolete" != "/etc/gre.d/$GRE_VERSION.system.conf" ] ; then
+      rm_conffile xulrunner-$XUL_VERSION "$obsolete"
+    fi
+  done
+  # Remove the previous GRE file, if we just bumped it
+  if [ "$OLD_GRE" != "$GRE_VERSION" ] ; then
+    rm_conffile xulrunner-$XUL_VERSION "/etc/gre.d/$OLD_GRE.system.conf"
+  fi
+fi
+
+#DEBHELPER#
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/copyright
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/copyright
@@ -0,0 +1,651 @@
+This package was debianized by Fabien Tassin <fta@sofaraway.org> on 2007-08-25
+
+The following file has been previously maintained by Mike Hommey <glandium@debian.org> 
+and updated by Fabien Tassin as of xulrunner 1.9a8pre.
+
+The package was downloaded from http://ftp.mozilla.org/pub/mozilla.org/xulrunner/
+
+EDIT: downloaded from CVS (until 1.9 is released) using the following commands:
+   cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk
+   make -f mozilla/client.mk checkout MOZ_CO_PROJECT=xulrunner
+
+The source tarball is an aggregate of several different works in which the
+main one, developed by the Mozilla Project, is xulrunner.
+
+The contents of the debian directory are licensed like the bulk of
+xulrunner, tri-licensed under the GPL/LGPL/MPL.
+
+Other works include gzip, bzip2, sqlite, libjpeg, libpng, cairo, and others.
+Please see the sections following the copyright statements for xulrunner for
+these.
+
+If this file is incomplete, which I'm pretty sure is the case, because it's
+difficult not to forget anything in this huge amount of data, please file
+a bug or contact me.
+
+=== xulrunner
+
+Overall, the xulrunner project is licensed under the terms of the Mozilla
+Public License version 1.1 or, at your option, under the terms of the GNU 
+General Public License version 2 or subsequent, or the terms of the GNU
+Lesser General Public License version 2.1 or subsequent.
+
+On Debian systems, the complete text of the GNU General Public
+License can be found in the file `/usr/share/common-licenses/GPL' ;
+the complete text of the GNU Lesser General Public License can be
+found in the file `/usr/share/common-licenses/LGPL'.
+
+The complete text of the Mozilla Public License can be found in the MPL file
+in the same directory as this file.
+
+Some of the files are also licensed (single, dual or tri) under the terms of
+the Netscape Public License (NPL) which can be found as amendments to the
+MPL at the end of the file. Please refer to http://www.mozilla.org/MPL/relicensing-faq.html
+
+While the Mozilla Project is undergoing a global relicensing so that the
+aim is to have a full tree with these tri-license terms, there are at the
+moment quite some exceptions as following:
+
+(Note that I sometimes assumed files not explicitly licensed to be licensed
+under the same terms as the files around them and that a lot of the
+information has been extracted automatically, thus maybe leaving some doubt.
+Again, if you find "bugs", please contact me by email or via the BTS.)
+
+The following files are not tri-licenced MPL/GPL/LGPL:
+
+- GPL only:
+  dom/tests/mochitest/ajax/jquery/dist/jquery.js
+  dom/tests/mochitest/ajax/jquery/src/jquery/jquery.js
+
+- MPL and GPL:
+  embedding/browser/activex/src/install/README.txt
+
+- MPL and LGPL:
+  gfx/cairo/cairo/*  
+
+- GPL and LGP:
+  extensions/pref/system-pref/src/gconf/nsSystemPrefService.cpp
+  extensions/pref/system-pref/src/gconf/nsSystemPrefService.h
+  extensions/pref/system-pref/src/nsSystemPref.cpp
+  extensions/pref/system-pref/src/nsSystemPref.h
+  extensions/pref/system-pref/src/nsSystemPrefFactory.cpp
+  extensions/pref/system-pref/src/nsSystemPrefLog.h
+  netwerk/base/public/nsIIOService2.idl
+  netwerk/base/public/nsINetworkLinkService.idl
+  netwerk/streamconv/converters/mozTXTToHTMLConv.cpp
+  netwerk/streamconv/converters/mozTXTToHTMLConv.h
+  netwerk/streamconv/public/mozITXTToHTMLConv.idl
+  toolkit/system/dbus/nsDBusModule.cpp
+  toolkit/system/dbus/nsDBusService.cpp
+  toolkit/system/dbus/nsDBusService.h
+  toolkit/system/dbus/nsNetworkManagerListener.cpp
+  toolkit/system/dbus/nsNetworkManagerListener.h
+
+- NPL only (thus MPL): (EDIT: to investigate)
+  intl/uconv/ucvibm/864i.uf
+  intl/uconv/ucvibm/cp850.uf
+  intl/uconv/ucvibm/cp852.uf
+  intl/uconv/ucvibm/cp855.uf
+  intl/uconv/ucvibm/cp857.uf
+  intl/uconv/ucvibm/cp862.uf
+  intl/uconv/ucvibm/cp864.uf
+  intl/uconv/ucvmath/mathematica1.uf
+  intl/uconv/ucvmath/mathematica2.uf
+  intl/uconv/ucvmath/mathematica3.uf
+  intl/uconv/ucvmath/mathematica4.uf
+  intl/uconv/ucvmath/mathematica5.uf
+  intl/uconv/ucvmath/mtextra.uf
+  intl/uconv/ucvmath/texcmex-t1.uf
+  intl/uconv/ucvmath/texcmex-ttf.uf
+  intl/uconv/ucvmath/texcmmi-t1.uf
+  intl/uconv/ucvmath/texcmmi-ttf.uf
+  intl/uconv/ucvmath/texcmr-ttf.uf
+  intl/uconv/ucvmath/texcmsy-t1.uf
+
+- Public Domain:
+  aclocal.m4
+  build/autoconf/freetype2.m4
+  build/autoconf/gtk.m4
+  build/autoconf/nspr.m4
+  db/mork/src/morkDeque.cpp
+  db/mork/src/morkDeque.h
+
+The file db/mork/src/morkQuickSort.cpp is licensed under the following terms:
+ 
+  Copyright (c) 1992, 1993
+   The Regents of the University of California.  All rights reserved.
+ 
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+  3. Neither the name of the University nor the names of its contributors
+     may be used to endorse or promote products derived from this software
+     without specific prior written permission.
+ 
+  THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+  ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+  SUCH DAMAGE.
+
+The following files come from X11R5, without any clear licensing terms:
+
+  build/autoconf/install-sh
+  directory/c-sdk/config/autoconf/install-sh
+  nsprpub/build/autoconf/install-sh
+
+The embedding/qa/mozembed/public/nsIQABrowserUIGlue.idl file and the files
+under the embedding/tests directory are licensed under the following terms:
+
+  Copyright (c) 2002 Netscape Communications Corporation and
+  other contributors
+
+  Permission is hereby granted, free of charge, to any person obtaining a
+  copy of this Mozilla sample software and associated documentation files
+  (the "Software"), to deal in the Software without restriction, including
+  without limitation the rights to use, copy, modify, merge, publish,
+  distribute, sublicense, and/or sell copies of the Software, and to permit
+  persons to whom the Software is furnished to do so, subject to the
+  following conditions:
+ 
+  The above copyright notice and this permission notice shall be included
+  in all copies or substantial portions of the Software.
+  
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+  DEALINGS IN THE SOFTWARE.
+
+=== sqlite
+
+The db/sqlite3 directory contains a copy of sqlite with the following
+licensing terms:
+
+  The author disclaims copyright to this source code.  In place of
+  a legal notice, here is a blessing:
+
+     May you do good and not evil.
+     May you find forgiveness for yourself and forgive others.
+     May you share freely, never taking more than you give.
+
+=== dbm
+
+The dbm directory, except the files listed under the xulrunner section, is
+licensed under the following terms:
+
+  Copyright (c) 1991, 1993, 1994
+  The Regents of the University of California.  All rights reserved.
+ 
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+  3. All advertising materials mentioning features or use of this software
+     must display the following acknowledgement:
+  This product includes software developed by the University of
+  California, Berkeley and its contributors.
+  4. Neither the name of the University nor the names of its contributors
+     may be used to endorse or promote products derived from this software
+     without specific prior written permission.
+ 
+  THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+  ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+  SUCH DAMAGE.
+ 
+=== myspell
+
+The extensions/spellcheck/myspell directory is licensed under the following
+terms:
+
+  Copyright 2002 Kevin B. Hendricks, Stratford, Ontario, Canada
+  And Contributors.  All rights reserved.
+ 
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+ 
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+ 
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+ 
+  3. All modifications to the source code must be clearly marked as
+     such.  Binary redistributions based on modified source code
+     must be clearly marked as modified versions in the documentation
+     and/or other materials provided with the distribution.
+ 
+  THIS SOFTWARE IS PROVIDED BY KEVIN B. HENDRICKS AND CONTRIBUTORS 
+  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
+  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
+  FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL 
+  KEVIN B. HENDRICKS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
+  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
+  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+  SUCH DAMAGE.
+
+=== boehm
+
+The gc/boehm directory, except the files listed under the xulrunner section,
+is licensed under the following terms:
+
+  Copyright 1988, 1989 Hans-J. Boehm, Alan J. Demers
+  Copyright (c) 1991-1996 by Xerox Corporation.  All rights reserved.
+  Copyright (c) 1996-1998 by Silicon Graphics.  All rights reserved.
+
+  THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
+  OR IMPLIED.  ANY USE IS AT YOUR OWN RISK.
+
+  Permission is hereby granted to use or copy this program
+  for any purpose,  provided the above notices are retained on all copies.
+  Permission to modify the code and to distribute modified code is granted,
+  provided the above notices are retained, and a notice that the code was
+  modified is included with the above copyright notice.
+
+=== cairo
+
+The gfx/cairo/cairo directory is licensed under the following terms:
+
+  Copyright (c) 2003 University of Southern California
+  Copyright (c) 1999 Tom Tromey
+  Copyright (c) 2002, 2003 University of Southern California
+  Copyright (c) 2004 Calum Robinson
+  Copyright (c) 2004 David Reveman
+  Copyright (c) 2000, 2002, 2004 Keith Packard
+  Copyright (c) 2004, 2005 Red Hat, Inc
+
+  Cairo is free software and is available to be redistributed and/or
+  modified under the terms of either the GNU Lesser General Public
+  License (LGPL) version 2.1 or the Mozilla Public License (MPL) version
+  1.1.
+
+=== libpixman
+
+The gfx/cairo/libpixman directory is licensed under the following terms:
+(from gfx/cairo/libpixman/COPYING)
+
+  libpixregion
+  
+  Copyright 1987, 1998  The Open Group
+  
+  Permission to use, copy, modify, distribute, and sell this software and its
+  documentation for any purpose is hereby granted without fee, provided that
+  the above copyright notice appear in all copies and that both that
+  copyright notice and this permission notice appear in supporting
+  documentation.
+  
+  The above copyright notice and this permission notice shall be included in
+  all copies or substantial portions of the Software.
+  
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
+  OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+  AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+  
+  Except as contained in this notice, the name of The Open Group shall not be
+  used in advertising or otherwise to promote the sale, use or other dealings
+  in this Software without prior written authorization from The Open Group.
+  
+  
+  Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
+  
+                          All Rights Reserved
+  
+  Permission to use, copy, modify, and distribute this software and its 
+  documentation for any purpose and without fee is hereby granted, 
+  provided that the above copyright notice appear in all copies and that
+  both that copyright notice and this permission notice appear in 
+  supporting documentation, and that the name of Digital not be
+  used in advertising or publicity pertaining to distribution of the
+  software without specific, written prior permission.  
+  
+  DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
+  ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
+  DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
+  ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+  SOFTWARE.
+  
+  ----------------------------------------------------------------------
+  libic
+  
+  Copyright © 2001 Keith Packard
+  
+  Permission to use, copy, modify, distribute, and sell this software and its
+  documentation for any purpose is hereby granted without fee, provided that
+  the above copyright notice appear in all copies and that both that
+  copyright notice and this permission notice appear in supporting
+  documentation, and that the name of Keith Packard not be used in
+  advertising or publicity pertaining to distribution of the software without
+  specific, written prior permission.  Keith Packard makes no
+  representations about the suitability of this software for any purpose.  It
+  is provided "as is" without express or implied warranty.
+  
+  KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+  EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+  PERFORMANCE OF THIS SOFTWARE.
+  
+  ----------------------------------------------------------------------
+  slim
+  
+  slim is Copyright © 2003 Richard Henderson
+  
+  Permission to use, copy, modify, distribute, and sell this software
+  and its documentation for any purpose is hereby granted without fee,
+  provided that the above copyright notice appear in all copies and that
+  both that copyright notice and this permission notice appear in
+  supporting documentation, and that the name of Richard Henderson not be
+  used in advertising or publicity pertaining to distribution of the
+  software without specific, written prior permission.  Richard Henderson
+  makes no representations about the suitability of this software for
+  any purpose.  It is provided "as is" without express or implied
+  warranty.
+  
+  RICHARD HENDERSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+  EVENT SHALL RICHARD HENDERSON BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
+  USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+  PERFORMANCE OF THIS SOFTWARE.
+
+=== libjpeg
+
+The jpeg directory, except the files under the xulrunner section, are licensed
+under the following terms:
+
+  The authors make NO WARRANTY or representation, either express or implied,
+  with respect to this software, its quality, accuracy, merchantability, or
+  fitness for a particular purpose.  This software is provided "AS IS", and you,
+  its user, assume the entire risk as to its quality and accuracy.
+
+  This software is copyright (C) 1991-1998, Thomas G. Lane.
+  All Rights Reserved except as specified below.
+
+  Permission is hereby granted to use, copy, modify, and distribute this
+  software (or portions thereof) for any purpose, without fee, subject to these
+  conditions:
+  (1) If any part of the source code for this software is distributed, then this
+  README file must be included, with this copyright and no-warranty notice
+  unaltered; and any additions, deletions, or changes to the original files
+  must be clearly indicated in accompanying documentation.
+  (2) If only executable code is distributed, then the accompanying
+  documentation must state that "this software is based in part on the work of
+  the Independent JPEG Group".
+  (3) Permission for use of this software is granted only if the user accepts
+  full responsibility for any undesirable consequences; the authors accept
+  NO LIABILITY for damages of any kind.
+
+  These conditions apply to any software derived from or based on the IJG code,
+  not just to the unmodified library.  If you use our work, you ought to
+  acknowledge us.
+
+  Permission is NOT granted for the use of any IJG author's name or company name
+  in advertising or publicity relating to this software or products derived from
+  it.  This software may be referred to only as "the Independent JPEG Group's
+  software".
+
+  We specifically permit and encourage the use of this software as the basis of
+  commercial products, provided that all warranty or liability claims are
+  assumed by the product vendor.
+
+=== bzip2
+
+The modules/libbz2/src directory is licensed under the following terms:
+(from modules/libbz2/src/LICENSE)
+
+  This program, "bzip2", the associated library "libbzip2", and all
+  documentation, are copyright (C) 1996-2005 Julian R Seward.  All
+  rights reserved.
+  
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  
+  2. The origin of this software must not be misrepresented; you must 
+     not claim that you wrote the original software.  If you use this 
+     software in a product, an acknowledgment in the product 
+     documentation would be appreciated but is not required.
+  
+  3. Altered source versions must be plainly marked as such, and must
+     not be misrepresented as being the original software.
+  
+  4. The name of the author may not be used to endorse or promote 
+     products derived from this software without specific prior written 
+     permission.
+  
+  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
+  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+  
+  Julian Seward, Cambridge, UK.
+  jseward@acm.org
+  bzip2/libbzip2 version 1.0.3 of 15 February 2005
+
+=== libpng
+
+The directory modules/libimg/png is licensed under the following terms:
+(from modules/libimg/png/LICENSE)
+
+  This copy of the libpng notices is provided for your convenience.  In case of
+  any discrepancy between this copy and the notices in the file png.h that is
+  included in the libpng distribution, the latter shall prevail.
+  
+  COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:
+  
+  If you modify libpng you may insert additional notices immediately following
+  this sentence.
+  
+  libpng version 1.2.6, September 12, 2004, is
+  Copyright (c) 2004 Glenn Randers-Pehrson, and is
+  distributed according to the same disclaimer and license as libpng-1.2.5
+  with the following individual added to the list of Contributing Authors
+  
+     Cosmin Truta
+  
+  libpng versions 1.0.7, July 1, 2000, through 1.2.5 - October 3, 2002, are
+  Copyright (c) 2000-2002 Glenn Randers-Pehrson, and are
+  distributed according to the same disclaimer and license as libpng-1.0.6
+  with the following individuals added to the list of Contributing Authors
+  
+     Simon-Pierre Cadieux
+     Eric S. Raymond
+     Gilles Vollant
+  
+  and with the following additions to the disclaimer:
+  
+     There is no warranty against interference with your enjoyment of the
+     library or against infringement.  There is no warranty that our
+     efforts or the library will fulfill any of your particular purposes
+     or needs.  This library is provided with all faults, and the entire
+     risk of satisfactory quality, performance, accuracy, and effort is with
+     the user.
+  
+  libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are
+  Copyright (c) 1998, 1999 Glenn Randers-Pehrson, and are
+  distributed according to the same disclaimer and license as libpng-0.96,
+  with the following individuals added to the list of Contributing Authors:
+  
+     Tom Lane
+     Glenn Randers-Pehrson
+     Willem van Schaik
+  
+  libpng versions 0.89, June 1996, through 0.96, May 1997, are
+  Copyright (c) 1996, 1997 Andreas Dilger
+  Distributed according to the same disclaimer and license as libpng-0.88,
+  with the following individuals added to the list of Contributing Authors:
+  
+     John Bowler
+     Kevin Bracey
+     Sam Bushell
+     Magnus Holmgren
+     Greg Roelofs
+     Tom Tanner
+  
+  libpng versions 0.5, May 1995, through 0.88, January 1996, are
+  Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.
+  
+  For the purposes of this copyright and license, "Contributing Authors"
+  is defined as the following set of individuals:
+  
+     Andreas Dilger
+     Dave Martindale
+     Guy Eric Schalnat
+     Paul Schmidt
+     Tim Wegner
+  
+  The PNG Reference Library is supplied "AS IS".  The Contributing Authors
+  and Group 42, Inc. disclaim all warranties, expressed or implied,
+  including, without limitation, the warranties of merchantability and of
+  fitness for any purpose.  The Contributing Authors and Group 42, Inc.
+  assume no liability for direct, indirect, incidental, special, exemplary,
+  or consequential damages, which may result from the use of the PNG
+  Reference Library, even if advised of the possibility of such damage.
+  
+  Permission is hereby granted to use, copy, modify, and distribute this
+  source code, or portions hereof, for any purpose, without fee, subject
+  to the following restrictions:
+  
+  1. The origin of this source code must not be misrepresented.
+  
+  2. Altered versions must be plainly marked as such and must not
+     be misrepresented as being the original source.
+  
+  3. This Copyright notice may not be removed or altered from any
+     source or altered source distribution.
+  
+  The Contributing Authors and Group 42, Inc. specifically permit, without
+  fee, and encourage the use of this source code as a component to
+  supporting the PNG file format in commercial products.  If you use this
+  source code in a product, acknowledgment is not required but would be
+  appreciated.
+  
+  
+  A "png_get_copyright" function is available, for convenient use in "about"
+  boxes and the like:
+  
+     printf("%s",png_get_copyright(NULL));
+  
+  Also, the PNG logo (in PNG format, of course) is supplied in the
+  files "pngbar.png" and "pngbar.jpg (88x31) and "pngnow.png" (98x31).
+  
+  Libpng is OSI Certified Open Source Software.  OSI Certified Open Source is a
+  certification mark of the Open Source Initiative.
+  
+  Glenn Randers-Pehrson
+  glennrp@users.sourceforge.net
+  September 12, 2004
+
+=== zlib
+
+The directories modules/zlib/src and security/nss/cmd/zlib are licensed under
+the following terms:
+
+ (C) 1995-2004 Jean-loup Gailly and Mark Adler
+
+  This software is provided 'as-is', without any express or implied
+  warranty.  In no event will the authors be held liable for any damages
+  arising from the use of this software.
+
+  Permission is granted to anyone to use this software for any purpose,
+  including commercial applications, and to alter it and redistribute it
+  freely, subject to the following restrictions:
+
+  1. The origin of this software must not be misrepresented; you must not
+     claim that you wrote the original software. If you use this software
+     in a product, an acknowledgment in the product documentation would be
+     appreciated but is not required.
+  2. Altered source versions must be plainly marked as such, and must not be
+     misrepresented as being the original software.
+  3. This notice may not be removed or altered from any source distribution.
+
+  Jean-loup Gailly        Mark Adler
+  jloup@gzip.org          madler@alumni.caltech.edu
+
+  If you use the zlib library in a product, we would appreciate *not*
+  receiving lengthy legal documents to sign. The sources are provided
+  for free but without warranty of any kind.  The library has been
+  entirely written by Jean-loup Gailly and Mark Adler; it does not
+  include third-party code.
+  
+  If you redistribute modified sources, we would appreciate that you include
+  in the file ChangeLog history information documenting your changes. Please
+  read the FAQ for more information on the distribution of modified source
+  versions.
+  
+=== expat
+
+The directory parser/expat is licensed under the following terms:
+(from parser/expat/COPYING)
+
+  Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
+                                 and Clark Cooper
+  Copyright (c) 2001, 2002 Expat maintainers.
+  
+  Permission is hereby granted, free of charge, to any person obtaining
+  a copy of this software and associated documentation files (the
+  "Software"), to deal in the Software without restriction, including
+  without limitation the rights to use, copy, modify, merge, publish,
+  distribute, sublicense, and/or sell copies of the Software, and to
+  permit persons to whom the Software is furnished to do so, subject to
+  the following conditions:
+  
+  The above copyright notice and this permission notice shall be included
+  in all copies or substantial portions of the Software.
+  
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/xulrunner-1.9.1.postinst.in
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/xulrunner-1.9.1.postinst.in
@@ -0,0 +1,22 @@
+#!/bin/sh
+set -e
+
+XUL_VERSION=@XULBRANCH@
+GRE_VERSION=`/usr/bin/xulrunner-$XUL_VERSION --gre-version`
+
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
+        /usr/sbin/update-alternatives --install /usr/bin/xulrunner \
+                xulrunner /usr/bin/xulrunner-$XUL_VERSION 50
+	if test -e /usr/lib/xulrunner-$GRE_VERSION/.autoreg; then
+		touch /usr/lib/xulrunner-$GRE_VERSION/.autoreg
+	fi
+
+	# Remove possible left-over
+	if [ -f /etc/ld.so.conf.d/xulrunner-$XUL_VERSION ] ; then
+		rm -f /etc/ld.so.conf.d/xulrunner-$XUL_VERSION
+	fi
+
+	ldconfig
+fi
+
+#DEBHELPER#
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/system-greprefs.js
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/system-greprefs.js
@@ -0,0 +1,6 @@
+//
+// insert your system greprefs here
+//
+
+// pref("general.config.filename", "defaults/syspref/system.cfg");
+
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/xulrunner-1.9.1-dev.install.lpia.pp
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/xulrunner-1.9.1-dev.install.lpia.pp
@@ -0,0 +1,5 @@
+#include xulrunner-1.9.1-dev.install
+
+# Files from JIT, only on 32bit arches
+# See: http://mxr.mozilla.org/mozilla-central/source/js/src/Makefile.in#242
+debian/tmp/usr/{include,share/idl}/xulrunner-1.9*/unstable/T[a-df-zA-Z]*
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/MPL
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/MPL
@@ -0,0 +1,567 @@
+                          MOZILLA PUBLIC LICENSE
+                                Version 1.1
+
+                              ---------------
+
+1. Definitions.
+
+     1.0.1. "Commercial Use" means distribution or otherwise making the
+     Covered Code available to a third party.
+
+     1.1. "Contributor" means each entity that creates or contributes to
+     the creation of Modifications.
+
+     1.2. "Contributor Version" means the combination of the Original
+     Code, prior Modifications used by a Contributor, and the Modifications
+     made by that particular Contributor.
+
+     1.3. "Covered Code" means the Original Code or Modifications or the
+     combination of the Original Code and Modifications, in each case
+     including portions thereof.
+
+     1.4. "Electronic Distribution Mechanism" means a mechanism generally
+     accepted in the software development community for the electronic
+     transfer of data.
+
+     1.5. "Executable" means Covered Code in any form other than Source
+     Code.
+
+     1.6. "Initial Developer" means the individual or entity identified
+     as the Initial Developer in the Source Code notice required by Exhibit
+     A.
+
+     1.7. "Larger Work" means a work which combines Covered Code or
+     portions thereof with code not governed by the terms of this License.
+
+     1.8. "License" means this document.
+
+     1.8.1. "Licensable" means having the right to grant, to the maximum
+     extent possible, whether at the time of the initial grant or
+     subsequently acquired, any and all of the rights conveyed herein.
+
+     1.9. "Modifications" means any addition to or deletion from the
+     substance or structure of either the Original Code or any previous
+     Modifications. When Covered Code is released as a series of files, a
+     Modification is:
+          A. Any addition to or deletion from the contents of a file
+          containing Original Code or previous Modifications.
+
+          B. Any new file that contains any part of the Original Code or
+          previous Modifications.
+
+     1.10. "Original Code" means Source Code of computer software code
+     which is described in the Source Code notice required by Exhibit A as
+     Original Code, and which, at the time of its release under this
+     License is not already Covered Code governed by this License.
+
+     1.10.1. "Patent Claims" means any patent claim(s), now owned or
+     hereafter acquired, including without limitation,  method, process,
+     and apparatus claims, in any patent Licensable by grantor.
+
+     1.11. "Source Code" means the preferred form of the Covered Code for
+     making modifications to it, including all modules it contains, plus
+     any associated interface definition files, scripts used to control
+     compilation and installation of an Executable, or source code
+     differential comparisons against either the Original Code or another
+     well known, available Covered Code of the Contributor's choice. The
+     Source Code can be in a compressed or archival form, provided the
+     appropriate decompression or de-archiving software is widely available
+     for no charge.
+
+     1.12. "You" (or "Your")  means an individual or a legal entity
+     exercising rights under, and complying with all of the terms of, this
+     License or a future version of this License issued under Section 6.1.
+     For legal entities, "You" includes any entity which controls, is
+     controlled by, or is under common control with You. For purposes of
+     this definition, "control" means (a) the power, direct or indirect,
+     to cause the direction or management of such entity, whether by
+     contract or otherwise, or (b) ownership of more than fifty percent
+     (50%) of the outstanding shares or beneficial ownership of such
+     entity.
+
+2. Source Code License.
+
+     2.1. The Initial Developer Grant.
+     The Initial Developer hereby grants You a world-wide, royalty-free,
+     non-exclusive license, subject to third party intellectual property
+     claims:
+          (a)  under intellectual property rights (other than patent or
+          trademark) Licensable by Initial Developer to use, reproduce,
+          modify, display, perform, sublicense and distribute the Original
+          Code (or portions thereof) with or without Modifications, and/or
+          as part of a Larger Work; and
+
+          (b) under Patents Claims infringed by the making, using or
+          selling of Original Code, to make, have made, use, practice,
+          sell, and offer for sale, and/or otherwise dispose of the
+          Original Code (or portions thereof).
+
+          (c) the licenses granted in this Section 2.1(a) and (b) are
+          effective on the date Initial Developer first distributes
+          Original Code under the terms of this License.
+
+          (d) Notwithstanding Section 2.1(b) above, no patent license is
+          granted: 1) for code that You delete from the Original Code; 2)
+          separate from the Original Code;  or 3) for infringements caused
+          by: i) the modification of the Original Code or ii) the
+          combination of the Original Code with other software or devices.
+
+     2.2. Contributor Grant.
+     Subject to third party intellectual property claims, each Contributor
+     hereby grants You a world-wide, royalty-free, non-exclusive license
+
+          (a)  under intellectual property rights (other than patent or
+          trademark) Licensable by Contributor, to use, reproduce, modify,
+          display, perform, sublicense and distribute the Modifications
+          created by such Contributor (or portions thereof) either on an
+          unmodified basis, with other Modifications, as Covered Code
+          and/or as part of a Larger Work; and
+
+          (b) under Patent Claims infringed by the making, using, or
+          selling of  Modifications made by that Contributor either alone
+          and/or in combination with its Contributor Version (or portions
+          of such combination), to make, use, sell, offer for sale, have
+          made, and/or otherwise dispose of: 1) Modifications made by that
+          Contributor (or portions thereof); and 2) the combination of
+          Modifications made by that Contributor with its Contributor
+          Version (or portions of such combination).
+
+          (c) the licenses granted in Sections 2.2(a) and 2.2(b) are
+          effective on the date Contributor first makes Commercial Use of
+          the Covered Code.
+
+          (d)    Notwithstanding Section 2.2(b) above, no patent license is
+          granted: 1) for any code that Contributor has deleted from the
+          Contributor Version; 2)  separate from the Contributor Version;
+          3)  for infringements caused by: i) third party modifications of
+          Contributor Version or ii)  the combination of Modifications made
+          by that Contributor with other software  (except as part of the
+          Contributor Version) or other devices; or 4) under Patent Claims
+          infringed by Covered Code in the absence of Modifications made by
+          that Contributor.
+
+3. Distribution Obligations.
+
+     3.1. Application of License.
+     The Modifications which You create or to which You contribute are
+     governed by the terms of this License, including without limitation
+     Section 2.2. The Source Code version of Covered Code may be
+     distributed only under the terms of this License or a future version
+     of this License released under Section 6.1, and You must include a
+     copy of this License with every copy of the Source Code You
+     distribute. You may not offer or impose any terms on any Source Code
+     version that alters or restricts the applicable version of this
+     License or the recipients' rights hereunder. However, You may include
+     an additional document offering the additional rights described in
+     Section 3.5.
+
+     3.2. Availability of Source Code.
+     Any Modification which You create or to which You contribute must be
+     made available in Source Code form under the terms of this License
+     either on the same media as an Executable version or via an accepted
+     Electronic Distribution Mechanism to anyone to whom you made an
+     Executable version available; and if made available via Electronic
+     Distribution Mechanism, must remain available for at least twelve (12)
+     months after the date it initially became available, or at least six
+     (6) months after a subsequent version of that particular Modification
+     has been made available to such recipients. You are responsible for
+     ensuring that the Source Code version remains available even if the
+     Electronic Distribution Mechanism is maintained by a third party.
+
+     3.3. Description of Modifications.
+     You must cause all Covered Code to which You contribute to contain a
+     file documenting the changes You made to create that Covered Code and
+     the date of any change. You must include a prominent statement that
+     the Modification is derived, directly or indirectly, from Original
+     Code provided by the Initial Developer and including the name of the
+     Initial Developer in (a) the Source Code, and (b) in any notice in an
+     Executable version or related documentation in which You describe the
+     origin or ownership of the Covered Code.
+
+     3.4. Intellectual Property Matters
+          (a) Third Party Claims.
+          If Contributor has knowledge that a license under a third party's
+          intellectual property rights is required to exercise the rights
+          granted by such Contributor under Sections 2.1 or 2.2,
+          Contributor must include a text file with the Source Code
+          distribution titled "LEGAL" which describes the claim and the
+          party making the claim in sufficient detail that a recipient will
+          know whom to contact. If Contributor obtains such knowledge after
+          the Modification is made available as described in Section 3.2,
+          Contributor shall promptly modify the LEGAL file in all copies
+          Contributor makes available thereafter and shall take other steps
+          (such as notifying appropriate mailing lists or newsgroups)
+          reasonably calculated to inform those who received the Covered
+          Code that new knowledge has been obtained.
+
+          (b) Contributor APIs.
+          If Contributor's Modifications include an application programming
+          interface and Contributor has knowledge of patent licenses which
+          are reasonably necessary to implement that API, Contributor must
+          also include this information in the LEGAL file.
+
+               (c)    Representations.
+          Contributor represents that, except as disclosed pursuant to
+          Section 3.4(a) above, Contributor believes that Contributor's
+          Modifications are Contributor's original creation(s) and/or
+          Contributor has sufficient rights to grant the rights conveyed by
+          this License.
+
+     3.5. Required Notices.
+     You must duplicate the notice in Exhibit A in each file of the Source
+     Code.  If it is not possible to put such notice in a particular Source
+     Code file due to its structure, then You must include such notice in a
+     location (such as a relevant directory) where a user would be likely
+     to look for such a notice.  If You created one or more Modification(s)
+     You may add your name as a Contributor to the notice described in
+     Exhibit A.  You must also duplicate this License in any documentation
+     for the Source Code where You describe recipients' rights or ownership
+     rights relating to Covered Code.  You may choose to offer, and to
+     charge a fee for, warranty, support, indemnity or liability
+     obligations to one or more recipients of Covered Code. However, You
+     may do so only on Your own behalf, and not on behalf of the Initial
+     Developer or any Contributor. You must make it absolutely clear than
+     any such warranty, support, indemnity or liability obligation is
+     offered by You alone, and You hereby agree to indemnify the Initial
+     Developer and every Contributor for any liability incurred by the
+     Initial Developer or such Contributor as a result of warranty,
+     support, indemnity or liability terms You offer.
+
+     3.6. Distribution of Executable Versions.
+     You may distribute Covered Code in Executable form only if the
+     requirements of Section 3.1-3.5 have been met for that Covered Code,
+     and if You include a notice stating that the Source Code version of
+     the Covered Code is available under the terms of this License,
+     including a description of how and where You have fulfilled the
+     obligations of Section 3.2. The notice must be conspicuously included
+     in any notice in an Executable version, related documentation or
+     collateral in which You describe recipients' rights relating to the
+     Covered Code. You may distribute the Executable version of Covered
+     Code or ownership rights under a license of Your choice, which may
+     contain terms different from this License, provided that You are in
+     compliance with the terms of this License and that the license for the
+     Executable version does not attempt to limit or alter the recipient's
+     rights in the Source Code version from the rights set forth in this
+     License. If You distribute the Executable version under a different
+     license You must make it absolutely clear that any terms which differ
+     from this License are offered by You alone, not by the Initial
+     Developer or any Contributor. You hereby agree to indemnify the
+     Initial Developer and every Contributor for any liability incurred by
+     the Initial Developer or such Contributor as a result of any such
+     terms You offer.
+
+     3.7. Larger Works.
+     You may create a Larger Work by combining Covered Code with other code
+     not governed by the terms of this License and distribute the Larger
+     Work as a single product. In such a case, You must make sure the
+     requirements of this License are fulfilled for the Covered Code.
+
+4. Inability to Comply Due to Statute or Regulation.
+
+     If it is impossible for You to comply with any of the terms of this
+     License with respect to some or all of the Covered Code due to
+     statute, judicial order, or regulation then You must: (a) comply with
+     the terms of this License to the maximum extent possible; and (b)
+     describe the limitations and the code they affect. Such description
+     must be included in the LEGAL file described in Section 3.4 and must
+     be included with all distributions of the Source Code. Except to the
+     extent prohibited by statute or regulation, such description must be
+     sufficiently detailed for a recipient of ordinary skill to be able to
+     understand it.
+
+5. Application of this License.
+
+     This License applies to code to which the Initial Developer has
+     attached the notice in Exhibit A and to related Covered Code.
+
+6. Versions of the License.
+
+     6.1. New Versions.
+     Netscape Communications Corporation ("Netscape") may publish revised
+     and/or new versions of the License from time to time. Each version
+     will be given a distinguishing version number.
+
+     6.2. Effect of New Versions.
+     Once Covered Code has been published under a particular version of the
+     License, You may always continue to use it under the terms of that
+     version. You may also choose to use such Covered Code under the terms
+     of any subsequent version of the License published by Netscape. No one
+     other than Netscape has the right to modify the terms applicable to
+     Covered Code created under this License.
+
+     6.3. Derivative Works.
+     If You create or use a modified version of this License (which you may
+     only do in order to apply it to code which is not already Covered Code
+     governed by this License), You must (a) rename Your license so that
+     the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape",
+     "MPL", "NPL" or any confusingly similar phrase do not appear in your
+     license (except to note that your license differs from this License)
+     and (b) otherwise make it clear that Your version of the license
+     contains terms which differ from the Mozilla Public License and
+     Netscape Public License. (Filling in the name of the Initial
+     Developer, Original Code or Contributor in the notice described in
+     Exhibit A shall not of themselves be deemed to be modifications of
+     this License.)
+
+7. DISCLAIMER OF WARRANTY.
+
+     COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
+     WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+     WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
+     DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
+     THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
+     IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
+     YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
+     COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
+     OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
+     ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
+
+8. TERMINATION.
+
+     8.1.  This License and the rights granted hereunder will terminate
+     automatically if You fail to comply with terms herein and fail to cure
+     such breach within 30 days of becoming aware of the breach. All
+     sublicenses to the Covered Code which are properly granted shall
+     survive any termination of this License. Provisions which, by their
+     nature, must remain in effect beyond the termination of this License
+     shall survive.
+
+     8.2.  If You initiate litigation by asserting a patent infringement
+     claim (excluding declatory judgment actions) against Initial Developer
+     or a Contributor (the Initial Developer or Contributor against whom
+     You file such action is referred to as "Participant")  alleging that:
+
+     (a)  such Participant's Contributor Version directly or indirectly
+     infringes any patent, then any and all rights granted by such
+     Participant to You under Sections 2.1 and/or 2.2 of this License
+     shall, upon 60 days notice from Participant terminate prospectively,
+     unless if within 60 days after receipt of notice You either: (i)
+     agree in writing to pay Participant a mutually agreeable reasonable
+     royalty for Your past and future use of Modifications made by such
+     Participant, or (ii) withdraw Your litigation claim with respect to
+     the Contributor Version against such Participant.  If within 60 days
+     of notice, a reasonable royalty and payment arrangement are not
+     mutually agreed upon in writing by the parties or the litigation claim
+     is not withdrawn, the rights granted by Participant to You under
+     Sections 2.1 and/or 2.2 automatically terminate at the expiration of
+     the 60 day notice period specified above.
+
+     (b)  any software, hardware, or device, other than such Participant's
+     Contributor Version, directly or indirectly infringes any patent, then
+     any rights granted to You by such Participant under Sections 2.1(b)
+     and 2.2(b) are revoked effective as of the date You first made, used,
+     sold, distributed, or had made, Modifications made by that
+     Participant.
+
+     8.3.  If You assert a patent infringement claim against Participant
+     alleging that such Participant's Contributor Version directly or
+     indirectly infringes any patent where such claim is resolved (such as
+     by license or settlement) prior to the initiation of patent
+     infringement litigation, then the reasonable value of the licenses
+     granted by such Participant under Sections 2.1 or 2.2 shall be taken
+     into account in determining the amount or value of any payment or
+     license.
+
+     8.4.  In the event of termination under Sections 8.1 or 8.2 above,
+     all end user license agreements (excluding distributors and resellers)
+     which have been validly granted by You or any distributor hereunder
+     prior to termination shall survive termination.
+
+9. LIMITATION OF LIABILITY.
+
+     UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
+     (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
+     DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
+     OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
+     ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
+     CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
+     WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
+     COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
+     INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
+     LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
+     RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
+     PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
+     EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
+     THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
+
+10. U.S. GOVERNMENT END USERS.
+
+     The Covered Code is a "commercial item," as that term is defined in
+     48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
+     software" and "commercial computer software documentation," as such
+     terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
+     C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
+     all U.S. Government End Users acquire Covered Code with only those
+     rights set forth herein.
+
+11. MISCELLANEOUS.
+
+     This License represents the complete agreement concerning subject
+     matter hereof. If any provision of this License is held to be
+     unenforceable, such provision shall be reformed only to the extent
+     necessary to make it enforceable. This License shall be governed by
+     California law provisions (except to the extent applicable law, if
+     any, provides otherwise), excluding its conflict-of-law provisions.
+     With respect to disputes in which at least one party is a citizen of,
+     or an entity chartered or registered to do business in the United
+     States of America, any litigation relating to this License shall be
+     subject to the jurisdiction of the Federal Courts of the Northern
+     District of California, with venue lying in Santa Clara County,
+     California, with the losing party responsible for costs, including
+     without limitation, court costs and reasonable attorneys' fees and
+     expenses. The application of the United Nations Convention on
+     Contracts for the International Sale of Goods is expressly excluded.
+     Any law or regulation which provides that the language of a contract
+     shall be construed against the drafter shall not apply to this
+     License.
+
+12. RESPONSIBILITY FOR CLAIMS.
+
+     As between Initial Developer and the Contributors, each party is
+     responsible for claims and damages arising, directly or indirectly,
+     out of its utilization of rights under this License and You agree to
+     work with Initial Developer and Contributors to distribute such
+     responsibility on an equitable basis. Nothing herein is intended or
+     shall be deemed to constitute any admission of liability.
+
+13. MULTIPLE-LICENSED CODE.
+
+     Initial Developer may designate portions of the Covered Code as
+     "Multiple-Licensed".  "Multiple-Licensed" means that the Initial
+     Developer permits you to utilize portions of the Covered Code under
+     Your choice of the NPL or the alternative licenses, if any, specified
+     by the Initial Developer in the file described in Exhibit A.
+
+EXHIBIT A -Mozilla Public License.
+
+     ``The contents of this file are subject to the Mozilla Public License
+     Version 1.1 (the "License"); you may not use this file except in
+     compliance with the License. You may obtain a copy of the License at
+     http://www.mozilla.org/MPL/
+
+     Software distributed under the License is distributed on an "AS IS"
+     basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+     License for the specific language governing rights and limitations
+     under the License.
+
+     The Original Code is ______________________________________.
+
+     The Initial Developer of the Original Code is ________________________.
+     Portions created by ______________________ are Copyright (C) ______
+     _______________________. All Rights Reserved.
+
+     Contributor(s): ______________________________________.
+
+     Alternatively, the contents of this file may be used under the terms
+     of the _____ license (the  "[___] License"), in which case the
+     provisions of [______] License are applicable instead of those
+     above.  If you wish to allow use of your version of this file only
+     under the terms of the [____] License and not to allow others to use
+     your version of this file under the MPL, indicate your decision by
+     deleting  the provisions above and replace  them with the notice and
+     other provisions required by the [___] License.  If you do not delete
+     the provisions above, a recipient may use your version of this file
+     under either the MPL or the [___] License."
+
+     [NOTE: The text of this Exhibit A may differ slightly from the text of
+     the notices in the Source Code files of the Original Code. You should
+     use the text of this Exhibit A rather than the text found in the
+     Original Code Source Code for Your Modifications.]
+
+     ----------------------------------------------------------------------
+
+     AMENDMENTS
+
+     The Netscape Public License Version 1.1 ("NPL") consists of the
+     Mozilla Public License Version 1.1 with the following Amendments,
+     including Exhibit A-Netscape Public License.  Files identified with
+     "Exhibit A-Netscape Public License" are governed by the Netscape
+     Public License Version 1.1.
+
+     Additional Terms applicable to the Netscape Public License.
+          I. Effect.
+          These additional terms described in this Netscape Public
+          License -- Amendments shall apply to the Mozilla Communicator
+          client code and to all Covered Code under this License.
+
+          II. "Netscape's Branded Code" means Covered Code that Netscape
+          distributes and/or permits others to distribute under one or more
+          trademark(s) which are controlled by Netscape but which are not
+          licensed for use under this License.
+
+          III. Netscape and logo.
+          This License does not grant any rights to use the trademarks
+          "Netscape", the "Netscape N and horizon" logo or the "Netscape
+          lighthouse" logo, "Netcenter", "Gecko", "Java" or "JavaScript",
+          "Smart Browsing" even if such marks are included in the Original
+          Code or Modifications.
+
+          IV. Inability to Comply Due to Contractual Obligation.
+          Prior to licensing the Original Code under this License, Netscape
+          has licensed third party code for use in Netscape's Branded Code.
+          To the extent that Netscape is limited contractually from making
+          such third party code available under this License, Netscape may
+          choose to reintegrate such code into Covered Code without being
+          required to distribute such code in Source Code form, even if
+          such code would otherwise be considered "Modifications" under
+          this License.
+
+          V. Use of Modifications and Covered Code by Initial Developer.
+               V.1. In General.
+               The obligations of Section 3 apply to Netscape, except to
+               the extent specified in this Amendment, Section V.2 and V.3.
+
+               V.2. Other Products.
+               Netscape may include Covered Code in products other than the
+               Netscape's Branded Code which are released by Netscape
+               during the two (2) years following the release date of the
+               Original Code, without such additional products becoming
+               subject to the terms of this License, and may license such
+               additional products on different terms from those contained
+               in this License.
+
+               V.3. Alternative Licensing.
+               Netscape may license the Source Code of Netscape's Branded
+               Code, including Modifications incorporated therein, without
+               such Netscape Branded Code becoming subject to the terms of
+               this License, and may license such Netscape Branded Code on
+               different terms from those contained in this License.
+
+          VI. Litigation.
+          Notwithstanding the limitations of Section 11 above, the
+          provisions regarding litigation in Section 11(a), (b) and (c) of
+          the License shall apply to all disputes relating to this License.
+
+     EXHIBIT A-Netscape Public License.
+
+          "The contents of this file are subject to the Netscape Public
+          License Version 1.1 (the "License"); you may not use this file
+          except in compliance with the License. You may obtain a copy of
+          the License at http://www.mozilla.org/NPL/
+
+          Software distributed under the License is distributed on an "AS
+          IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+          implied. See the License for the specific language governing
+          rights and limitations under the License.
+
+          The Original Code is Mozilla Communicator client code, released
+          March 31, 1998.
+
+          The Initial Developer of the Original Code is Netscape
+          Communications Corporation. Portions created by Netscape are
+          Copyright (C) 1998-1999 Netscape Communications Corporation. All
+          Rights Reserved.
+
+          Contributor(s): ______________________________________.
+
+          Alternatively, the contents of this file may be used under the
+          terms of the _____ license (the "[___] License"), in which case
+          the provisions of [______] License are applicable  instead of
+          those above.  If you wish to allow use of your version of this
+          file only under the terms of the [____] License and not to allow
+          others to use your version of this file under the NPL, indicate
+          your decision by deleting  the provisions above and replace  them
+          with the notice and other provisions required by the [___]
+          License.  If you do not delete the provisions above, a recipient
+          may use your version of this file under either the NPL or the
+          [___] License."
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/control
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/control
@@ -0,0 +1,103 @@
+Source: xulrunner-1.9.1
+Section: devel
+Priority: optional
+Maintainer: Ubuntu Mozilla Team <ubuntu-mozillateam@lists.ubuntu.com>
+Homepage: http://developer.mozilla.org/en/docs/XULRunner
+Vcs-Bzr: https://code.launchpad.net/~mozillateam/xulrunner/xulrunner-1.9.1.head
+Build-Depends: cdbs, debhelper (>= 5.0.37.2), dpkg-dev (>= 1.13.19), quilt,
+	autoconf2.13, autotools-dev,
+	libx11-dev (>= 2:1.0), libxt-dev,
+	libidl-dev,
+	libgtk2.0-dev (>= 2.12), libglib2.0-dev (>= 2.12),
+	libstartup-notification0-dev,
+	libgnomevfs2-dev (>= 1:2.16), libgnome2-dev (>= 2.16), libgnomeui-dev (>= 2.16),
+	libdbus-1-dev (>= 1.0.0), libdbus-glib-1-dev (>= 0.60),
+	libhal-dev (>= 0.5.8),
+	libcairo2-dev,
+	libpixman-1-dev,
+	libpng12-dev (>= 1.2.0),
+	libjpeg62-dev (>= 6b),
+	zlib1g-dev (>= 1:1.2.3), libbz2-dev, zip,
+	libreadline5-dev | libreadline-dev,
+	libkrb5-dev,
+	libasound2-dev,
+	python-dev, python-support (>= 0.3),
+	binutils (>= 2.17) [mips mipsel],
+	libhunspell-dev (>= 1.1.5-2),
+	libnspr4-dev (>= 4.7.1~beta2), libnss3-dev (>= 3.12.0~beta3),
+	libsqlite3-dev,
+	mozilla-devscripts (>= 0.08~),
+	libiw-dev, libiw-dev (>= 29-2ubuntu6) [sparc powerpc]
+Standards-Version: 3.8.1
+
+Package: xulrunner-1.9.1
+Section: devel
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: libcanberra0
+Conflicts: j2re1.4, libxul-dev, libmozjs-dev
+Description: XUL + XPCOM application runner
+ XULRunner is a single "gecko runtime" that can be used to bootstrap
+ multiple XUL + XPCOM applications that are as rich as Firefox and
+ Thunderbird.
+ .
+ XUL is Mozilla's XML based User Interface language that lets you build
+ feature-rich cross platform applications. These applications are easily
+ customized with alternative text, graphics and layout so that they can be
+ readily branded or localized for various markets. Web developers already
+ familiar with Dynamic HTML (DHTML) will learn XUL quickly and can start
+ building applications right away.
+ .
+ XPCOM is a cross platform component model. It has multiple language
+ bindings and IDL descriptions so programmers can plug their custom
+ functionality into the framework and connect it with other components.
+
+Package: xulrunner-1.9.1-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${shlibs:Depends}, ${misc:Depends}, xulrunner-1.9.1 (= ${binary:Version})
+Description: xulrunner-1.9.1 debug symbols
+ Debug symbols for XULRunner 1.9.1.
+
+Package: xulrunner-1.9.1-dev
+Section: devel
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, xulrunner-1.9.1 (= ${binary:Version}),  libnspr4-dev, libnss3-dev
+Conflicts: libxul-dev, mozilla-dev, xulrunner-1.9-dev, xulrunner-1.9.2-dev
+Description: XUL + XPCOM development files
+ This package contains the development headers, idl files and static libraries
+ needed to develop applications using Mozilla XUL Engine
+
+Package: xulrunner-dev
+Section: devel
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, xulrunner-1.9.1-dev (>= ${source:Upstream-Version})
+Description: Debian compatibility and meta package for XUL + XPCOM development files
+ This (empty) package eases the life on sync's and merges in ubuntu by providing the
+ package name used by debian. Also it defines the current default xulrunner development
+ package in ubuntu.
+
+Package: xulrunner-1.9.1-gnome-support
+Section: devel
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, xulrunner-1.9.1 (= ${binary:Version})
+Description: Support for GNOME in xulrunner-1.9.1 applications
+ This is an extension to xulrunner-1.9.1 that allows XUL applications to use
+ protocol handlers from GnomeVFS, such as smb or sftp, and other GNOME
+ integration features.
+
+Package: xulrunner-1.9.1-testsuite
+Section: devel
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, xulrunner-1.9.1 (= ${binary:Version})
+Description: Test Suite from XULRunner 1.9.1
+ This package contains the Test Suite of XULRunner 1.9.1
+
+Package: xulrunner-1.9.1-testsuite-dev
+Section: devel
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, xulrunner-1.9.1-dev (= ${binary:Version})
+Conflicts: xulrunner-1.9.2-testsuite-dev
+Description: Test Suite development files for XULRunner 1.9.1
+ This package contains the development files for the Test Suite of XULRunner 1.9.1
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/xulrunner-1.9.1.prerm.in
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/xulrunner-1.9.1.prerm.in
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+XUL_VERSION=@XULBRANCH@
+
+if [ "$1" = "remove" ] || [ "$1" = upgrade ]; then
+        /usr/sbin/update-alternatives --remove xulrunner /usr/bin/xulrunner-$XUL_VERSION
+fi
+
+#DEBHELPER#
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/rules
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/rules
@@ -0,0 +1,271 @@
+#!/usr/bin/make -f
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE	?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE	?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_BUILD_ARCH		?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+DEB_MOZ_APPLICATION	:= $(shell dpkg-parsechangelog | sed -n 's/^Source: *\(.*\)$$/\1/ p')
+DEB_MOZ_VERSION		:= $(shell echo $(DEB_MOZ_APPLICATION) | sed -e 's/.*-//')
+
+DEBIAN_VERSION		:= $(shell dpkg-parsechangelog | sed -n 's/^Version: *\(.*\)$$/\1/ p')
+DEBIAN_REV_CODE		:= $(shell echo $(DEBIAN_VERSION) | sed 's/^.*-\([0-9]*\)[^-]*$$/0\1/ ; s/^.*\(..\)$$/\1/')
+DEBIAN_XUL_VER		 = $(shell tail -1 mozilla/config/milestone.txt)
+DEBIAN_XUL_DIR		 = /usr/lib/xulrunner-$(DEBIAN_XUL_VER)
+DEBIAN_XUL_INCLUDE_DIR	 = /usr/include/xulrunner-$(DEBIAN_XUL_VER)
+DEB_SRCDIR		:= mozilla
+
+MOZCLIENT_PROJECTNAME   := $(DEB_MOZ_APPLICATION)
+MOZCLIENT_PROJECTDIR    := $(CURDIR)/debian/mozclient
+
+# minVersion and maxVersion used in install.rdf
+EM_TRANSLATION_VERSION		= $(DEBIAN_XUL_VER)
+EM_TRANSLATION_MIN_VERSION	= 1.9.1
+EM_TRANSLATION_MAX_VERSION	= 1.9.1.*
+
+EXTRA_SYSTEM_CONFIGURE_FLAGS = $(NULL)
+
+WANT_UNIT_TESTS ?= 1
+$(info WANT_UNIT_TESTS=$(WANT_UNIT_TESTS))
+ifeq (1,$(WANT_UNIT_TESTS))
+  EXTRA_SYSTEM_CONFIGURE_FLAGS += --enable-tests --enable-mochitest
+else
+  EXTRA_SYSTEM_CONFIGURE_FLAGS += --disable-tests --disable-mochitest
+endif
+
+USE_SYSTEM_CAIRO := $(shell pkg-config --exists 'cairo >= 1.6.0'; a=$$?; if test $$a != 1; then echo 1; fi)
+# for old cairo versions we cannot use system cairo
+ifeq (1,$(USE_SYSTEM_CAIRO))
+   EXTRA_SYSTEM_CONFIGURE_FLAGS += --enable-system-cairo
+else
+   EXTRA_SYSTEM_CONFIGURE_FLAGS += --disable-system-cairo
+endif
+
+USE_SYSTEM_SQLITE :=  $(shell pkg-config --exists 'sqlite3 >= 3.6.16'; a=$$?; if test $$a != 1; then echo 1; fi)
+ifeq (1,$(USE_SYSTEM_SQLITE))
+   EXTRA_SYSTEM_CONFIGURE_FLAGS += --enable-system-sqlite
+else
+   EXTRA_SYSTEM_CONFIGURE_FLAGS += --disable-system-sqlite
+endif
+
+USE_SYSTEM_NSPR := $(shell pkg-config --exists 'nspr >= 4.8'; a=$$?; if test $$a != 1; then echo 1; fi)
+ifeq (1,$(USE_SYSTEM_NSPR))
+   EXTRA_SYSTEM_CONFIGURE_FLAGS += --with-system-nspr
+endif
+
+USE_SYSTEM_NSS := $(shell pkg-config --exists 'nss >= 3.12.3'; a=$$?; if test $$a != 1; then echo 1; fi)
+ifeq (1,$(USE_SYSTEM_NSS))
+   EXTRA_SYSTEM_CONFIGURE_FLAGS += --with-system-nss
+endif
+
+USE_SYSTEM_HUNSPELL := $(shell pkg-config --exists 'hunspell >= 1.2'; a=$$?; if test $$a != 1; then echo 1; fi)
+ifeq (1,$(USE_SYSTEM_HUNSPELL))
+   EXTRA_SYSTEM_CONFIGURE_FLAGS += --enable-system-hunspell
+else
+   EXTRA_SYSTEM_CONFIGURE_FLAGS += --disable-system-hunspell
+endif
+
+# translation flags
+
+MOZ_TRANSLATION_AUTO_XPI_OUTDIR		:= debian/lp-export-xpis/
+MOZ_TRANSLATION_AUTO_XPI_SEARCHDIRS	:= debian/$(DEB_MOZ_APPLICATION)
+MOZ_TRANSLATION_AUTO_XPI_LOCALE		:= en-US
+
+# enable below to disable symbolic-functions linkage
+# LDFLAGS=$(shell echo $$LDFLAGS | sed -e 's/-Wl,-Bsymbolic-functions//')
+# export LDFLAGS
+
+DEB_AUTO_UPDATE_AUTOCONF=2.13
+
+# workaround cdbs wrongly unapplying patches before cleaning up
+clean:: 
+	[ ! -f $(DEB_SRCDIR)/Makefile ] || $(MAKE) -C $(DEB_SRCDIR) distclean
+
+ifneq (,$(wildcard *.tar.bz2)$(DEBIAN_MOZCLIENT_EMBEDDED))
+   DEB_TAR_SRCDIR := mozilla
+   MOZCLIENT_EMBEDDED = 1
+   DEBIAN_XUL_VER = $(shell tail -1 build-tree/mozilla/config/milestone.txt)
+   include /usr/share/cdbs/1/rules/tarball.mk
+endif
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+include /usr/share/cdbs/1/class/autotools.mk
+include $(CURDIR)/debian/mozclient/$(DEB_MOZ_APPLICATION).mk
+include /usr/share/mozilla-devscripts/lp-locale-export.mk
+
+ifeq (1,$(WANT_UNIT_TESTS))
+# IGNORE_TEST_FAILURES	 = --ignore-errors
+DEB_MAKE_CHECK_TARGET	 = $(IGNORE_TEST_FAILURES) check || exit 0
+endif
+
+DEB_MAKE_CLEAN_TARGET	 = $(NULL)
+# We don't want build-tree/mozilla/README to be shipped as a doc
+DEB_INSTALL_DOCS_ALL	:= $(NULL)
+MOZ_APPLICATION		 = xulrunner
+
+# List all extensions we want
+DEB_MOZ_EXTENSIONS=default,python
+
+CFLAGS   = -g
+CXXFLAGS = -g
+
+BUILD_OFFICIAL = 1
+export BUILD_OFFICIAL
+
+DEB_CONFIGURE_USER_FLAGS= \
+	$(EXTRA_SYSTEM_CONFIGURE_FLAGS) \
+	--enable-application=$(MOZ_APPLICATION) \
+	--enable-extensions=$(DEB_MOZ_EXTENSIONS) \
+	--with-default-mozilla-five-home=$(DEBIAN_XUL_DIR) \
+	--enable-safe-browsing \
+	--enable-startup-notification \
+	--with-user-appdir=.mozilla \
+	--without-system-jpeg \
+	--with-system-zlib=/usr \
+	--with-system-bz2=/usr \
+	--disable-javaxpcom \
+	--disable-crashreporter \
+	--disable-elf-dynstr-gc \
+	--disable-installer \
+	--disable-strip \
+	--disable-strip-libs \
+	--disable-install-strip \
+	--disable-updater \
+	--enable-optimize \
+	--with-distribution-id=com.ubuntu \
+	$(NULL)
+
+# powerpc xpidl crashes with -Os when built with gcc 4.4 (karmic) - see lp:435560
+ifneq (,$(findstring powerpc,$(DEB_BUILD_ARCH)))
+DEB_CONFIGURE_USER_FLAGS += --enable-optimize=-O2
+endif
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	DEB_CONFIGURE_USER_FLAGS += \
+		--disable-optimize \
+		--enable-optimize="-O0 -g" \
+		$(NULL)
+endif
+
+# disable jit on sparc until bmo 502369 is fixable
+ifneq (,$(findstring sparc,$(DEB_BUILD_ARCH)))
+	DEB_CONFIGURE_USER_FLAGS += --disable-jit
+endif
+
+NOT_EXECUTABLE = \
+	*.xml \
+	*.js  \
+	*.png \
+	*.xpm \
+	*.h \
+	*.idl \
+	*.txt \
+	LICENSE \
+	$(NULL)
+
+ifeq (1,$(USE_SYSTEM_NSS))
+binary-install/$(DEB_MOZ_APPLICATION)::
+	dh_link usr/lib/nss/libnssckbi.so $(DEBIAN_XUL_DIR)/libnssckbi.so
+endif
+
+binary-install/$(DEB_MOZ_APPLICATION)::
+	touch debian/xulrunner-$(DEB_MOZ_VERSION)/$(DEBIAN_XUL_DIR)/.autoreg
+	dh_link usr/lib/xulrunner-addons/extensions  $(DEBIAN_XUL_DIR)/extensions
+	dh_link usr/lib/xulrunner-addons/plugins  $(DEBIAN_XUL_DIR)/plugins
+	dh_link $(DEBIAN_XUL_DIR)/xulrunner /usr/bin/$(DEB_MOZ_APPLICATION)
+	dh_link $(DEBIAN_XUL_DIR)/xpcshell /usr/bin/xpcshell-$(DEB_MOZ_VERSION)
+ifneq (1,$(USE_SYSTEM_SQLITE))
+	dh_link $(DEBIAN_XUL_DIR)/libsqlite3.so $(DEBIAN_XUL_DIR)/libsqlite3.so.0
+endif
+	dh_install debian/system-greprefs.js /etc/xulrunner-$(DEB_MOZ_VERSION)/ 
+	dh_link /etc/xulrunner-$(DEB_MOZ_VERSION)/system-greprefs.js $(DEBIAN_XUL_DIR)/greprefs/system-greprefs.js
+
+LOCALE_VERSION = $(shell echo $(DEBIAN_VERSION) | sed -e 's/~hg.*/pre/' | tr -d '~')
+
+binary-post-install/$(DEB_MOZ_APPLICATION):: auto-locale-xpi.mk/translate fix-permissions compare test-results
+	dh_install -p$(DEB_MOZ_APPLICATION)-dev debian/build-system.tar.gz /usr/lib/xulrunner-devel-$(DEBIAN_XUL_VER)/sdk/
+	dh_install -p$(DEB_MOZ_APPLICATION)-testsuite debian/test-results.tar.gz /usr/lib/xulrunner-devel-$(DEBIAN_XUL_VER)/
+	sed \
+		-e 's/@EM_VERSION@/$(EM_TRANSLATION_VERSION)/' \
+		-e 's/@EM_TOOLKIT_MIN_VERSION@/$(EM_TRANSLATION_MIN_VERSION)/' \
+		-e 's/@EM_TOOLKIT_MAX_VERSION@/$(EM_TRANSLATION_MAX_VERSION)/' \
+		< debian/translation-support/install.rdf.in > debian/install.rdf
+	cd debian && zip lp-export-xpis/en-US.xpi install.rdf
+ifeq (,$(findstring $(EM_TRANSLATION_VERSION), $(LOCALE_VERSION)))
+	$(warning EM_TRANSLATION_VERSION=$(EM_TRANSLATION_VERSION) LOCALE_VERSION=$(LOCALE_VERSION). You need to explicitly adjust the translation version and min/max bounds.)
+endif
+
+binary-install/$(DEB_MOZ_APPLICATION)-dev::
+ifeq (1,$(USE_SYSTEM_NSPR))
+	dh_link -p$(DEB_MOZ_APPLICATION)-dev /usr/bin/nspr-config $(DEBIAN_XUL_DIR)/nspr-config
+	dh_link -p$(DEB_MOZ_APPLICATION)-dev /usr/include/nspr $(DEBIAN_XUL_INCLUDE_DIR)/unstable/nspr
+	dh_link -p$(DEB_MOZ_APPLICATION)-dev /usr/include/nspr $(DEBIAN_XUL_INCLUDE_DIR)/stable/nspr
+else
+	dh_install -p$(DEB_MOZ_APPLICATION)-dev debian/tmp/$(DEBIAN_XUL_DIR)/nspr-config
+endif
+
+binary-post-install/$(DEB_MOZ_APPLICATION)-dev::
+	for i in "$(wildcard debian/$(DEB_MOZ_APPLICATION)-dev/usr/lib/pkgconfig/*.pc)"; do \
+		sed -i 's/Cflags:\(.*\)$$/Cflags:\1 -I$${includedir}\/stable\/nspr/' $$i; \
+	done
+
+TEST_RESULTS = \
+	tools/test-harness \
+	_leaktest \
+	_profile \
+	_tests \
+	$(NULL)
+
+test-results: debian/test-results-stamp
+debian/test-results-stamp:
+	( cd $(DEB_BUILDDIR) ; tar zcvfh $(CURDIR)/debian/test-results.tar.gz $(TEST_RESULTS) )
+	touch $@
+
+FIND_EXP = $(foreach ext,$(NOT_EXECUTABLE),-name '$(ext)' -o)
+FIND_NOT_EXECUTABLE = $(wordlist 1, $(shell expr $(words $(FIND_EXP)) - 1), $(FIND_EXP))
+
+post-patches:: debian/stamp-autotools-files-moz
+debian/stamp-autotools-files-moz:
+	if [ "Z$(DEB_AUTO_UPDATE_AUTOCONF)" != Z ] || [ ! -e $(DEB_SRCDIR)/js/src/configure ]; \
+	then cd $(DEB_SRCDIR)/js/src && `which autoconf$(DEB_AUTO_UPDATE_AUTOCONF) || which autoconf`; fi
+	touch $@
+
+subst_files = \
+	debian/$(DEB_MOZ_APPLICATION).preinst \
+	debian/$(DEB_MOZ_APPLICATION).postinst \
+	debian/$(DEB_MOZ_APPLICATION).prerm \
+	debian/$(DEB_MOZ_APPLICATION).postrm \
+	$(NULL)
+
+# debian/<pkg>.install.<arch> files to be generated from debian/<pkg>.install.<arch>.pp
+install_files = \
+	$(patsubst %.pp,%,$(foreach file,$(DEB_ALL_PACKAGES),$(wildcard debian/$(file).install.$(DEB_BUILD_ARCH).pp))) \
+	$(NULL)
+
+post-patches:: $(subst_files) $(install_files) debian/build-system.tar.gz
+
+debian/build-system.tar.gz:
+	# Create a build-system for xulrunner applications
+	sh debian/create-build-system.sh
+
+fix-permissions:
+	# Fix permissions
+	cd debian/tmp ; \
+	find . -type f \( $(FIND_NOT_EXECUTABLE) \) -perm -u=x -exec chmod -c 644 {} \;
+
+%: %.pp
+	# Pre-processing $@
+	perl $(DEB_BUILDDIR)/config/preprocessor.pl $< > $@
+
+%: %.in
+	sed -e 's,@XULDIR@,$(DEBIAN_XUL_DIR),g' \
+	    -e 's,@XULVER@,$(DEBIAN_XUL_VER),g' \
+	    -e 's,@XULBRANCH@,$(DEB_MOZ_VERSION),g' \
+	< $< > $@
+
+clean::
+	rm -f $(subst_files) $(install_files) debian/install.rdf
+	rm -f debian/test-results.tar.gz debian/test-results-stamp
+	rm -f debian/build-system.tar.gz
+	rm -f debian/stamp-autotools-files-moz
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/xulrunner-1.9.1-gnome-support.install
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/xulrunner-1.9.1-gnome-support.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/xulrunner-1.9*/components/libmozgnome.so
+debian/tmp/usr/lib/xulrunner-1.9*/components/libnkgnomevfs.so
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/xulrunner-1.9.1.install
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/xulrunner-1.9.1.install
@@ -0,0 +1,34 @@
+debian/tmp/etc/gre.d/1.9*.system.conf
+debian/tmp/usr/lib/xulrunner-1.9*/[A-MOQVX-Zdabdfh-moqsv-z]*
+debian/tmp/usr/lib/xulrunner-1.9*/greprefs
+debian/tmp/usr/lib/xulrunner-1.9*/platform.ini
+#debian/tmp/usr/lib/xulrunner-1.9*/plugins usr/lib/xulrunner-addons
+#debian/tmp/usr/lib/xulrunner-1.9*/python
+debian/tmp/usr/lib/xulrunner-1.9*/res/[ac-ik-rv-zA-Z]*
+debian/tmp/usr/lib/xulrunner-1.9*/res/b[a-km-zA-Z]*
+debian/tmp/usr/lib/xulrunner-1.9*/res/s[a-su-zA-Z]*
+debian/tmp/usr/lib/xulrunner-1.9*/res/t[a-df-zA-Z]*
+debian/tmp/usr/lib/xulrunner-1.9*/res/u[a-qs-zA-Z]*
+debian/tmp/usr/lib/xulrunner-1.9*/run-mozilla.sh
+debian/tmp/usr/lib/xulrunner-1.9*/README.txt
+debian/tmp/usr/lib/xulrunner-1.9*/chrome/[A-Za-oqs-wyz]*
+debian/tmp/usr/lib/xulrunner-1.9*/chrome/p[b-zA-Z]*
+debian/tmp/usr/lib/xulrunner-1.9*/components/[A-Za-gi-kmoqsu-wyz]*
+debian/tmp/usr/lib/xulrunner-1.9*/components/htmlparser.xpt
+debian/tmp/usr/lib/xulrunner-1.9*/components/l[a-hj-z]*
+debian/tmp/usr/lib/xulrunner-1.9*/components/n[a-rt-z]*
+debian/tmp/usr/lib/xulrunner-1.9*/components/ns[A-RT-Z]*
+debian/tmp/usr/lib/xulrunner-1.9*/components/nsS[b-z]*
+debian/tmp/usr/lib/xulrunner-1.9*/components/p[a-qs-z]*
+debian/tmp/usr/lib/xulrunner-1.9*/components/pre*
+debian/tmp/usr/lib/xulrunner-1.9*/components/profile.xpt
+debian/tmp/usr/lib/xulrunner-1.9*/components/proxyObjInst.xpt
+debian/tmp/usr/lib/xulrunner-1.9*/components/r[a-df-z]*
+debian/tmp/usr/lib/xulrunner-1.9*/components/t[a-df-oq-z]*
+debian/tmp/usr/lib/xulrunner-1.9*/components/x[a-oq-z]*
+debian/tmp/usr/lib/xulrunner-1.9*/components/xp[abd-z]*
+debian/tmp/usr/lib/xulrunner-1.9*/components/xpcom_*
+debian/tmp/usr/lib/xulrunner-1.9*/components/xpconnect.xpt
+#debian/tmp/usr/lib/xulrunner-1.9*/components/libpyloader.so
+debian/tmp/usr/lib/xulrunner-1.9*/components/libimgicon.so
+debian/tmp/usr/lib/xulrunner-1.9*/components/libdbusservice.so
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/xulrunner-1.9.1-testsuite-dev.install
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/xulrunner-1.9.1-testsuite-dev.install
@@ -0,0 +1,27 @@
+debian/tmp/usr/include/xulrunner-1.9*/unstable/nsIHttpServer.h
+debian/tmp/usr/include/xulrunner-1.9*/unstable/nsISample.h
+debian/tmp/usr/include/xulrunner-1.9*/unstable/nsITestProxy.h
+debian/tmp/usr/include/xulrunner-1.9*/unstable/TestHarness.h
+debian/tmp/usr/include/xulrunner-1.9*/unstable/xpctest2.h
+debian/tmp/usr/include/xulrunner-1.9*/unstable/xpctest_attributes.h
+debian/tmp/usr/include/xulrunner-1.9*/unstable/xpctest_calljs.h
+debian/tmp/usr/include/xulrunner-1.9*/unstable/xpctest_const.h
+debian/tmp/usr/include/xulrunner-1.9*/unstable/xpctest_domstring.h
+debian/tmp/usr/include/xulrunner-1.9*/unstable/xpctest.h
+debian/tmp/usr/include/xulrunner-1.9*/unstable/xpctest_in.h
+debian/tmp/usr/include/xulrunner-1.9*/unstable/xpctest_inout.h
+debian/tmp/usr/include/xulrunner-1.9*/unstable/xpctest_multiple.h
+debian/tmp/usr/include/xulrunner-1.9*/unstable/xpctest_out.h
+debian/tmp/usr/share/idl/xulrunner-1.9*/unstable/nsIHttpServer.idl
+debian/tmp/usr/share/idl/xulrunner-1.9*/unstable/nsISample.idl
+debian/tmp/usr/share/idl/xulrunner-1.9*/unstable/nsITestProxy.idl
+debian/tmp/usr/share/idl/xulrunner-1.9*/unstable/xpctest2.idl
+debian/tmp/usr/share/idl/xulrunner-1.9*/unstable/xpctest_attributes.idl
+debian/tmp/usr/share/idl/xulrunner-1.9*/unstable/xpctest_calljs.idl
+debian/tmp/usr/share/idl/xulrunner-1.9*/unstable/xpctest_const.idl
+debian/tmp/usr/share/idl/xulrunner-1.9*/unstable/xpctest_domstring.idl
+debian/tmp/usr/share/idl/xulrunner-1.9*/unstable/xpctest.idl
+debian/tmp/usr/share/idl/xulrunner-1.9*/unstable/xpctest_in.idl
+debian/tmp/usr/share/idl/xulrunner-1.9*/unstable/xpctest_inout.idl
+debian/tmp/usr/share/idl/xulrunner-1.9*/unstable/xpctest_multiple.idl
+debian/tmp/usr/share/idl/xulrunner-1.9*/unstable/xpctest_out.idl
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/xulrunner-1.9.1.dirs
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/xulrunner-1.9.1.dirs
@@ -0,0 +1,7 @@
+# ubuntu global extension and plugin directories
+usr/lib/xulrunner-addons/extensions
+usr/lib/xulrunner-addons/plugins
+
+# distro independent extensions directories for third party installer
+usr/lib/mozilla/extensions
+usr/share/mozilla/extensions
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/docs
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/docs
@@ -0,0 +1 @@
+debian/MPL
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/moz-rev.sh
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/moz-rev.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+# Copyright (c) 2009 Fabien Tassin <fta@sofaraway.org>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+URL=$1
+BRANCH=$2
+
+set -e
+
+if [ Z$1 = Z ] ; then
+  echo "Usage: $0 MOZ_URL [BRANCH]"
+  echo
+  echo "Ex: $0 http://hg.mozilla.org/releases/mozilla-1.9.2 default"
+  exit 1
+fi
+
+if [ Z$BRANCH = Z ] ; then
+  BRANCH="default"
+fi
+
+# Get the tip of $BRANCH
+URL_BASE=`echo $URL | sed -e 's,^\(http://[^/]*\)/.*,\1,'`
+TIP=`wget -qO- $URL/summary | sed -e '1,/>branches</d' | grep ">$BRANCH<" | \
+ sed -e 's,.*<td>'$BRANCH'</td><td class="link"><a href="\([^"]*\)">changeset</a>.*,\1,'`
+
+# Get the rev-id and hash of this top
+REVS=`wget -qO- $URL_BASE$TIP | grep '^<title>' | sed -e 's/.* changeset \([^<]*\).*/\1/'`
+REV=`echo $REVS | cut -d: -f1`
+HASH=`echo $REVS | cut -d: -f2`
+
+# Get the date of this tip
+DATE=`wget -qO- "$URL/pushlog?changeset=$HASH" | grep '^ <updated>' | tr '<>' '"' | cut -d'"' -f3 | cut -dT -f1 | tr -d '-'`
+
+echo "${DATE}r${REV}"
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/xulrunner-1.9.1-gnome-support.postinst
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/xulrunner-1.9.1-gnome-support.postinst
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+GRE_VERSION=`/usr/bin/xulrunner-1.9.1 --gre-version`
+
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
+        if test -e /usr/lib/xulrunner-$GRE_VERSION/.autoreg; then
+		touch /usr/lib/xulrunner-$GRE_VERSION/.autoreg
+	fi
+fi
+
+#DEBHELPER#
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/xulrunner-1.9.1-dev.install.i386.pp
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/xulrunner-1.9.1-dev.install.i386.pp
@@ -0,0 +1,5 @@
+#include xulrunner-1.9.1-dev.install
+
+# Files from JIT, only on 32bit arches
+# See: http://mxr.mozilla.org/mozilla-central/source/js/src/Makefile.in#242
+debian/tmp/usr/{include,share/idl}/xulrunner-1.9*/unstable/T[a-df-zA-Z]*
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/xulrunner-1.9.1.postrm.in
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/xulrunner-1.9.1.postrm.in
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+set -e
+
+case "$1" in
+    remove|abort-install|purge|upgrade|failed-upgrade|abort-upgrade|disappear)
+        rm -f @XULDIR@/python/xpcom/__init__.pyo
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/series
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/series
@@ -0,0 +1,20 @@
+dont_install_so_in_dev.patch
+protect_tests_by_ifdefs.patch
+bzXXX_no_zlib_export_if_native.patch
+bzXXX_gre_extension_plugin_support.patch
+bz466923_att350251_password_prompt_branding_fallback.patch
+add_syspref_dir.patch
+bz467766_att351173-dont-reset-user-prefs-on-upgrade.patch
+bzXXX_urlclassifier_prefs_in_toolkit.patch
+bz467738_att351145_lockPref_everywhere.patch
+bz467751_att351167_sysplugin_xre_part.patch
+bzXXX_plugin_for_mimetype_pref.patch
+system_path_launch_child.patch
+bz461277_att344402_eliminate_deprecated_gtk_type_macros.patch
+bzXXX_fix_test_suite_bashisms.patch
+bzXXX_fix_python_xpcom.patch
+bzXXX_fix_python_dom_hidden_symbols.patch
+bzXXX_fix_python_dom_pyxultest.patch
+testsuite_skip_tests_depending_on_utf8.patch
+bz473629_lp319480_leak_setenv_apprunner.patch
+defer_syslibs_bumps_to_sru.patch
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/testsuite_skip_tests_depending_on_utf8.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/testsuite_skip_tests_depending_on_utf8.patch
@@ -0,0 +1,42 @@
+#
+# Ubuntu: none
+# Upstream: http://bugzilla.mozilla.org/show_bug.cgi?id=442627
+# Description: the builder has no UTF-8 locale, those tests
+#  are failing. Disable them until we find a way to fix the
+#  problem. Don't even think about upstreaming this patch.
+#
+---
+ xpcom/tests/unit/test_bug364285-1.js |   12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+Index: mozilla/xpcom/tests/unit/test_bug364285-1.js
+===================================================================
+--- mozilla.orig/xpcom/tests/unit/test_bug364285-1.js
++++ mozilla/xpcom/tests/unit/test_bug364285-1.js
+@@ -1,19 +1,21 @@
+ const Ci = Components.interfaces;
+ const Cc = Components.classes;
+ 
+ var nameArray = [
+  "ascii",                                           // ASCII
+  "fran\u00E7ais",                                   // Latin-1
+- "\u0420\u0443\u0441\u0441\u043A\u0438\u0439",      // Cyrillic
+- "\u65E5\u672C\u8A9E",                              // Japanese
+- "\u4E2D\u6587",                                    // Chinese
+- "\uD55C\uAD6D\uC5B4",                              // Korean
+- "\uD801\uDC0F\uD801\uDC2D\uD801\uDC3B\uD801\uDC2B" // Deseret
++// # FIXME: remove all the following tests that depend on UTF-8 until we figure
++// # out how to solve mozilla bug 442627
++// "\u0420\u0443\u0441\u0441\u043A\u0438\u0439",      // Cyrillic
++// "\u65E5\u672C\u8A9E",                              // Japanese
++// "\u4E2D\u6587",                                    // Chinese
++// "\uD55C\uAD6D\uC5B4",                              // Korean
++// "\uD801\uDC0F\uD801\uDC2D\uD801\uDC3B\uD801\uDC2B" // Deseret
+ ];
+ 
+ function getTempDir()
+ {
+     var dirService = Cc["@mozilla.org/file/directory_service;1"]
+ 	.getService(Ci.nsIProperties);
+     return dirService.get("TmpD", Ci.nsILocalFile);
+ }
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/protect_tests_by_ifdefs.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/protect_tests_by_ifdefs.patch
@@ -0,0 +1,94 @@
+---
+ content/xul/content/Makefile.in             |    6 +++++-
+ dom/Makefile.in                             |    6 +++++-
+ toolkit/components/commandlines/Makefile.in |    5 ++++-
+ toolkit/components/downloads/Makefile.in    |    6 +++++-
+ 4 files changed, 19 insertions(+), 4 deletions(-)
+
+Index: mozilla/content/xul/content/Makefile.in
+===================================================================
+--- mozilla.orig/content/xul/content/Makefile.in
++++ mozilla/content/xul/content/Makefile.in
+@@ -38,12 +38,16 @@
+ DEPTH		= ../../..
+ topsrcdir	= @top_srcdir@
+ srcdir		= @srcdir@
+ VPATH		= @srcdir@
+ 
+ include $(DEPTH)/config/autoconf.mk
+ 
+ MODULE		= xul
+-PARALLEL_DIRS	= src test
++PARALLEL_DIRS	= src
++
++ifdef ENABLE_TESTS
++PARALLEL_DIRS += test
++endif
+ 
+ include $(topsrcdir)/config/rules.mk
+ 
+Index: mozilla/toolkit/components/downloads/Makefile.in
+===================================================================
+--- mozilla.orig/toolkit/components/downloads/Makefile.in
++++ mozilla/toolkit/components/downloads/Makefile.in
+@@ -37,12 +37,16 @@
+ 
+ DEPTH   = ../../..
+ topsrcdir = @top_srcdir@
+ srcdir    = @srcdir@
+ VPATH   = @srcdir@
+ 
+ include $(DEPTH)/config/autoconf.mk
+ 
+-DIRS = public src test
++DIRS = public src
++
++ifdef ENABLE_TESTS
++DIRS += test
++endif
+ 
+ include $(topsrcdir)/config/rules.mk
+ 
+Index: mozilla/toolkit/components/commandlines/Makefile.in
+===================================================================
+--- mozilla.orig/toolkit/components/commandlines/Makefile.in
++++ mozilla/toolkit/components/commandlines/Makefile.in
+@@ -40,12 +40,15 @@
+ srcdir    = @srcdir@
+ VPATH     = @srcdir@
+ 
+ include $(DEPTH)/config/autoconf.mk
+ 
+ DIRS = \
+ 	public \
+ 	src \
+-	test \
+ 	$(NULL)
+ 
++ifdef ENABLE_TESTS
++DIRS += test
++endif
++
+ include $(topsrcdir)/config/rules.mk
+Index: mozilla/dom/Makefile.in
+===================================================================
+--- mozilla.orig/dom/Makefile.in
++++ mozilla/dom/Makefile.in
+@@ -38,12 +38,16 @@
+ DEPTH		= ..
+ topsrcdir	= @top_srcdir@
+ srcdir		= @srcdir@
+ VPATH		= @srcdir@
+ 
+ include $(DEPTH)/config/autoconf.mk
+ 
+ MODULE		= dom
+-DIRS		= public src locales tests
++DIRS		= public src locales
++
++ifdef ENABLE_TESTS
++DIRS += tests
++endif
+ 
+ include $(topsrcdir)/config/rules.mk
+ 
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/bzXXX_urlclassifier_prefs_in_toolkit.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/bzXXX_urlclassifier_prefs_in_toolkit.patch
@@ -0,0 +1,36 @@
+---
+ toolkit/components/url-classifier/Makefile.in            |    3 +++
+ toolkit/components/url-classifier/pref/url-classifier.js |    8 ++++++++
+ 2 files changed, 11 insertions(+)
+
+Index: mozilla/toolkit/components/url-classifier/pref/url-classifier.js
+===================================================================
+--- /dev/null
++++ mozilla/toolkit/components/url-classifier/pref/url-classifier.js
+@@ -0,0 +1,8 @@
++
++// Maximum size of the sqlite3 cache during an update, in bytes
++#ifdef MOZ_WIDGET_GTK2
++pref("urlclassifier.updatecachemax", 104857600);
++#else
++pref("urlclassifier.updatecachemax", -1);
++#endif
++
+Index: mozilla/toolkit/components/url-classifier/Makefile.in
+===================================================================
+--- mozilla.orig/toolkit/components/url-classifier/Makefile.in
++++ mozilla/toolkit/components/url-classifier/Makefile.in
+@@ -44,10 +44,13 @@
+ include $(DEPTH)/config/autoconf.mk
+ 
+ DIRS      = public src
+ 
+ ifdef ENABLE_TESTS
+ TOOL_DIRS     += tests
+ endif
+ 
++PREF_JS_EXPORTS = $(srcdir)/pref/url-classifier.js
++GARBAGE += $(addprefix $(DIST)/bin/defaults/pref/,url-classifier.js)
++
+ include $(topsrcdir)/config/rules.mk
+ 
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/bz467751_att351167_sysplugin_xre_part.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/bz467751_att351167_sysplugin_xre_part.patch
@@ -0,0 +1,130 @@
+Upstream Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=467751
+Related Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=440506
+Bug Patch: https://bugzilla.mozilla.org/attachment.cgi?id=351167
+
+---
+ toolkit/xre/nsXREDirProvider.cpp |   26 ++++++++++++++++++++++++++
+ toolkit/xre/nsXREDirProvider.h   |    1 +
+ 2 files changed, 27 insertions(+)
+
+Index: mozilla/toolkit/xre/nsXREDirProvider.cpp
+===================================================================
+--- mozilla.orig/toolkit/xre/nsXREDirProvider.cpp
++++ mozilla/toolkit/xre/nsXREDirProvider.cpp
+@@ -41,17 +41,19 @@
+ 
+ #include "nsAppRunner.h"
+ #include "nsXREDirProvider.h"
+ 
+ #include "jsapi.h"
+ 
+ #include "nsIJSContextStack.h"
+ #include "nsIDirectoryEnumerator.h"
++#include "nsIFile.h"
+ #include "nsILocalFile.h"
++#include "nsIProperties.h"
+ #include "nsIObserverService.h"
+ #include "nsIProfileChangeStatus.h"
+ #include "nsISimpleEnumerator.h"
+ #include "nsIToolkitChromeRegistry.h"
+ 
+ #include "nsAppDirectoryServiceDefs.h"
+ #include "nsDirectoryServiceDefs.h"
+ #include "nsDirectoryServiceUtils.h"
+@@ -96,16 +98,18 @@
+ #else
+ #define APP_REGISTRY_NAME "appreg"
+ #endif
+ 
+ #define PREF_OVERRIDE_DIRNAME "preferences"
+ 
+ nsXREDirProvider* gDirServiceProvider = nsnull;
+ 
++#define NS_SYSTEM_PLUGINS_DIR       "SysPlugins"
++
+ nsXREDirProvider::nsXREDirProvider() :
+   mProfileNotified(PR_FALSE),
+   mExtensionsLoaded(PR_FALSE)
+ {
+   gDirServiceProvider = this;
+ }
+ 
+ nsXREDirProvider::~nsXREDirProvider()
+@@ -128,16 +132,33 @@
+     nsCOMPtr<nsIDirectoryServiceProvider> app(do_QueryInterface(mAppProvider));
+     if (app) {
+       PRBool per = PR_FALSE;
+       app->GetFile(NS_APP_USER_PROFILE_50_DIR, &per, getter_AddRefs(mProfileDir));
+       NS_ASSERTION(per, "NS_APP_USER_PROFILE_50_DIR no defined! This shouldn't happen!"); 
+     }
+   }
+ 
++  nsresult rv;
++  nsCOMPtr<nsIProperties> directoryService =
++    do_GetService(NS_DIRECTORY_SERVICE_CONTRACTID, &rv);
++
++  if (NS_FAILED(rv)) {
++    mSysPluginDir = nsnull;
++    return NS_OK;
++  }
++
++  rv = directoryService->Get( NS_SYSTEM_PLUGINS_DIR,
++                              NS_GET_IID(nsIFile),
++                              getter_AddRefs(mSysPluginDir));
++
++  if (NS_FAILED(rv)) {
++    mSysPluginDir = nsnull;
++  }
++
+   return NS_OK;
+ }
+ 
+ nsresult
+ nsXREDirProvider::SetProfile(nsIFile* aDir, nsIFile* aLocalDir)
+ {
+   NS_ASSERTION(aDir && aLocalDir, "We don't support no-profile apps yet!");
+ 
+@@ -762,16 +783,21 @@
+   }
+   else if (!strcmp(aProperty, NS_APP_PLUGINS_DIR_LIST)) {
+     static const char *const kAppendPlugins[] = { "plugins", nsnull };
+     nsCOMArray<nsIFile> directories;
+ 
+     // The root dirserviceprovider does quite a bit for us: we're mainly
+     // interested in gre, xulapp, and extension-provided plugins.
+     LoadBundleDirectories();
++
++    PRBool exists;
++    if (mSysPluginDir && NS_SUCCEEDED(mSysPluginDir->Exists(&exists)) && exists)
++      directories.AppendObject(mSysPluginDir);
++
+     LoadAppDirIntoArray(mGREDir,
+                         kAppendPlugins,
+                         directories);
+     LoadDirsIntoArray(mAppBundleDirectories,
+                       kAppendPlugins,
+                       directories);
+     LoadDirsIntoArray(mExtensionDirectories,
+                       kAppendPlugins,
+Index: mozilla/toolkit/xre/nsXREDirProvider.h
+===================================================================
+--- mozilla.orig/toolkit/xre/nsXREDirProvider.h
++++ mozilla/toolkit/xre/nsXREDirProvider.h
+@@ -138,16 +138,17 @@
+   // extensions, and themes
+   void LoadBundleDirectories();
+   void LoadAppBundleDirs();
+ 
+   void Append(nsIFile* aDirectory);
+ 
+   nsCOMPtr<nsIDirectoryServiceProvider> mAppProvider;
+   nsCOMPtr<nsILocalFile> mGREDir;
++  nsCOMPtr<nsIFile>      mSysPluginDir;
+   nsCOMPtr<nsIFile>      mXULAppDir;
+   nsCOMPtr<nsIFile>      mProfileDir;
+   nsCOMPtr<nsIFile>      mProfileLocalDir;
+   PRPackedBool           mProfileNotified;
+   PRPackedBool           mExtensionsLoaded;
+   nsCOMArray<nsIFile>    mAppBundleDirectories;
+   nsCOMArray<nsIFile>    mExtensionDirectories;
+   nsCOMArray<nsIFile>    mThemeDirectories;
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/bz473629_lp319480_leak_setenv_apprunner.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/bz473629_lp319480_leak_setenv_apprunner.patch
@@ -0,0 +1,33 @@
+---
+ toolkit/xre/nsAppRunner.cpp |    8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+Index: mozilla/toolkit/xre/nsAppRunner.cpp
+===================================================================
+--- mozilla.orig/toolkit/xre/nsAppRunner.cpp
++++ mozilla/toolkit/xre/nsAppRunner.cpp
+@@ -282,16 +282,24 @@
+ #endif
+ #include <gtk/gtk.h>
+ #ifdef MOZ_X11
+ #include <gdk/gdkx.h>
+ #endif /* MOZ_X11 */
+ #include "nsGTKToolkit.h"
+ #endif
+ 
++void _SetEnvDup(const char* env)
++{
++  if (env != NULL)
++    PR_SetEnv (strdup (env));
++}
++
++#define PR_SetEnv(x) _SetEnvDup(x)
++
+ // Save the given word to the specified environment variable.
+ static void
+ SaveWordToEnv(const char *name, const nsACString & word)
+ {
+   char *expr = PR_smprintf("%s=%s", name, PromiseFlatCString(word).get());
+   if (expr)
+     PR_SetEnv(expr);
+   // We intentionally leak |expr| here since it is required by PR_SetEnv.
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/dont_install_so_in_dev.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/dont_install_so_in_dev.patch
@@ -0,0 +1,28 @@
+---
+ toolkit/mozapps/installer/packager.mk |    3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+Index: mozilla/toolkit/mozapps/installer/packager.mk
+===================================================================
+--- mozilla.orig/toolkit/mozapps/installer/packager.mk
++++ mozilla/toolkit/mozapps/installer/packager.mk
+@@ -419,17 +419,18 @@
+ 	  (cd $(DESTDIR)$(idldir)/stable && tar -xf -)
+ 	(cd $(DIST)/idl && tar $(TAR_CREATE_FLAGS) - .) | \
+ 	  (cd $(DESTDIR)$(idldir)/unstable && tar -xf -)
+ # SDK directory is the libs + a bunch of symlinks
+ 	$(NSINSTALL) -D $(DESTDIR)$(sdkdir)/sdk/lib
+ 	if test -f $(DIST)/sdk/include/xpcom-config.h; then \
+ 	  $(SYSINSTALL) $(IFLAGS1) $(DIST)/sdk/include/xpcom-config.h $(DESTDIR)$(sdkdir); \
+ 	fi
+-	(cd $(DIST)/sdk/lib && tar $(TAR_CREATE_FLAGS) - .) | (cd $(DESTDIR)$(sdkdir)/sdk/lib && tar -xf -)
++	(cd $(DIST)/sdk/lib && tar --exclude='*.so' $(TAR_CREATE_FLAGS) - .) | (cd $(DESTDIR)$(sdkdir)/sdk/lib && tar -xf -)
++	ln -s $(addprefix $(installdir)/,$(notdir $(wildcard $(DIST)/sdk/lib/*.so))) $(DESTDIR)$(sdkdir)/sdk/lib
+ 	$(RM) -f $(DESTDIR)$(sdkdir)/lib $(DESTDIR)$(sdkdir)/bin $(DESTDIR)$(sdkdir)/sdk/include $(DESTDIR)$(sdkdir)/include $(DESTDIR)$(sdkdir)/sdk/idl $(DESTDIR)$(sdkdir)/idl
+ 	ln -s $(sdkdir)/sdk/lib $(DESTDIR)$(sdkdir)/lib
+ 	ln -s $(installdir) $(DESTDIR)$(sdkdir)/bin
+ 	ln -s $(includedir)/stable $(DESTDIR)$(sdkdir)/sdk/include
+ 	ln -s $(includedir)/unstable $(DESTDIR)$(sdkdir)/include
+ 	ln -s $(idldir)/stable $(DESTDIR)$(sdkdir)/sdk/idl
+ 	ln -s $(idldir)/unstable $(DESTDIR)$(sdkdir)/idl
+ endif # INSTALL_SDK
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/bzXXX_fix_test_suite_bashisms.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/bzXXX_fix_test_suite_bashisms.patch
@@ -0,0 +1,27 @@
+---
+ config/tests/src-simple/Makefile.in |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: mozilla/config/tests/src-simple/Makefile.in
+===================================================================
+--- mozilla.orig/config/tests/src-simple/Makefile.in
++++ mozilla/config/tests/src-simple/Makefile.in
+@@ -58,17 +58,17 @@
+ check-%::
+ 	if test -d $(FINAL_TARGET); then rm -rf $(FINAL_TARGET); fi;
+ 	$(MAKE) realchrome MOZ_CHROME_FILE_FORMAT=$*
+ 	@echo "Comparing manifests..."
+ 	@if ! sort $(MY_MANIFEST) | diff --text -U 0 $(srcdir)/../$(REF_MANIFEST).$* - ; then \
+ 	  echo "TEST-UNEXPECTED-FAIL | config/tests/$(REF_MANIFEST).$* | differing content in manifest!" ; \
+ 	  false; \
+ 	fi
+-	@if [ $* = "jar" ]; then \
++	@if [ "$*" = "jar" ]; then \
+ 	  $(UNZIP) -d $(FINAL_TARGET)/chrome/test $(FINAL_TARGET)/chrome/test.jar; \
+ 	fi
+ 	@echo "Comparing packages..."
+ 	@if ! diff -ur $(srcdir)/../ref-simple $(FINAL_TARGET)/chrome/test ; then\
+ 	  echo "TEST-UNEXPECTED-FAIL | config/tests/ref-simple | different content in jar" ; \
+ 	  false; \
+ 	fi
+ 
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/bz466923_att350251_password_prompt_branding_fallback.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/bz466923_att350251_password_prompt_branding_fallback.patch
@@ -0,0 +1,64 @@
+---
+ toolkit/components/passwordmgr/src/nsLoginManagerPrompter.js |   21 ++++++++---
+ 1 file changed, 16 insertions(+), 5 deletions(-)
+
+Index: mozilla/toolkit/components/passwordmgr/src/nsLoginManagerPrompter.js
+===================================================================
+--- mozilla.orig/toolkit/components/passwordmgr/src/nsLoginManagerPrompter.js
++++ mozilla/toolkit/components/passwordmgr/src/nsLoginManagerPrompter.js
+@@ -649,18 +649,24 @@
+               this._getLocalizedString("notifyBarRememberButtonText");
+         var rememberButtonAccessKey =
+               this._getLocalizedString("notifyBarRememberButtonAccessKey");
+         var notNowButtonText =
+               this._getLocalizedString("notifyBarNotNowButtonText");
+         var notNowButtonAccessKey =
+               this._getLocalizedString("notifyBarNotNowButtonAccessKey");
+ 
+-        var brandShortName =
+-              this._brandBundle.GetStringFromName("brandShortName");
++        var brandShortName =  "toolkit@mozilla.org";
++        try {
++                brandShortName =
++                      this._brandBundle.GetStringFromName("brandShortName");
++        } catch (e) {
++                this.log ("no brandShortName available for prompting - most likely incomplete embedding.");
++        }
++
+         var displayHost = this._getShortDisplayHost(aLogin.hostname);
+         var notificationText;
+         if (aLogin.username) {
+             var displayUser = this._sanitizeUsername(aLogin.username);
+             notificationText  = this._getLocalizedString(
+                                         "saveLoginText",
+                                         [brandShortName, displayUser, displayHost]);
+         } else {
+@@ -737,20 +743,25 @@
+      *
+      */
+     _showSaveLoginDialog : function (aLogin) {
+         const buttonFlags = Ci.nsIPrompt.BUTTON_POS_1_DEFAULT +
+             (Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_0) +
+             (Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_1) +
+             (Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_2);
+ 
+-        var brandShortName =
+-                this._brandBundle.GetStringFromName("brandShortName");
+-        var displayHost = this._getShortDisplayHost(aLogin.hostname);
++        var brandShortName =  "toolkit@mozilla.org";
++        try {
++                brandShortName =
++                      this._brandBundle.GetStringFromName("brandShortName");
++        } catch (e) {
++                this.log ("no brandShortName available for prompting - most likely incomplete embedding.");
++        }
+ 
++        var displayHost = this._getShortDisplayHost(aLogin.hostname);
+         var dialogText;
+         if (aLogin.username) {
+             var displayUser = this._sanitizeUsername(aLogin.username);
+             dialogText = this._getLocalizedString(
+                                  "saveLoginText",
+                                  [brandShortName, displayUser, displayHost]);
+         } else {
+             dialogText = this._getLocalizedString(
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/system_path_launch_child.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/system_path_launch_child.patch
@@ -0,0 +1,60 @@
+---
+ toolkit/xre/nsAppRunner.cpp |   20 +++++++++++++++++++-
+ 1 file changed, 19 insertions(+), 1 deletion(-)
+
+Index: mozilla/toolkit/xre/nsAppRunner.cpp
+===================================================================
+--- mozilla.orig/toolkit/xre/nsAppRunner.cpp
++++ mozilla/toolkit/xre/nsAppRunner.cpp
+@@ -1593,32 +1593,50 @@
+ 
+   PR_SetEnv("MOZ_LAUNCHED_CHILD=1");
+ 
+ #if defined(XP_MACOSX)
+   SetupMacCommandLine(gRestartArgc, gRestartArgv);
+   LaunchChildMac(gRestartArgc, gRestartArgv);
+ #else
+   nsCOMPtr<nsILocalFile> lf;
++  nsCOMPtr<nsILocalFile> sf = nsnull; // system-file
+   nsresult rv = XRE_GetBinaryPath(gArgv[0], getter_AddRefs(lf));
+   if (NS_FAILED(rv))
+     return rv;
+ 
++  nsCString nativeLeaf;
++  rv = lf->GetNativeLeafName(nativeLeaf);
++  if (NS_FAILED(rv))
++    return rv;
++
++  nsCString systemPath = NS_LITERAL_CSTRING("/usr/bin/") + nativeLeaf;
++  rv = NS_NewNativeLocalFile(nsDependentCString(systemPath), PR_TRUE,
++                             getter_AddRefs(sf));
++  PRBool sfExists = false;
++  rv = sf->Exists(&sfExists);
++
++  if (NS_FAILED(rv) || !sfExists)
++    sf = nsnull; // we gracefully accept if there is no binary for system path
++
+ #if defined(XP_WIN)
+   nsAutoString exePath;
+   rv = lf->GetPath(exePath);
+   if (NS_FAILED(rv))
+     return rv;
+ 
+   if (!WinLaunchChild(exePath.get(), gRestartArgc, gRestartArgv, 0))
+     return NS_ERROR_FAILURE;
+ 
+ #else
+   nsCAutoString exePath;
+-  rv = lf->GetNativePath(exePath);
++  if (sf)
++    rv = sf->GetNativePath(exePath);
++  else
++    rv = lf->GetNativePath(exePath);
+   if (NS_FAILED(rv))
+     return rv;
+ 
+ #if defined(XP_OS2) && (__KLIBC__ == 0 && __KLIBC_MINOR__ >= 6)
+   // implementation of _execv() is broken with kLibc 0.6.x and later
+   if (OS2LaunchChild(exePath.get(), gRestartArgc, gRestartArgv) == -1)
+     return NS_ERROR_FAILURE;
+ #elif defined(XP_OS2)
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/bzXXX_no_zlib_export_if_native.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/bzXXX_no_zlib_export_if_native.patch
@@ -0,0 +1,27 @@
+Index: modules/zlib/standalone/Makefile.in
+===================================================================
+RCS file: /cvsroot/mozilla/modules/zlib/standalone/Makefile.in,v
+retrieving revision 1.20
+diff -u -p -8 -r1.20 Makefile.in
+--- mozilla/modules/zlib/standalone/Makefile.in	31 Dec 2005 16:02:07 -0000	1.20
++++ mozilla/modules/zlib/standalone/Makefile.in	1 Jan 2008 23:27:42 -0000
+@@ -43,17 +43,19 @@ VPATH		= @srcdir@
+ 
+ include $(DEPTH)/config/autoconf.mk
+ include $(srcdir)/../src/objs.mk
+ 
+ MODULE		= zlib
+ LIBRARY_NAME	= mozz_s
+ 
+ CSRCS		= $(MODULES_ZLIB_SRC_LCSRCS)
++ifndef MOZ_NATIVE_ZLIB
+ EXPORTS		= $(MODULES_ZLIB_SRC_EXPORTS)
++endif
+ 
+ FORCE_STATIC_LIB = 1
+ SRCS_IN_OBJDIR	= 1
+ 
+ ifeq ($(OS_ARCH),WINNT)
+ USE_STATIC_LIBS=1
+ endif
+ 
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/bzXXX_plugin_for_mimetype_pref.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/bzXXX_plugin_for_mimetype_pref.patch
@@ -0,0 +1,72 @@
+We introduce a new preference that allows users to set a preferred
+plugin for a given mime-type.
+
+For example:
+
+ pref ("modules.plugins.mimetype.application/x-shockwave-flash", "/usr/lib/firefox-3.0.1/plugins/libflashplayer.so")
+
+would make the flashplyer installed in that location the preferred one to use.
+
+In case the path is not valid, we just go ahead and search for the first match
+given the mime-type.
+
+---
+ modules/plugin/base/src/nsPluginHostImpl.cpp |   33 +++++++++++++++++++++++++++
+ 1 file changed, 33 insertions(+)
+
+Index: mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp
+===================================================================
+--- mozilla.orig/modules/plugin/base/src/nsPluginHostImpl.cpp
++++ mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp
+@@ -4219,18 +4219,51 @@
+   nsPluginTag *plugins = nsnull;
+   PRInt32     variants, cnt;
+ 
+   LoadPlugins();
+ 
+   // if we have a mimetype passed in, search the mPlugins
+   // linked list for a match
+   if (nsnull != aMimeType) {
++    nsresult res;
++    nsCOMPtr<nsIPrefBranch> prefB (do_QueryInterface(mPrefService));
++
++    char *preferredPluginPath = NULL;
++    nsCAutoString mimetypePrefString ("modules.plugins.mimetype.");
++    mimetypePrefString.Append(aMimeType);
++    const char *mimetypePrefChar = mimetypePrefString.get();
++    res = prefB->GetCharPref(mimetypePrefChar, &preferredPluginPath);
++
++    if(!NS_SUCCEEDED(res)) preferredPluginPath = NULL;
++
+     plugins = mPlugins;
++    if(preferredPluginPath) {
++       while (nsnull != plugins) {
++         if (0 == PL_strcasecmp(plugins->mFileName.get(), preferredPluginPath) ||
++             0 == PL_strcasecmp(plugins->mFullPath.get(), preferredPluginPath)) {
++           return plugins;
++         }
++         plugins = plugins->mNext;
++       }
++
++       // now lets search for substrings
++       plugins=mPlugins;
++       while (nsnull != plugins) {
++         if (nsnull != PL_strstr(plugins->mFileName.get(), preferredPluginPath) ||
++             nsnull != PL_strstr(plugins->mFullPath.get(), preferredPluginPath)) {
++           return plugins;
++         }
++         plugins = plugins->mNext;
++       }
++    }
+ 
++    // if there is no pref for this mime-type, or if the plugin named in pref
++    // isn't found, we pick the first that matches for this mime-type
++    plugins = mPlugins;
+     while (nsnull != plugins) {
+       variants = plugins->mVariants;
+       for (cnt = 0; cnt < variants; cnt++) {
+         if ((!aCheckEnabled || plugins->IsEnabled()) &&
+             plugins->mMimeTypeArray[cnt] &&
+             (0 == PL_strcasecmp(plugins->mMimeTypeArray[cnt], aMimeType))) {
+           return plugins;
+         }
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/bz467738_att351145_lockPref_everywhere.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/bz467738_att351145_lockPref_everywhere.patch
@@ -0,0 +1,94 @@
+--- xulrunner-1.9~rc2.orig/modules/libpref/src/prefread.cpp
++++ xulrunner-1.9~rc2/modules/libpref/src/prefread.cpp
+@@ -75,6 +75,7 @@
+ #define BITS_PER_HEX_DIGIT      4
+ 
+ static const char kUserPref[] = "user_pref";
++static const char kLockPref[] = "lockPref";
+ static const char kPref[] = "pref";
+ static const char kTrue[] = "true";
+ static const char kFalse[] = "false";
+@@ -161,7 +162,7 @@
+     default:
+         break;
+     }
+-    (*ps->reader)(ps->closure, ps->lb, value, ps->vtype, ps->fdefault);
++    (*ps->reader)(ps->closure, ps->lb, value, ps->vtype, ps->fdefault, ps->flock);
+     return PR_TRUE;
+ }
+ 
+@@ -220,6 +221,7 @@
+                 ps->vb    = NULL;
+                 ps->vtype = PREF_INVALID;
+                 ps->fdefault = PR_FALSE;
++                ps->flock = PR_FALSE;
+             }
+             switch (c) {
+             case '/':       /* begin comment block or line? */
+@@ -230,7 +232,9 @@
+                 break;
+             case 'u':       /* indicating user_pref */
+             case 'p':       /* indicating pref */
+-                ps->smatch = (c == 'u' ? kUserPref : kPref);
++            case 'l':       /* indicating lockPref */
++                ps->smatch = (c == 'u' ? kUserPref :
++                                         (c == 'p' ? kPref : kLockPref));
+                 ps->sindex = 1;
+                 ps->nextstate = PREF_PARSE_UNTIL_OPEN_PAREN;
+                 state = PREF_PARSE_MATCH_STRING;
+@@ -274,7 +278,8 @@
+         /* name parsing */
+         case PREF_PARSE_UNTIL_NAME:
+             if (c == '\"' || c == '\'') {
+-                ps->fdefault = (ps->smatch == kPref);
++                ps->fdefault = (ps->smatch != kUserPref);
++                ps->flock = (ps->smatch == kLockPref);
+                 ps->quotechar = c;
+                 ps->nextstate = PREF_PARSE_UNTIL_COMMA; /* return here when done */
+                 state = PREF_PARSE_QUOTED_STRING;
+--- xulrunner-1.9~rc2.orig/modules/libpref/src/prefread.h
++++ xulrunner-1.9~rc2/modules/libpref/src/prefread.h
+@@ -62,7 +62,8 @@
+                            const char *pref,
+                            PrefValue   val,
+                            PrefType    type,
+-                           PRBool      defPref);
++                           PRBool      defPref,
++                           PRBool      lockPref);
+ 
+ /* structure fields are private */
+ typedef struct PrefParseState {
+@@ -83,6 +84,7 @@
+     char       *vb;         /* value buffer (ptr into lb)    */
+     PrefType    vtype;      /* PREF_STRING,INT,BOOL          */
+     PRBool      fdefault;   /* PR_TRUE if (default) pref     */
++    PRBool      flock;      /* PR_TRUE if pref to be locked  */
+ } PrefParseState;
+ 
+ /**
+--- xulrunner-1.9~rc2.orig/modules/libpref/src/prefapi.cpp
++++ xulrunner-1.9~rc2/modules/libpref/src/prefapi.cpp
+@@ -957,7 +957,10 @@
+                          const char *pref,
+                          PrefValue   value,
+                          PrefType    type,
+-                         PRBool      isDefault)
++                         PRBool      isDefault,
++                         PRBool      isLocked)
+ {
+     pref_HashPref(pref, value, type, isDefault);
++    if (isLocked)
++        PREF_LockPref(pref, PR_TRUE);
+ }
+--- xulrunner-1.9~rc2.orig/modules/libpref/src/prefapi.h
++++ xulrunner-1.9~rc2/modules/libpref/src/prefapi.h
+@@ -207,7 +207,8 @@
+                           const char *pref,
+                           PrefValue   value,
+                           PrefType    type,
+-                          PRBool      isDefault);
++                          PRBool      isDefault,
++                          PRBool      isLocked);
+ 
+ NSPR_END_EXTERN_C
+ #endif
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/bzXXX_gre_extension_plugin_support.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/bzXXX_gre_extension_plugin_support.patch
@@ -0,0 +1,421 @@
+---
+ toolkit/mozapps/extensions/src/nsExtensionManager.js.in |   27 ++++++--
+ toolkit/xre/nsXREDirProvider.cpp                        |    5 +
+ xpcom/io/nsAppDirectoryServiceDefs.h                    |    1 
+ xpcom/io/nsAppFileLocationProvider.cpp                  |   49 ++++++++++++++--
+ xpcom/io/nsAppFileLocationProvider.h                    |    2 
+ 5 files changed, 72 insertions(+), 12 deletions(-)
+
+Index: mozilla/toolkit/mozapps/extensions/src/nsExtensionManager.js.in
+===================================================================
+--- mozilla.orig/toolkit/mozapps/extensions/src/nsExtensionManager.js.in
++++ mozilla/toolkit/mozapps/extensions/src/nsExtensionManager.js.in
+@@ -92,16 +92,17 @@
+ const UNKNOWN_XPCOM_ABI               = "unknownABI";
+ 
+ const FILE_DEFAULT_THEME_JAR          = "classic.jar";
+ const TOOLKIT_ID                      = "toolkit@mozilla.org"
+ 
+ const KEY_PROFILEDIR                  = "ProfD";
+ const KEY_PROFILEDS                   = "ProfDS";
+ const KEY_APPDIR                      = "XCurProcD";
++const KEY_GREDIR                      = "GreD";
+ const KEY_TEMPDIR                     = "TmpD";
+ 
+ const EM_ACTION_REQUESTED_TOPIC       = "em-action-requested";
+ const EM_ITEM_INSTALLED               = "item-installed";
+ const EM_ITEM_UPGRADED                = "item-upgraded";
+ const EM_ITEM_UNINSTALLED             = "item-uninstalled";
+ const EM_ITEM_ENABLED                 = "item-enabled";
+ const EM_ITEM_DISABLED                = "item-disabled";
+@@ -111,16 +112,17 @@
+ const OP_NEEDS_INSTALL                = "needs-install";
+ const OP_NEEDS_UPGRADE                = "needs-upgrade";
+ const OP_NEEDS_UNINSTALL              = "needs-uninstall";
+ const OP_NEEDS_ENABLE                 = "needs-enable";
+ const OP_NEEDS_DISABLE                = "needs-disable";
+ 
+ const KEY_APP_PROFILE                 = "app-profile";
+ const KEY_APP_GLOBAL                  = "app-global";
++const KEY_GRE_GLOBAL                  = "gre-global";
+ const KEY_APP_SYSTEM_LOCAL            = "app-system-local";
+ const KEY_APP_SYSTEM_SHARE            = "app-system-share";
+ const KEY_APP_SYSTEM_USER             = "app-system-user";
+ 
+ const CATEGORY_INSTALL_LOCATIONS      = "extension-install-locations";
+ const CATEGORY_UPDATE_PARAMS          = "extension-update-params";
+ 
+ const PREFIX_NS_EM                    = "http://www.mozilla.org/2004/em-rdf#";
+@@ -2015,16 +2017,17 @@
+               " ... rolling back file moves and aborting installation.");
+         rollbackMove();
+         cleanUpTrash(itemLocationTrash);
+         throw e;
+       }
+     }
+   }
+   else if (installLocation.name == KEY_APP_PROFILE ||
++           installLocation.name == KEY_GRE_GLOBAL ||
+            installLocation.name == KEY_APP_GLOBAL ||
+            installLocation.name == KEY_APP_SYSTEM_USER) {
+     // Check for a pointer file and move it aside if it exists
+     var pointerFile = installLocation.location.clone();
+     pointerFile.append(itemID);
+     if (pointerFile.exists() && !pointerFile.isDirectory()) {
+       var trashFileName = itemID + "-trash";
+       var itemLocationTrash = installLocation.location.clone();
+@@ -2421,17 +2424,25 @@
+ 
+   gConsole = Cc["@mozilla.org/consoleservice;1"].
+              getService(Ci.nsIConsoleService);
+ 
+   gRDF = Cc["@mozilla.org/rdf/rdf-service;1"].
+          getService(Ci.nsIRDFService);
+   gInstallManifestRoot = gRDF.GetResource(RDFURI_INSTALL_MANIFEST_ROOT);
+ 
+-  // Register Global Install Location
++  // Register Global GRE Install Location
++  var greGlobalExtensions = getDirNoCreate(KEY_GREDIR, [DIR_EXTENSIONS]);
++  var priority = Ci.nsIInstallLocation.PRIORITY_APP_SYSTEM_GLOBAL;
++  var greGlobalLocation = new DirectoryInstallLocation(KEY_GRE_GLOBAL,
++                                                       greGlobalExtensions, true,
++                                                       priority);
++  InstallLocations.put(greGlobalLocation);
++
++  // Register Global Application Install Location
+   var appGlobalExtensions = getDirNoCreate(KEY_APPDIR, [DIR_EXTENSIONS]);
+   var priority = Ci.nsIInstallLocation.PRIORITY_APP_SYSTEM_GLOBAL;
+   var globalLocation = new DirectoryInstallLocation(KEY_APP_GLOBAL,
+                                                     appGlobalExtensions, true,
+                                                     priority, false);
+   InstallLocations.put(globalLocation);
+ 
+   // Register App-Profile Install Location
+@@ -3659,17 +3670,17 @@
+         badItems.push(id);
+         continue;
+       }
+ 
+       if (ds.getItemProperty(id, "appManaged") == "true") {
+         // Force an update of the metadata for appManaged extensions since the
+         // last modified time is not updated for directories on FAT / FAT32
+         // filesystems when software update applies a new version of the app.
+-        if (location.name == KEY_APP_GLOBAL) {
++        if (location.name == KEY_APP_GLOBAL || location.name == KEY_GRE_GLOBAL) {
+           var installRDF = location.getItemFile(id, FILE_INSTALL_MANIFEST);
+           if (installRDF.exists()) {
+             var metadataDS = getInstallManifest(installRDF);
+             ds.addItemMetadata(id, metadataDS, location);
+             ds.updateProperty(id, "compatible");
+           }
+         }
+       }
+@@ -3839,17 +3850,17 @@
+ 
+     // return early to avoid migrating data twice if we already have a
+     // toolkit 1.8 extension datasource.
+     if (dsExists)
+       return;
+ 
+     // Prepare themes for installation
+     // Only enumerate directories in the app-profile and app-global locations.
+-    var locations = [KEY_APP_PROFILE, KEY_APP_GLOBAL];
++    var locations = [KEY_APP_PROFILE, KEY_APP_GLOBAL, KEY_GRE_GLOBAL];
+     for (var i = 0; i < locations.length; ++i) {
+       var location = InstallLocations.get(locations[i]);
+       if (!location.canAccess)
+         continue;
+ 
+       var entries = location.itemLocations;
+       var entry;
+       while ((entry = entries.nextFile)) {
+@@ -3905,17 +3916,18 @@
+     // items since the datasource hasn't been created yet.
+     var itemsToCheck = [];
+     if (this._checkForFileChanges()) {
+       // Create a list of all items that are to be installed so we can migrate
+       // these items's settings to the new datasource.
+       var items = PendingOperations.getOperations(OP_NEEDS_INSTALL);
+       for (i = items.length - 1; i >= 0; --i) {
+         if (items[i].locationKey == KEY_APP_PROFILE ||
+-            items[i].locationKey == KEY_APP_GLOBAL)
++            items[i].locationKey == KEY_APP_GLOBAL ||
++            items[i].locationKey == KEY_GRE_GLOBAL)
+           itemsToCheck.push(items[i].id);
+       }
+       this._finishOperations();
+     }
+ 
+     // If there are no items to migrate settings for return early.
+     if (itemsToCheck.length == 0)
+       return;
+@@ -5012,16 +5024,17 @@
+           StartupCache.put(installLocation, id, OP_NONE, true);
+           var restartRequired = this.installRequiresRestart(id, ds.getItemProperty(id, "type"))
+           this._updateManifests(restartRequired);
+           return;
+         }
+       }
+     }
+     else if (installLocation.name == KEY_APP_PROFILE ||
++             installLocation.name == KEY_GRE_GLOBAL ||
+              installLocation.name == KEY_APP_GLOBAL ||
+              installLocation.name == KEY_APP_SYSTEM_USER) {
+       // Check for a pointer file and remove it if it exists
+       var pointerFile = installLocation.location.clone();
+       pointerFile.append(id);
+       if (pointerFile.exists() && !pointerFile.isDirectory())
+         pointerFile.remove(false);
+     }
+@@ -7206,17 +7219,17 @@
+       // with and maintained by this application AND it is installed in the
+       // global install location (i.e. the place installed by the app installer)
+       // it is and can be managed by the update file - it's not an item that has
+       // been manually installed by the user into their profile dir, and as such
+       // it is always compatible with the next release of the application since
+       // we will continue to support it.
+       var locationKey = this.getItemProperty(id, "installLocation");
+       var appManaged = this.getItemProperty(id, "appManaged") == "true";
+-      if (appManaged && locationKey == KEY_APP_GLOBAL)
++      if (appManaged && (locationKey == KEY_APP_GLOBAL || locationKey == KEY_GRE_GLOBAL))
+         continue;
+ 
+       if (type != -1 && (type & desiredType) &&
+           !this.isCompatible(this, item, appVersion, platformVersion))
+         items.push(this.getItemForID(id));
+     }
+     return items;
+   },
+@@ -7796,17 +7809,17 @@
+     // Assert properties with single values
+     var singleProps = ["version", "updateURL", "updateService", "optionsURL",
+                        "aboutURL", "iconURL", "internalName", "updateKey"];
+ 
+     // Items installed into restricted Install Locations can also be locked
+     // (can't be removed or disabled), and hidden (not shown in the UI)
+     if (installLocation.restricted)
+       singleProps = singleProps.concat(["locked", "hidden"]);
+-    if (installLocation.name == KEY_APP_GLOBAL)
++    if (installLocation.name == KEY_APP_GLOBAL || installLocation.name == KEY_GRE_GLOBAL)
+       singleProps = singleProps.concat(["appManaged"]);
+     for (var i = 0; i < singleProps.length; ++i) {
+       var property = EM_R(singleProps[i]);
+       var literal = installManifest.GetTarget(gInstallManifestRoot, property, true);
+       // If literal is null, _setProperty will remove any existing.
+       this._setProperty(this._inner, targetRes, property, literal);
+     }
+ 
+@@ -8464,17 +8477,17 @@
+ 
+   /**
+    * Get the em:appManaged property. This prevents extensions from hiding
+    * extensions installed into locations other than the app-global location.
+    */
+   _rdfGet_appManaged: function EMDS__rdfGet_appManaged(item, property) {
+     var id = stripPrefix(item.Value, PREFIX_ITEM_URI);
+     var locationKey = this.getItemProperty(id, "installLocation");
+-    if (locationKey != KEY_APP_GLOBAL)
++    if (locationKey != KEY_APP_GLOBAL && locationKey != KEY_GRE_GLOBAL)
+       return EM_L("false");
+     return null;
+   },
+ 
+   /**
+    * Get the em:hidden property. This prevents extensions from hiding
+    * extensions installed into locations other than restricted locations.
+    */
+Index: mozilla/xpcom/io/nsAppDirectoryServiceDefs.h
+===================================================================
+--- mozilla.orig/xpcom/io/nsAppDirectoryServiceDefs.h
++++ mozilla/xpcom/io/nsAppDirectoryServiceDefs.h
+@@ -71,16 +71,17 @@
+                                                                                                                        
+ #define NS_APP_USER_PROFILES_ROOT_DIR           "DefProfRt"     // The dir where user profile dirs live.
+ #define NS_APP_USER_PROFILES_LOCAL_ROOT_DIR     "DefProfLRt"  // The dir where user profile temp dirs live.
+ 
+ #define NS_APP_RES_DIR                          "ARes"
+ #define NS_APP_CHROME_DIR                       "AChrom"
+ #define NS_APP_PLUGINS_DIR                      "APlugns"       // Deprecated - use NS_APP_PLUGINS_DIR_LIST
+ #define NS_APP_SEARCH_DIR                       "SrchPlugns"
++#define NS_GRE_PLUGINS_DIR                      "GrePlugns"     // Usually you want NS_APP_PLUGINS_DIR_LIST
+ 
+ #define NS_APP_CHROME_DIR_LIST                  "AChromDL"
+ #define NS_APP_PLUGINS_DIR_LIST                 "APluginsDL"
+ #define NS_APP_SEARCH_DIR_LIST                  "SrchPluginsDL"
+ 
+ // --------------------------------------------------------------------------------------
+ // Files and directories which exist on a per-profile basis
+ // These locations are typically provided by the profile mgr
+Index: mozilla/xpcom/io/nsAppFileLocationProvider.cpp
+===================================================================
+--- mozilla.orig/xpcom/io/nsAppFileLocationProvider.cpp
++++ mozilla/xpcom/io/nsAppFileLocationProvider.cpp
+@@ -192,16 +192,22 @@
+             rv = localFile->AppendRelativeNativePath(RES_DIR_NAME);
+     }
+     else if (nsCRT::strcmp(prop, NS_APP_CHROME_DIR) == 0)
+     {
+         rv = CloneMozBinDirectory(getter_AddRefs(localFile));
+         if (NS_SUCCEEDED(rv))
+             rv = localFile->AppendRelativeNativePath(CHROME_DIR_NAME);
+     }
++    else if (nsCRT::strcmp(prop, NS_GRE_PLUGINS_DIR) == 0)
++    {
++        rv = CloneMozGreDirectory(getter_AddRefs(localFile));
++        if (NS_SUCCEEDED(rv))
++            rv = localFile->AppendRelativeNativePath(PLUGINS_DIR_NAME);
++    }
+     else if (nsCRT::strcmp(prop, NS_APP_PLUGINS_DIR) == 0)
+     {
+         rv = CloneMozBinDirectory(getter_AddRefs(localFile));
+         if (NS_SUCCEEDED(rv))
+             rv = localFile->AppendRelativeNativePath(PLUGINS_DIR_NAME);
+     }
+ #ifdef XP_MACOSX
+     else if (nsCRT::strcmp(prop, NS_MACOSX_USER_PLUGIN_DIR) == 0)
+@@ -281,16 +287,51 @@
+ 
+     if (localFile && NS_SUCCEEDED(rv))
+         return localFile->QueryInterface(NS_GET_IID(nsIFile), (void**)_retval);
+         
+     return rv;
+ }
+ 
+ 
++NS_METHOD nsAppFileLocationProvider::CloneMozGreDirectory(nsILocalFile **aLocalFile)
++{
++    NS_ENSURE_ARG_POINTER(aLocalFile);
++    nsresult rv;
++
++    if (!mMozGreDirectory)
++    {
++        // Get the mozilla bin directory
++        // 1. Check the directory service first for NS_XPCOM_CURRENT_PROCESS_DIR
++        //    This will be set if a directory was passed to NS_InitXPCOM
++        // 2. If that doesn't work, set it to be the current process directory
++        nsCOMPtr<nsIProperties>
++          directoryService(do_GetService(NS_DIRECTORY_SERVICE_CONTRACTID, &rv));
++        if (NS_FAILED(rv))
++            return rv;
++
++        rv = directoryService->Get(NS_GRE_DIR, NS_GET_IID(nsIFile), getter_AddRefs(mMozGreDirectory));
++        if (NS_FAILED(rv))
++            return rv;
++    }
++
++    nsCOMPtr<nsIFile> aFile;
++    rv = mMozGreDirectory->Clone(getter_AddRefs(aFile));
++    if (NS_FAILED(rv))
++        return rv;
++
++    nsCOMPtr<nsILocalFile> lfile = do_QueryInterface (aFile);
++    if (!lfile)
++        return NS_ERROR_FAILURE;
++
++    NS_IF_ADDREF(*aLocalFile = lfile);
++    return NS_OK;
++}
++
++
+ NS_METHOD nsAppFileLocationProvider::CloneMozBinDirectory(nsILocalFile **aLocalFile)
+ {
+     NS_ENSURE_ARG_POINTER(aLocalFile);
+     nsresult rv;
+ 
+     if (!mMozBinDirectory)
+     {
+         // Get the mozilla bin directory
+@@ -574,33 +615,33 @@
+ {
+     NS_ENSURE_ARG_POINTER(_retval);
+     *_retval = nsnull;
+     nsresult rv = NS_ERROR_FAILURE;
+     
+     if (!nsCRT::strcmp(prop, NS_APP_PLUGINS_DIR_LIST))
+     {
+ #ifdef XP_MACOSX
+-        static const char* osXKeys[] = { NS_APP_PLUGINS_DIR, NS_MACOSX_USER_PLUGIN_DIR, NS_MACOSX_LOCAL_PLUGIN_DIR, nsnull };
+-        static const char* os9Keys[] = { NS_APP_PLUGINS_DIR, NS_MAC_CLASSIC_PLUGIN_DIR, nsnull };
++        static const char* osXKeys[] = { NS_APP_PLUGINS_DIR, NS_GRE_PLUGINS_DIR, NS_MACOSX_USER_PLUGIN_DIR, NS_MACOSX_LOCAL_PLUGIN_DIR, nsnull };
++        static const char* os9Keys[] = { NS_APP_PLUGINS_DIR, NS_GRE_PLUGINS_DIR, NS_MAC_CLASSIC_PLUGIN_DIR, nsnull };
+         static const char** keys;
+         
+         if (!keys) {
+             OSErr err;
+             long response;
+             err = ::Gestalt(gestaltSystemVersion, &response); 
+             keys = (!err && response >= 0x00001000) ? osXKeys : os9Keys;
+         }
+ 
+         *_retval = new nsAppDirectoryEnumerator(this, keys);
+ #else
+ #ifdef XP_UNIX
+-        static const char* keys[] = { nsnull, NS_USER_PLUGINS_DIR, NS_APP_PLUGINS_DIR, NS_SYSTEM_PLUGINS_DIR, nsnull };
++        static const char* keys[] = { nsnull, NS_USER_PLUGINS_DIR, NS_APP_PLUGINS_DIR, NS_GRE_PLUGINS_DIR, NS_SYSTEM_PLUGINS_DIR, nsnull };
+ #else
+-        static const char* keys[] = { nsnull, NS_USER_PLUGINS_DIR, NS_APP_PLUGINS_DIR, nsnull };
++        static const char* keys[] = { nsnull, NS_USER_PLUGINS_DIR, NS_APP_PLUGINS_DIR, NS_GRE_PLUGINS_DIR, nsnull };
+ #endif
+         if (!keys[0] && !(keys[0] = PR_GetEnv("MOZ_PLUGIN_PATH"))) {
+             static const char nullstr = 0;
+             keys[0] = &nullstr;
+         }
+         *_retval = new nsPathsDirectoryEnumerator(this, keys);
+ #endif
+         NS_IF_ADDREF(*_retval);
+Index: mozilla/xpcom/io/nsAppFileLocationProvider.h
+===================================================================
+--- mozilla.orig/xpcom/io/nsAppFileLocationProvider.h
++++ mozilla/xpcom/io/nsAppFileLocationProvider.h
+@@ -55,22 +55,24 @@
+    NS_DECL_NSIDIRECTORYSERVICEPROVIDER
+    NS_DECL_NSIDIRECTORYSERVICEPROVIDER2
+ 
+ private:
+                         ~nsAppFileLocationProvider() {}
+ 
+ protected:
+    NS_METHOD            CloneMozBinDirectory(nsILocalFile **aLocalFile);
++   NS_METHOD            CloneMozGreDirectory(nsILocalFile **aLocalFile);
+    /**
+     * Get the product directory. This is a user-specific directory for storing
+     * application settings (e.g. the Application Data directory on windows
+     * systems).
+     * @param aLocal If true, should try to get a directory that is only stored
+     *               locally (ie not transferred with roaming profiles)
+     */
+    NS_METHOD            GetProductDirectory(nsILocalFile **aLocalFile,
+                                             PRBool aLocal = PR_FALSE);
+    NS_METHOD            GetDefaultUserProfileRoot(nsILocalFile **aLocalFile,
+                                                   PRBool aLocal = PR_FALSE);
+ 
+    nsCOMPtr<nsILocalFile> mMozBinDirectory;
++   nsCOMPtr<nsILocalFile> mMozGreDirectory;
+ };
+Index: mozilla/toolkit/xre/nsXREDirProvider.cpp
+===================================================================
+--- mozilla.orig/toolkit/xre/nsXREDirProvider.cpp
++++ mozilla/toolkit/xre/nsXREDirProvider.cpp
+@@ -757,18 +757,21 @@
+ 
+     rv = NS_NewArrayEnumerator(aResult, directories);
+   }
+   else if (!strcmp(aProperty, NS_APP_PLUGINS_DIR_LIST)) {
+     static const char *const kAppendPlugins[] = { "plugins", nsnull };
+     nsCOMArray<nsIFile> directories;
+ 
+     // The root dirserviceprovider does quite a bit for us: we're mainly
+-    // interested in xulapp and extension-provided plugins.
++    // interested in gre, xulapp, and extension-provided plugins.
+     LoadBundleDirectories();
++    LoadAppDirIntoArray(mGREDir,
++                        kAppendPlugins,
++                        directories);
+     LoadDirsIntoArray(mAppBundleDirectories,
+                       kAppendPlugins,
+                       directories);
+     LoadDirsIntoArray(mExtensionDirectories,
+                       kAppendPlugins,
+                       directories);
+ 
+     rv = NS_NewArrayEnumerator(aResult, directories);
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/defer_syslibs_bumps_to_sru.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/defer_syslibs_bumps_to_sru.patch
@@ -0,0 +1,40 @@
+---
+ configure.in |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+Index: mozilla/configure.in
+===================================================================
+--- mozilla.orig/configure.in
++++ mozilla/configure.in
+@@ -114,29 +114,29 @@ NSPR_VERSION=4
+ NSS_VERSION=3
+ 
+ dnl Set the minimum version of toolkit libs used by mozilla
+ dnl ========================================================
+ GLIB_VERSION=1.2.0
+ LIBIDL_VERSION=0.6.3
+ PERL_VERSION=5.006
+ LIBART_VERSION=2.3.4
+-CAIRO_VERSION=1.8.8
++CAIRO_VERSION=1.6.0
+ PANGO_VERSION=1.14.0
+ GTK2_VERSION=2.10.0
+ MAKE_VERSION=3.78
+ WINDRES_VERSION=2.14.90
+ W32API_VERSION=3.8
+ GNOMEVFS_VERSION=2.0
+ GNOMEUI_VERSION=2.2.0
+ GCONF_VERSION=1.2.1
+ LIBGNOME_VERSION=2.0
+ STARTUP_NOTIFICATION_VERSION=0.8
+ DBUS_VERSION=0.60
+-SQLITE_VERSION=3.6.16.1
++SQLITE_VERSION=3.6.16
+ 
+ MSMANIFEST_TOOL=
+ 
+ dnl Set various checks
+ dnl ========================================================
+ MISSING_X=
+ AC_PROG_AWK
+ 
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/bz461277_att344402_eliminate_deprecated_gtk_type_macros.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/bz461277_att344402_eliminate_deprecated_gtk_type_macros.patch
@@ -0,0 +1,58 @@
+---
+ embedding/browser/gtk/src/gtkmozembed.h |   16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+Index: mozilla/embedding/browser/gtk/src/gtkmozembed.h
+===================================================================
+--- mozilla.orig/embedding/browser/gtk/src/gtkmozembed.h
++++ mozilla/embedding/browser/gtk/src/gtkmozembed.h
+@@ -77,20 +77,20 @@
+ #define GTKMOZEMBED_API(type, name, params) NS_EXPORT_(type) name params;
+ #else
+ #define GTKMOZEMBED_API(type,name, params) NS_IMPORT_(type) name params;
+ #endif
+ 
+ #endif /* XPCOM_GLUE */
+ 
+ #define GTK_TYPE_MOZ_EMBED             (gtk_moz_embed_get_type())
+-#define GTK_MOZ_EMBED(obj)             GTK_CHECK_CAST((obj), GTK_TYPE_MOZ_EMBED, GtkMozEmbed)
+-#define GTK_MOZ_EMBED_CLASS(klass)     GTK_CHECK_CLASS_CAST((klass), GTK_TYPE_MOZ_EMBED, GtkMozEmbedClass)
+-#define GTK_IS_MOZ_EMBED(obj)          GTK_CHECK_TYPE((obj), GTK_TYPE_MOZ_EMBED)
+-#define GTK_IS_MOZ_EMBED_CLASS(klass)  GTK_CHECK_CLASS_TYPE((klass), GTK_TYPE_MOZ_EMBED)
++#define GTK_MOZ_EMBED(obj)             G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_MOZ_EMBED, GtkMozEmbed)
++#define GTK_MOZ_EMBED_CLASS(klass)     G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_MOZ_EMBED, GtkMozEmbedClass)
++#define GTK_IS_MOZ_EMBED(obj)          G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_MOZ_EMBED)
++#define GTK_IS_MOZ_EMBED_CLASS(klass)  G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_MOZ_EMBED)
+ 
+ typedef struct _GtkMozEmbed      GtkMozEmbed;
+ typedef struct _GtkMozEmbedClass GtkMozEmbedClass;
+ 
+ struct _GtkMozEmbed
+ {
+   GtkBin    bin;
+   void     *data;
+@@ -248,20 +248,20 @@
+   GTK_MOZ_EMBED_FLAG_OPENASDIALOG = 1073741824U,
+   GTK_MOZ_EMBED_FLAG_OPENASCHROME = 2147483648U 
+ } GtkMozEmbedChromeFlags;
+ 
+ /* this is a singleton object that you can hook up to to get signals
+    that are not handed out on a per widget basis. */
+ 
+ #define GTK_TYPE_MOZ_EMBED_SINGLE            (gtk_moz_embed_single_get_type())
+-#define GTK_MOZ_EMBED_SINGLE(obj)            GTK_CHECK_CAST((obj), GTK_TYPE_MOZ_EMBED_SINGLE, GtkMozEmbedSingle)
+-#define GTK_MOZ_EMBED_SINGLE_CLASS(klass)    GTK_CHEK_CLASS_CAST((klass), GTK_TYPE_MOZ_EMBED_SINGLE, GtkMozEmbedSingleClass)
+-#define GTK_IS_MOZ_EMBED_SINGLE(obj)         GTK_CHECK_TYPE((obj), GTK_TYPE_MOZ_EMBED_SINGLE)
+-#define GTK_IS_MOZ_EMBED_SINGLE_CLASS(klass) GTK_CHECK_CLASS_TYPE((klass), GTK_TYPE_MOZ_EMBED)
++#define GTK_MOZ_EMBED_SINGLE(obj)            G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_MOZ_EMBED_SINGLE, GtkMozEmbedSingle)
++#define GTK_MOZ_EMBED_SINGLE_CLASS(klass)    G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_MOZ_EMBED_SINGLE, GtkMozEmbedSingleClass)
++#define GTK_IS_MOZ_EMBED_SINGLE(obj)         G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_MOZ_EMBED_SINGLE)
++#define GTK_IS_MOZ_EMBED_SINGLE_CLASS(klass) G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_MOZ_EMBED_SINGLE)
+ #define GTK_MOZ_EMBED_SINGLE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MOZ_EMBED_SINGLE, GtkMozEmbedSingleClass))
+ 
+ typedef struct _GtkMozEmbedSingle      GtkMozEmbedSingle;
+ typedef struct _GtkMozEmbedSingleClass GtkMozEmbedSingleClass;
+ 
+ struct _GtkMozEmbedSingle
+ {
+   GtkObject  object;
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/bzXXX_fix_python_dom_hidden_symbols.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/bzXXX_fix_python_dom_hidden_symbols.patch
@@ -0,0 +1,49 @@
+---
+ config/system-headers        |    1 +
+ js/src/config/system-headers |    1 +
+ 2 files changed, 2 insertions(+)
+
+Index: mozilla/config/system-headers
+===================================================================
+--- mozilla.orig/config/system-headers
++++ mozilla/config/system-headers
+@@ -513,16 +513,17 @@
+ map
+ mapicode.h
+ mapidefs.h
+ mapiguid.h
+ mapi.h
+ mapitags.h
+ mapiutil.h
+ mapix.h
++marshal.h
+ Math64.h
+ math.h
+ mbstring.h
+ mem.h
+ memory
+ memory.h
+ Memory.h
+ MenuBar.h
+Index: mozilla/js/src/config/system-headers
+===================================================================
+--- mozilla.orig/js/src/config/system-headers
++++ mozilla/js/src/config/system-headers
+@@ -513,16 +513,17 @@
+ map
+ mapicode.h
+ mapidefs.h
+ mapiguid.h
+ mapi.h
+ mapitags.h
+ mapiutil.h
+ mapix.h
++marshal.h
+ Math64.h
+ math.h
+ mbstring.h
+ mem.h
+ memory
+ memory.h
+ Memory.h
+ MenuBar.h
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/bzXXX_fix_python_dom_pyxultest.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/bzXXX_fix_python_dom_pyxultest.patch
@@ -0,0 +1,61 @@
+---
+ extensions/python/dom/test/pyxultest/Makefile.in     |    3 +++
+ extensions/python/dom/test/pyxultest/application.ini |    6 +++---
+ 2 files changed, 6 insertions(+), 3 deletions(-)
+
+Index: mozilla/extensions/python/dom/test/pyxultest/Makefile.in
+===================================================================
+--- mozilla.orig/extensions/python/dom/test/pyxultest/Makefile.in
++++ mozilla/extensions/python/dom/test/pyxultest/Makefile.in
+@@ -49,14 +49,17 @@
+ 
+ ifdef MOZ_XULRUNNER
+ XPI_NAME               = pyxultest
+ # Do I really want these?
+ #USE_EXTENSION_MANIFEST = 1
+ #NO_JAR_AUTO_REG        = 1
+ #INSTALL_EXTENSION_ID   = pyxultest@mozilla.org
+ #XPI_PKGNAME            = pyxultest-$(MOZ_APP_VERSION)
++GRE_MILESTONE   = $(shell $(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(LIBXUL_DIST)/bin/platform.ini Build Milestone)
++GRE_BUILDID     = $(shell $(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(LIBXUL_DIST)/bin/platform.ini Build BuildID)
++DEFINES        += -DGRE_MILESTONE=$(GRE_MILESTONE) -DGRE_BUILDID=$(GRE_BUILDID)
+ DIST_FILES      = application.ini
+ endif
+ 
+ PREF_JS_EXPORTS = $(srcdir)/pyxultest-prefs.js
+ 
+ include $(topsrcdir)/config/rules.mk
+Index: mozilla/extensions/python/dom/test/pyxultest/application.ini
+===================================================================
+--- mozilla.orig/extensions/python/dom/test/pyxultest/application.ini
++++ mozilla/extensions/python/dom/test/pyxultest/application.ini
+@@ -10,26 +10,26 @@
+ ; This field specifies your application's name.  This field is required.
+ Name=pyxultest
+ 
+ ; This field specifies your application's version.  This field is required.
+ Version=1.0
+ 
+ ; This field specifies your application's build ID (timestamp).  This field is
+ ; required.
+-BuildID=@BUILD_ID@
++BuildID=@GRE_BUILDID@
+ 
+ ; This field specifies a compact copyright notice for your application.  This
+ ; field is optional.
+ Copyright=Copyright (c) 2006 Mozilla.org
+ 
+ ; This ID is just an example.  Every XUL app ought to have it's own unique ID.
+ ID={67da7954-ecd3-4153-be0f-1c02284296ce}
+ 
+ [Gecko]
+ ; This field is required.  It specifies the minimum Gecko version that this
+ ; application requires.
+-MinVersion=@MOZILLA_VERSION_U@
++MinVersion=@GRE_MILESTONE@
+ 
+ ; This field is optional.  It specifies the maximum Gecko version that this
+ ; application requires.  It should be specified if your application uses
+ ; unfrozen interfaces.
+-; MaxVersion=@MOZILLA_VERSION_U@
++; MaxVersion=@GRE_MILESTONE@
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/add_syspref_dir.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/add_syspref_dir.patch
@@ -0,0 +1,148 @@
+---
+ modules/libpref/src/nsPrefService.cpp  |    8 ++++++++
+ toolkit/xre/nsXREDirProvider.cpp       |    4 ++++
+ xpcom/io/nsAppDirectoryServiceDefs.h   |    1 +
+ xpcom/io/nsAppFileLocationProvider.cpp |   10 ++++++++++
+ 4 files changed, 23 insertions(+)
+
+Index: mozilla/toolkit/xre/nsXREDirProvider.cpp
+===================================================================
+--- mozilla.orig/toolkit/xre/nsXREDirProvider.cpp
++++ mozilla/toolkit/xre/nsXREDirProvider.cpp
+@@ -619,16 +619,17 @@
+   nsCOMPtr<nsIFile> subdir;
+   while (NS_SUCCEEDED(files->GetNextFile(getter_AddRefs(subdir))) && subdir) {
+     mAppBundleDirectories.AppendObject(subdir);
+     LoadPlatformDirectory(subdir, mAppBundleDirectories);
+   }
+ }
+ 
+ static const char *const kAppendPrefDir[] = { "defaults", "preferences", nsnull };
++static const char *const kAppendSysPrefDir[] = { "defaults", "syspref", nsnull };
+ 
+ #ifdef DEBUG_bsmedberg
+ static void
+ DumpFileArray(const char *key,
+               nsCOMArray<nsIFile> dirs)
+ {
+   fprintf(stderr, "nsXREDirProvider::GetFilesInternal(%s)\n", key);
+ 
+@@ -675,16 +676,19 @@
+   else if (!strcmp(aProperty, NS_APP_PREFS_DEFAULTS_DIR_LIST)) {
+     nsCOMArray<nsIFile> directories;
+ 
+     LoadBundleDirectories();
+ 
+     LoadAppDirIntoArray(mXULAppDir, kAppendPrefDir, directories);
+     LoadDirsIntoArray(mAppBundleDirectories,
+                       kAppendPrefDir, directories);
++    LoadAppDirIntoArray(mXULAppDir, kAppendSysPrefDir, directories);
++    LoadDirsIntoArray(mAppBundleDirectories,
++                      kAppendSysPrefDir, directories);
+ 
+     rv = NS_NewArrayEnumerator(aResult, directories);
+   }
+   else if (!strcmp(aProperty, NS_EXT_PREFS_DEFAULTS_DIR_LIST)) {
+     nsCOMArray<nsIFile> directories;
+ 
+     LoadBundleDirectories();
+     LoadDirsIntoArray(mExtensionDirectories,
+Index: mozilla/modules/libpref/src/nsPrefService.cpp
+===================================================================
+--- mozilla.orig/modules/libpref/src/nsPrefService.cpp
++++ mozilla/modules/libpref/src/nsPrefService.cpp
+@@ -818,16 +818,24 @@
+ #endif
+   };
+ 
+   rv = pref_LoadPrefsInDir(defaultPrefDir, specialFiles, NS_ARRAY_LENGTH(specialFiles));
+   if (NS_FAILED(rv)) {
+     NS_WARNING("Error parsing application default preferences.");
+   }
+ 
++  /* now, parse the "application" default system preferences */
++  rv = NS_GetSpecialDirectory(NS_APP_SYSPREF_DEFAULTS_50_DIR, getter_AddRefs(defaultPrefDir));
++  NS_ENSURE_SUCCESS(rv, rv);
++  rv = pref_LoadPrefsInDir(defaultPrefDir, specialFiles, NS_ARRAY_LENGTH(specialFiles));
++  if (NS_FAILED(rv)) {
++    NS_WARNING("Error parsing application default preferences.");
++  }
++
+   rv = pref_LoadPrefsInDirList(NS_APP_PREFS_DEFAULTS_DIR_LIST);
+   NS_ENSURE_SUCCESS(rv, rv);
+ 
+   NS_CreateServicesFromCategory(NS_PREFSERVICE_APPDEFAULTS_TOPIC_ID,
+                                 nsnull, NS_PREFSERVICE_APPDEFAULTS_TOPIC_ID);
+ 
+   nsCOMPtr<nsIObserverService> observerService = 
+     do_GetService("@mozilla.org/observer-service;1", &rv);
+Index: mozilla/xpcom/io/nsAppDirectoryServiceDefs.h
+===================================================================
+--- mozilla.orig/xpcom/io/nsAppDirectoryServiceDefs.h
++++ mozilla/xpcom/io/nsAppDirectoryServiceDefs.h
+@@ -58,16 +58,17 @@
+ // Files and directories which exist on a per-product basis
+ // --------------------------------------------------------------------------------------
+ 
+ #define NS_APP_APPLICATION_REGISTRY_FILE        "AppRegF"
+ #define NS_APP_APPLICATION_REGISTRY_DIR         "AppRegD"
+ 
+ #define NS_APP_DEFAULTS_50_DIR                  "DefRt"         // The root dir of all defaults dirs
+ #define NS_APP_PREF_DEFAULTS_50_DIR             "PrfDef"
++#define NS_APP_SYSPREF_DEFAULTS_50_DIR          "SysPrfDef"
+ #define NS_APP_PROFILE_DEFAULTS_50_DIR          "profDef"       // The profile defaults of the "current"
+                                                                 // locale. Should be first choice.
+ #define NS_APP_PROFILE_DEFAULTS_NLOC_50_DIR     "ProfDefNoLoc"  // The profile defaults of the "default"
+                                                                 // installed locale. Second choice
+                                                                 // when above is not available.
+                                                                                                                        
+ #define NS_APP_USER_PROFILES_ROOT_DIR           "DefProfRt"     // The dir where user profile dirs live.
+ #define NS_APP_USER_PROFILES_LOCAL_ROOT_DIR     "DefProfLRt"  // The dir where user profile temp dirs live.
+Index: mozilla/xpcom/io/nsAppFileLocationProvider.cpp
+===================================================================
+--- mozilla.orig/xpcom/io/nsAppFileLocationProvider.cpp
++++ mozilla/xpcom/io/nsAppFileLocationProvider.cpp
+@@ -96,16 +96,17 @@
+ #define NS_MACOSX_LOCAL_PLUGIN_DIR  "OSXLocalPlugins"
+ #define NS_MAC_CLASSIC_PLUGIN_DIR   "MacSysPlugins"
+ #elif XP_UNIX
+ #define NS_SYSTEM_PLUGINS_DIR       "SysPlugins"
+ #endif
+ 
+ #define DEFAULTS_DIR_NAME           NS_LITERAL_CSTRING("defaults")
+ #define DEFAULTS_PREF_DIR_NAME      NS_LITERAL_CSTRING("pref")
++#define DEFAULTS_SYSPREF_DIR_NAME   NS_LITERAL_CSTRING("syspref")
+ #define DEFAULTS_PROFILE_DIR_NAME   NS_LITERAL_CSTRING("profile")
+ #define RES_DIR_NAME                NS_LITERAL_CSTRING("res")
+ #define CHROME_DIR_NAME             NS_LITERAL_CSTRING("chrome")
+ #define PLUGINS_DIR_NAME            NS_LITERAL_CSTRING("plugins")
+ #define SEARCH_DIR_NAME             NS_LITERAL_CSTRING("searchplugins")
+ 
+ //*****************************************************************************
+ // nsAppFileLocationProvider::Constructor/Destructor
+@@ -162,16 +163,25 @@
+     {
+         rv = CloneMozBinDirectory(getter_AddRefs(localFile));
+         if (NS_SUCCEEDED(rv)) {
+             rv = localFile->AppendRelativeNativePath(DEFAULTS_DIR_NAME);
+             if (NS_SUCCEEDED(rv))
+                 rv = localFile->AppendRelativeNativePath(DEFAULTS_PREF_DIR_NAME);
+         }
+     }
++    else if (nsCRT::strcmp(prop, NS_APP_SYSPREF_DEFAULTS_50_DIR) == 0)
++    {
++        rv = CloneMozBinDirectory(getter_AddRefs(localFile));
++        if (NS_SUCCEEDED(rv)) {
++            rv = localFile->AppendRelativeNativePath(DEFAULTS_DIR_NAME);
++            if (NS_SUCCEEDED(rv))
++                rv = localFile->AppendRelativeNativePath(DEFAULTS_SYSPREF_DIR_NAME);
++        }
++    }
+     else if (nsCRT::strcmp(prop, NS_APP_PROFILE_DEFAULTS_50_DIR) == 0 ||
+              nsCRT::strcmp(prop, NS_APP_PROFILE_DEFAULTS_NLOC_50_DIR) == 0)
+     {
+         rv = CloneMozBinDirectory(getter_AddRefs(localFile));
+         if (NS_SUCCEEDED(rv)) {
+             rv = localFile->AppendRelativeNativePath(DEFAULTS_DIR_NAME);
+             if (NS_SUCCEEDED(rv))
+                 rv = localFile->AppendRelativeNativePath(DEFAULTS_PROFILE_DIR_NAME);
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/bzXXX_fix_python_xpcom.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/bzXXX_fix_python_xpcom.patch
@@ -0,0 +1,26 @@
+---
+ xpcom/stub/Makefile.in |    1 +
+ 1 file changed, 1 insertion(+)
+
+Index: mozilla/xpcom/stub/Makefile.in
+===================================================================
+--- mozilla.orig/xpcom/stub/Makefile.in
++++ mozilla/xpcom/stub/Makefile.in
+@@ -94,16 +94,17 @@
+ 
+ DEPENDENT_LIBS_LIST += \
+ 	$(LIB_PREFIX)sqlite3$(DLL_SUFFIX) \
+ 	$(LIB_PREFIX)nssutil3$(DLL_SUFFIX) \
+ 	$(LIB_PREFIX)softokn3$(DLL_SUFFIX) \
+ 	$(LIB_PREFIX)nss3$(DLL_SUFFIX) \
+ 	$(LIB_PREFIX)ssl3$(DLL_SUFFIX) \
+ 	$(LIB_PREFIX)smime3$(DLL_SUFFIX) \
++	$(LIB_PREFIX)pyxpcom$(DLL_SUFFIX) \
+ 	$(NULL)
+ 
+ ifeq (,$(filter-out WINNT WINCE,$(OS_ARCH)))
+ DEPENDENT_LIBS_LIST += js$(MOZ_BITS)$(VERSION_NUMBER)$(DLL_SUFFIX)
+ else
+ DEPENDENT_LIBS_LIST += $(LIB_PREFIX)mozjs$(DLL_SUFFIX)
+ endif
+ 
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/patches/bz467766_att351173-dont-reset-user-prefs-on-upgrade.patch
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/patches/bz467766_att351173-dont-reset-user-prefs-on-upgrade.patch
@@ -0,0 +1,102 @@
+
+This bug is due to the fact, applications are restarted before extension
+defaults are loaded.
+
+To reproduce, choose any preference and set the values like:
+system default:
+  pref("prefkey",systemvalue);
+extension default:
+  pref("prefkey", extensiondefault);
+user pref:
+  user_pref("prefkey", systemvalue);
+
+Next, trigger application behaviour similar to upgrade by removing compreg.dat
+from profile and start the application.
+
+Result:
+User sees extensiondefault after upgrade, because the user_pref has been
+eliminated ... which is definitly not what the user expects because he explicitly
+had *systemvalue* set before the upgrade.
+
+Evaluation:
+The bug happens because restart is performed *before* extension defaults have been
+loaded and the prefapi.cpp always eliminate user preference if the user preference
+is equal to the actual default (which happens to be extensiondefault normally  - so
+no reset, but is systemvalue during restart).
+
+Fix:
+1. savePrefs should not try to be smart ... this patch removes the heuristic that guesses
+whether a setting can be eliminated or not; it should be sufficient to only eliminate
+prefs in hashPrefs.
+
+2. This patch prevents hashPrefs from eliminating the user pref in case we are in
+*startup* ... unfortunately no such state info exists, which lets us guess that
+we are in startup for the previously not dealt case: !set_default && 
+!pref_ValueChanged(pref->defaultPref, value, type) && !PREF_HAS_USER_VALUE(pref).
+
+If is the case we explicitly remember that this setting is a user-pref ...
+even though it might be temporarily equal to the default pref.
+
+---
+ modules/libpref/src/prefapi.cpp |   20 ++++++++++++++------
+ 1 file changed, 14 insertions(+), 6 deletions(-)
+
+Index: mozilla/modules/libpref/src/prefapi.cpp
+===================================================================
+--- mozilla.orig/modules/libpref/src/prefapi.cpp
++++ mozilla/modules/libpref/src/prefapi.cpp
+@@ -324,23 +324,20 @@
+     if (!pref)
+         return PL_DHASH_NEXT;
+ 
+     nsCAutoString prefValue;
+ 
+     // where we're getting our pref from
+     PrefValue* sourcePref;
+ 
+-    if (PREF_HAS_USER_VALUE(pref) &&
+-        pref_ValueChanged(pref->defaultPref,
+-                          pref->userPref,
+-                          (PrefType) PREF_TYPE(pref)))
+-        sourcePref = &pref->userPref;
+-    else if (PREF_IS_LOCKED(pref))
++    if (PREF_IS_LOCKED(pref))
+         sourcePref = &pref->defaultPref;
++    else if (PREF_HAS_USER_VALUE(pref))
++        sourcePref = &pref->userPref;
+     else
+         // do not save default prefs that haven't changed
+         return PL_DHASH_NEXT;
+ 
+     // strings are in quotes!
+     if (pref->flags & PREF_STRING) {
+         prefValue = '\"';
+         str_escape(sourcePref->stringVal, prefValue);
+@@ -742,16 +739,27 @@
+            Otherwise, set the user value only if it has changed */
+         if ( !pref_ValueChanged(pref->defaultPref, value, type) )
+         {
+             if (PREF_HAS_USER_VALUE(pref))
+             {
+                 pref->flags &= ~PREF_USERSET;
+                 if (!PREF_IS_LOCKED(pref))
+                     valueChanged = PR_TRUE;
++            } else {
++                // this is tricky: we have !set_default ...
++                // thus we are setting a user pref; however the user
++                // pref set is same as *current default*; this normally
++                // means to un-set ... however since we have
++                // !PREF_HAS_USER_VALUE(pref) this can only be during
++                // startup
++                pref_SetValue(&pref->userPref, value, type);
++                pref->flags |= PREF_USERSET;
++                if (!PREF_IS_LOCKED(pref))
++                    valueChanged = PR_TRUE;
+             }
+         }
+         else if ( !PREF_HAS_USER_VALUE(pref) ||
+                    pref_ValueChanged(pref->userPref, value, type) )
+         {
+             pref_SetValue(&pref->userPref, value, type);
+             pref->flags |= PREF_USERSET;
+             if (!PREF_IS_LOCKED(pref))
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/mozclient/xulrunner-1.9.1.mk
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/mozclient/xulrunner-1.9.1.mk
@@ -0,0 +1,45 @@
+# -*- mode: makefile; coding: utf-8 -*-
+
+# Copyright (c) 2008 Fabien Tassin <fta@sofaraway.org>
+# Description: Project XULRunner 1.9.1
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+include /usr/share/mozilla-devscripts/mozclient.mk
+
+COMPARE_FILTER_PRE_IN	= sed \
+	-e 's,foo,foo,' \
+	$(NULL)
+
+COMPARE_FILTER_PRE_OUT	= sed \
+	-e 's,^usr/share/idl/.*,,' \
+	-e 's,^usr/include/.*,,' \
+	-e 's,^usr/lib/pkgconfig/.*,,' \
+	-e 's,^usr/lib/xulrunner-devel.*,,' \
+	-e 's,^usr/lib/xulrunner-1.9.1[^/]*/,,' \
+	-e 's,^etc/gre.d/.*,,' \
+	$(NULL)
+
+COMPARE_FILTER_IN	= sed \
+	-e 's,usr/lib/xulrunner-[^/]*/extensions,usr/lib/xulrunner-addons/extensions,' \
+	-e 's,usr/lib/xulrunner-[^/]*/plugins,usr/lib/xulrunner-addons/plugins,' \
+	$(NULL)
+
+COMPARE_FILTER_OUT	= sed \
+	-e 's,^DEBIAN/.*,,' \
+	-e 's,^usr/share/doc/.*,,' \
+	$(NULL)
+
+include /usr/share/mozilla-devscripts/compare.mk
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/mozclient/xulrunner-1.9.1.conf
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/mozclient/xulrunner-1.9.1.conf
@@ -0,0 +1,27 @@
+# Copyright (c) 2008 Fabien Tassin <fta@sofaraway.org>
+# Description: Project XULRunner 1.9.1
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+MOZCLIENT_APPNAME    = xulrunner-1.9.1
+MOZCLIENT_PROJECT    = mozilla-1.9.1
+MOZCLIENT_FILE       = mozilla/config/milestone.txt
+MOZCLIENT_GETVERSION = tail -1 mozilla/config/milestone.txt | sed -e 's/pre//; s/\([ab]\)\([0-9]*\)/~\1\2/'
+MOZCLIENT_VCS        = hg
+MOZCLIENT_VCS_LOC    = http://hg.mozilla.org/releases/
+#MOZCLIENT_POSTCOCMD  = cd mozilla && python client.py checkout
+MOZCLIENT_GETDATE    = sh debian/moz-rev.sh http://hg.mozilla.org/releases/mozilla-1.9.1 default
+MOZCLIENT_EMBEDDED  = 1
+MOZCLIENT_WANTMOZDIR = 1
--- xulrunner-1.9.1-1.9.1.8+build1+nobinonly.orig/debian/translation-support/install.rdf.in
+++ xulrunner-1.9.1-1.9.1.8+build1+nobinonly/debian/translation-support/install.rdf.in
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!--
+
+-->
+
+<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+     xmlns:em="http://www.mozilla.org/2004/em-rdf#">
+  <Description about="urn:mozilla:install-manifest"
+               em:id="langpack-en-US@xulrunner-1.9.1.ubuntu.com"
+               em:name="Xulrunner (en-US)"
+               em:version="@EM_VERSION@"
+               em:type="8"
+               em:creator="http://translations.launchpad.net">
+    <em:contributor></em:contributor>
+
+    <em:targetApplication>
+      <Description>
+        <em:id>toolkit@mozilla.org</em:id>
+        <em:minVersion>@EM_TOOLKIT_MIN_VERSION@</em:minVersion>
+        <em:maxVersion>@EM_TOOLKIT_MAX_VERSION@</em:maxVersion>
+      </Description>
+    </em:targetApplication>
+  </Description>
+</RDF>
