~mozillateam/firefox/firefox.disco

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Chris Coulson
  • Date: 2013-02-20 09:17:36 UTC
  • mto: This revision was merged to the branch mainline in revision 972.
  • Revision ID: chris.coulson@canonical.com-20130220091736-ofjaczrz2wc4nidl
* New upstream release from the beta channel
* Refresh patches
  - update debian/patches/mozilla-kde.patch
* Drop patches fixed upstream
  - remove debian/patches/ionmonkey-hardfp-support.patch
  - update debian/patches/series.in
* firefox-gnome-support needs explicit dependency on libnotify
  - update debian/control{,.in}
* Add support for autopkgtest, package the xpcshell, reftest and
  mochitest testsuites and migrate the xpcshell-tests, reftest, crashtest,
  jstestbrowser and mochitest targets to this. Note that tests that can't
  be ran as an autopkgtest (eg, if they require write permissions to the
  application directory) will still be ran at build time
  - add firefox-testsuite package in debian/control.in
  - update debian/control
  - add debian/firefox-testsuite.install.in
  - add debian/firefox-testsuite.links.in
  - update debian/build/mozbuild.mk
  - update debian/rules
  - drop xpcshell-tests, reftest, crashtest, jstestbrowser and mochitest
    targets from debian/build/testsuite.mk, add xpcshell-tests-build
    and the ability to run xpcshell-tests with our own reduced manifest
  - add debian/tests/control
  - add debian/tests/crashtest
  - add debian/tests/jstestbrowser
  - add debian/tests/mochitest
  - add debian/tests/reftest
  - add debian/tests/xpcshell-tests
  - add debian/testing/run_mochitest.in
  - add debian/testing/run_xpcshell_tests.in
  - add debian/testing/run_reftest.in
  - add debian/testing/testrunhelper.py
  - update debian/config/mozconfig.in to always build with --enable-tests
  - add debian/testing/xpcshell-build.ini
* Ensure that the directory provider returns all searchplugin paths during
  the search service xpcshell tests
  - add d/p/test-fixes/xpcshell-search-fix-browser-dirprovider.patch
  - update debian/patches/series.in
* Fix various tests that assume that either the application directory or
  test directory can be written to
  - add d/p/test-fixes/xpcshell-docshell-no-writes-to-appdir.patch
  - add d/p/test-fixes/xpcshell-contentprefs-no-writes-to-appdir.patch
  - add d/p/test-fixes/xpcshell-exthandler-no-writes-to-appdir.patch
  - add d/p/test-fixes/xpcshell-ctypes-no-writes-to-appdir.patch
  - add d/p/test-fixes/xpcshell-xpcom-no-writes-to-testdir-or-appdir.patch
  - add d/p/test-fixes/xpcshell-libpref-no-writes-to-testdir.patch
  - update debian/patches/series.in
* Export NO_PNG_PKG_MANGLE as optipng breaks tests that are dependent
  on image format / size
  - update debian/build/mozbuild.mk
* Don't test that the addon selection dialog appears in test_bug596343.js,
  as we disable this
  - add d/p/test-integration/xpcshell-disable-addon-select-dialog-test-for-adt.patch
  - update debian/patches/series
* Don't write a log file to the script directory from mochitest
  - add d/p/test-integration/mochitest-optional-websock-log.patch
  - update debian/patches/series.in
* Fix a failure in test_nodb_pluschanges.js due to const redeclaration
  - add d/p/test-fixes/xpcshell-search-fix-const-redeclaration.patch
  - update debian/patches/series.in
* Don't run the GConf-specific test_421977.js on systems where GSettings
  is available, as it will fail
  - add d/p/t-f/xpcshell-shell-disable-gconf-tests-when-using-gsettings.patch
  - update debian/patches/series.in
* Disable test_upgrade.js and test_upgrade_strictcompat.js xpcshell tests
  for now as they require write access to the application directory
  - add d/p/test-integration/xpcshell-disable-tests-which-need-appdir-write-access.patch
  - update debian/patches/series.in
* Disable test_browserGlue_distribution.js for now as it requires write
  access to the application directory
  - update d/p/test-integration/xpcshell-disable-tests-which-need-appdir-write-access.patch
* Reset the "browser" and "embed-app" content prefs after running content
  mochitests, so that the subsequent DOM browser-element tests don't
  fail
  - add d/p/test-fixes/mochitest-content-reset-permissions-when-done.patch
  - update debian/patches/series.in
* Disable various failing mochitests:
  - add debian/testing/mochitest.json
  - add debian/testing/mochitest-chrome.json
  - update debian/firefox-testsuite.install.in
* Fix issue where some tests were being added to the mochitest tests.jar
  using their absolute path in the build tree
  - add debian/patches/test-fixes/mochitest-tests-jar-fix.patch
  - update debian/patches/series.in
* Don't run the GConf specific browser_420786.js mochitest on systems where
  GSettings is available, as it will fail
  - add d/p/t-f/mochitest-shell-disable-gconf-tests-when-using-gsettings.patch
  - update debian/patches/series.in
* Don't ship the browser_bug538331.js mochitest as this isn't relevant
  when not using the Mozilla AUS
  - add d/p/test-fixes/mochitest-dont-ship-browser-postupdate-test.patch
  - update debian/patches/series.in
* Make "--test-manifest" work when running chrome, browser-chrome and a11y
  mochitests so that we can maintain a distro manifest for these
  - add d/p/test-integration/mochitest-allow-test-manifest-for-chrome.patch
  - update debian/patches/series.in
* Disable failing reftests
  - add d/p/test-overrides/reftest-disable-failing-tests.patch
  - update debian/patches/series.in
* Add vendor xpcshell tests to verify that the search service loads
  the expected number of search plugins from each language pack
  - update debian/build/mozbuild.mk
  - add debian/firefox-testsuite.dirs.in
  - update debian/firefox-testsuite.install.in
  - update debian/rules
  - add debian/testing/xpcshell-package-tests/head_package_tests.js
  - add debian/testing/xpcshell-package-tests/test_searchplugins_valid.js
  - add debian/testing/xpcshell-package-tests/test_searchplugins_valid_real.js
  - add debian/testing/xpcshell-package-tests/xpcshell.ini
  - update debian/tests/control
  - add debian/tests/xpcshell-package-tests
* Drop the hacky perl scripts that were being used to make sure the language
  packs ship the correct plugins. Add a xpcshell test instead
  - update debian/build/mozbuild.mk
  - update debian/rules
  - remove debian/build/refresh-search-modifications.pl
  - remove debian/build/verify-search-overrides.pl
  - remove debian/config/search-mods.list
  - update debian/control.in
  - remove debian/searchplugins/compute-overrides.json
  - add debian/testing/xpcshell-package-tests/test_ubuntu_searchplugins.js
  - add debian/testing/xpcshell-package-tests/test_ubuntu_searchplugins_real.js
  - update debian/testing/xpcshell-package-tests/xpcshell.ini
* Fix a test failure with the Italian Amazon search plugin 
  - update debian/searchplugins/it/amazon-it.xml
* We set intl.locale.matchOS to ensure that Firefox uses the environment
  locale. Add a test to make sure this works as expected
  - add debian/testing/xpcshell-package-tests/test_locale_matchOS.js
  - add debian/testing/xpcshell-package-tests/test_locale_matchOS_real.js
  - update debian/testing/xpcshell-package-tests/head_package_tests.js
  - update debian/testing/xpcshell-package-tests/test_searchplugins_valid.js
  - update debian/testing/xpcshell-package-tests/test_ubuntu_searchplugins.js
  - update debian/testing/xpcshell-package-tests/xpcshell.ini
  - update debian/tests/control
  - update debian/tests/crashtest
  - update debian/tests/jstestbrowser
  - update debian/tests/mochitest
  - update debian/tests/reftest
  - update debian/tests/xpcshell-package-tests
  - update debian/tests/xpcshell-tests
* We modify the user agent, so test that it is correct
  - add debian/testing/xpcshell-package-tests/test_ubuntu_useragent.js
  - update debian/testing/xpcshell-package-tests/xpcshell.ini
* LP: #974146 - Add a "Open a New Private Window" action to the desktop file
  - update debian/firefox.desktop.in
* Don't try to override the Amazon searchplugin for Kashubian or Mongolian,
  as it doesn't exist there
  - add debian/searchplugins/csb/list.txt
  - add debian/searchplugins/mn/list.txt
  - update d/t/xpcshell-package-tests/test_ubuntu_searchplugins_real.js
* Testpilot only enabled on beta now
  - update debian/firefox.install.in
* Don't run dh_scour on the testsuite package, as this screws up a lot
  of reftests and crashtests
  - update debian/build/mozbuild.mk
* Add a test to make sure all of the language packs are loadable by the
  addon manager
  - add debian/testing/xpcshell-package-tests/test_langpack_load.js
  - update debian/testing/xpcshell-package-tests/xpcshell.ini
* Add a test to make sure language pack chrome is registered correctly
  - add debian/testing/xpcshell-package-tests/test_langpack_chrome.js
  - update debian/testing/xpcshell-package-tests/xpcshell.ini
* Disable failing xpcshell tests
  - add d/p/test-overrides/xpcshell-disable-failing-tests.patch
  - update debian/patches/series.in
* Add JUnit output support for reftests
  - add d/p/test-integration/reftest-output-junit-xml.patch
  - update debian/patches/series.in
  - update debian/testing/run_reftest.in
* Allow xpcshell tests to be run with JUnit outputting, and include a fix
  to make sure that the output matches the schema
  - update debian/testing/run_xpcshell_tests.in
  - add d/p/test-integration/xpcshell-output-valid-junit-xml.patch
  - update debian/patches/series.in
* Add JUnit output support for mochitests
  - add d/p/test-integration/mochitest-output-junit-xml.patch
  - update debian/patches/series.in
  - update debian/testing/run_mochitest.in
* Turn on JUnit XML output for all tests
  - update debian/build/mozbuild.mk
  - update debian/tests/crashtest
  - update debian/tests/jstestbrowser
  - update debian/tests/mochitest
  - update debian/tests/reftest
  - update debian/tests/xpcshell-package-tests
  - update debian/tests/xpcshell-tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
3
include $(CURDIR)/debian/build/mozvars.mk
4
 
include $(CURDIR)/debian/config/branch.mk
5
4
 
6
5
MOZ_PKG_BASENAME        := firefox
7
6
MOZ_APP                 := browser
30
29
MOZ_SEARCHPLUGIN_DIR    = $(MOZ_LIBDIR)/distribution/searchplugins
31
30
endif
32
31
 
33
 
ifeq (firefox, $(MOZ_APP_NAME))
34
 
ifneq (,$(filter lucid, $(DISTRIB_CODENAME)))
35
 
PLUGIN_BREAKS := flashplugin-installer (<= 11.2.202.233ubuntu0.10.04.1), adobe-flashplugin (<= 11.1.102.63-0lucid1)
36
 
PLUGIN_CONFLICTS := gcu-plugin (<= 0.10.12-2ubuntu1), gecko-mediaplayer (<= 0.9.9.2-1ubuntu0.10.04.1), \
37
 
                    mozilla-gtk-vnc (<= 0.3.10-2ubuntu2.1), mozilla-opensc  (<= 0.11.12-1ubuntu3.2), \
38
 
                    mozilla-plugin-pcmanx (<= 0.3.9-2ubuntu2), mozplugger (<= 1.13.3-1ubuntu1), \
39
 
                    xine-plugin (<= 1.0.2-1ubuntu2), mozilla-virt-viewer (<= 0.0.3-6ubuntu7.xul191.1)
40
 
else
41
 
ifneq (,$(filter maverick, $(DISTRIB_CODENAME)))
42
 
PLUGIN_BREAKS := flashplugin-installer (<= 11.2.202.228ubuntu0.10.10.1), adobe-flashplugin (<= 11.1.102.63-0maverick1)
43
 
PLUGIN_CONFLICTS := gcu-plugin (<= 0.12.3-1), gecko-mediaplayer (<= 0.9.9.2-1ubuntu0.10.10.1), \
44
 
                    mozilla-gtk-vnc (<= 0.4.1-3ubuntu2), mozilla-opensc (<= 0.11.13-1ubuntu2.1), \
45
 
                    mozilla-plugin-pcmanx (<= 0.3.9-2ubuntu2), mozplugger (<= 1.14.1-2~exp3ubuntu1), \
46
 
                    xine-plugin (<= 1.0.2-2ubuntu1)
47
 
else
48
 
ifneq (,$(filter natty, $(DISTRIB_CODENAME)))
49
 
PLUGIN_BREAKS := flashplugin-installer (<= 11.2.202.233ubuntu0.11.04.2), adobe-flashplugin (<= 11.1.102.63-0natty1)
50
 
PLUGIN_CONFLICTS := gcu-plugin (<=  0.12.7-1ubuntu1)
51
 
else
52
 
ifneq (,$(filter oneiric, $(DISTRIB_CODENAME)))
53
 
PLUGIN_BREAKS := flashplugin-installer (<= 11.2.202.233ubuntu0.11.10.3), adobe-flashplugin (<= 11.1.102.63-0oneiric1)
54
 
PLUGIN_CONFLICTS := gcu-plugin (<= 0.12.8-1ubuntu3)
55
 
else
56
 
ifneq (,$(filter precise, $(DISTRIB_CODENAME)))
57
 
PLUGIN_BREAKS := flashplugin-installer (<= 11.1.102.63ubuntu1), adobe-flashplugin (<= 11.1.102.63-0precise1)
58
 
PLUGIN_CONFLICTS := gcu-plugin (<= 0.12.10-1ubuntu1)
59
 
endif
60
 
endif
61
 
endif
62
 
endif
63
 
endif
64
 
endif
65
 
 
66
 
ifeq (firefox, $(MOZ_PKG_NAME))
67
 
ifeq (,$(filter lucid maverick natty oneiric precise, $(DISTRIB_CODENAME)))
68
 
PKG_APP_REPLACES_ARGS   := kubuntu-firefox-installer
69
 
else
70
 
ifeq (,$(filter lucid, $(DISTRIB_CODENAME)))
71
 
PKG_APP_REPLACES_ARGS   := abrowser, abrowser-branding, firefox-branding, kubuntu-firefox-installer
72
 
PKG_APP_BREAKS_ARGS     := abrowser (<= 4.0~b11+build3+nobinonly-0ubuntu1), abrowser-branding (<= 4.0~b11+build3+nobinonly-0ubuntu1), \
73
 
                           firefox-branding (<= 4.0~b11+build3+nobinonly-0ubuntu1), $(PLUGIN_BREAKS)
74
 
PKG_APP_CONFLICTS_ARGS  := $(PLUGIN_CONFLICTS)
75
 
else
76
 
PKG_APP_PROVIDES_ARGS   := firefox-3.6, firefox-3.5, firefox-3.0, firefox-2, firefox-2-dom-inspector, firefox-2-libthai
77
 
PKG_APP_CONFLICTS_ARGS  := firefox-3.6 (<< 3.6~hg20100117r33523), firefox-3.5 (<< 3.6~hg20100117r33523), \
78
 
                           firefox-3.0 (<< 3.6~hg20100117r33523), firefox-3.6-gnome-support (<< 3.6~hg20100117r33523), \
79
 
                           firefox-2 (<< 3), firefox-2-libthai (<< 3), firefox-2-dom-inspector (<< 3), \
80
 
                           abrowser (<= 4.0~b11+build3+nobinonly-0ubuntu1), abrowser-branding (<= 4.0~b11+build3+nobinonly-0ubuntu1), \
81
 
                           firefox-branding (<= 4.0~b11+build3+nobinonly-0ubuntu1), $(PLUGIN_CONFLICTS)
82
 
PKG_APP_REPLACES_ARGS   := firefox-3.6, firefox-3.5, firefox-3.0, firefox-3.6-gnome-support, firefox-2, firefox-2-libthai, \
83
 
                           firefox-2-dom-inspector, abrowser, abrowser-branding, firefox-branding, kubuntu-firefox-installer
84
 
PKG_APP_BREAKS_ARGS     := $(PLUGIN_BREAKS)
85
 
PKG_DEV_PROVIDES_ARGS   := firefox-3.6-dev, firefox-3.5-dev, firefox-3.0-dev, firefox-2-dev
86
 
PKG_DEV_REPLACES_ARGS   := firefox-3.6-dev, firefox-3.5-dev, firefox-3.0-dev, firefox-2-dev
87
 
PKG_DEV_CONFLICTS_ARGS  := firefox-3.6-dev (<< 3.6~hg20100117r33523+nobinonly), firefox-3.5-dev (<< 3.6~hg20100117r33523), \
88
 
                           firefox-3.0-dev (<< 3.6~hg20100117r33523), firefox-2-dev (<< 3)
89
 
PKG_GS_PROVIDES_ARGS    := firefox-3.6-gnome-support, firefox-3.5-gnome-support, firefox-3.0-gnome-support, firefox-2
90
 
PKG_GS_CONFLICTS_ARGS   := firefox-3.6-gnome-support (<< 3.6~hg20100117r33523+nobinonly), \
91
 
                           firefox-3.5-gnome-support (<< 3.6~hg20100117r33523), firefox-3.0-gnome-support (<< 3.6~hg20100117r33523), \
92
 
                           firefox-2 (<< 3)
93
 
PKG_GS_REPLACES_ARGS    := firefox-3.6-gnome-support, firefox-3.5-gnome-support, firefox-3.0-gnome-support, firefox-2-gnome-support
94
 
PKG_DBG_CONFLICTS_ARGS  := firefox-3.6-dbg (<< 3.6~hg20100117r33523+nobinonly), firefox-3.5-dbg (<< 3.6~hg20100117r33523), firefox-2-dbg (<< 3)
95
 
PKG_DBG_REPLACES_ARGS   := firefox-3.6-dbg, firefox-3.5-dbg, firefox-2-dbg
96
 
PKG_DBG_PROVIDES_ARGS   := firefox-3.6-dbg, firefox-3.5-dbg, firefox-2-dbg
97
 
endif
98
 
endif
99
 
endif
100
 
 
101
 
ifneq (,$(filter lucid, $(DISTRIB_CODENAME)))
102
 
PKG_SUPPORT_SUGGESTS    := $(MOZ_PKG_NAME)-gnome-support, kmozillahelper (>= 0.6)
 
32
ifneq (,$(filter lucid, $(DISTRIB_CODENAME)))
 
33
MOZ_PKG_SUPPORT_SUGGESTS        = $(MOZ_PKG_NAME)-gnome-support, kmozillahelper (>= 0.6)
103
34
else
104
35
ifneq (,$(filter lucid maverick natty oneiric, $(DISTRIB_CODENAME)))
105
 
PKG_SUPPORT_SUGGESTS    := $(MOZ_PKG_NAME)-gnome-support | firefox-kde-support
106
 
else
107
 
PKG_SUPPORT_SUGGESTS    := $(MOZ_PKG_NAME)-gnome-support
 
36
MOZ_PKG_SUPPORT_SUGGESTS        = $(MOZ_PKG_NAME)-gnome-support | firefox-kde-support
108
37
endif
109
38
endif
110
39
 
116
45
        debian/apport/blacklist \
117
46
        debian/apport/native-origins \
118
47
        debian/apport/source_$(MOZ_PKG_NAME).py \
 
48
        debian/testing/run_mochitest \
 
49
        debian/testing/run_reftest \
 
50
        debian/testing/run_xpcshell_tests \
119
51
        $(NULL)
120
52
 
121
53
MOZ_APPNAME_SUBST_FILES = \
131
63
 
132
64
include $(CURDIR)/debian/build/mozbuild.mk
133
65
 
 
66
MOZ_EXECUTABLES_$(MOZ_PKG_NAME)-testsuite =     $(MOZ_TESTDIR)/run_mochitest \
 
67
                                                $(MOZ_TESTDIR)/run_reftest \
 
68
                                                $(MOZ_TESTDIR)/run_xpcshell_tests \
 
69
                                                $(MOZ_LIBDIR)/xpcshell \
 
70
                                                $(NULL)
 
71
 
134
72
debian/usr.bin.firefox.in:
135
73
        if [ '$(DISTRIB_VERSION_MAJOR)$(DISTRIB_VERSION_MINOR)' -ge '1204' ]; then \
136
74
                cp $(CURDIR)/debian/usr.bin.firefox.apparmor.12.04 $(CURDIR)/debian/usr.bin.firefox.in ; \
144
82
                cp $(CURDIR)/debian/usr.bin.firefox.apparmor.9.10 $(CURDIR)/debian/usr.bin.firefox.in ; \
145
83
        fi
146
84
 
147
 
common-binary-fixup-arch::
 
85
ifeq (firefox, $(MOZ_APP_NAME))
 
86
ifneq (,$(filter lucid, $(DISTRIB_CODENAME)))
 
87
PLUGIN_BREAKS := flashplugin-installer (<= 11.2.202.233ubuntu0.10.04.1), adobe-flashplugin (<= 11.1.102.63-0lucid1)
 
88
PLUGIN_CONFLICTS := gcu-plugin (<= 0.10.12-2ubuntu1), gecko-mediaplayer (<= 0.9.9.2-1ubuntu0.10.04.1), \
 
89
                    mozilla-gtk-vnc (<= 0.3.10-2ubuntu2.1), mozilla-opensc  (<= 0.11.12-1ubuntu3.2), \
 
90
                    mozilla-plugin-pcmanx (<= 0.3.9-2ubuntu2), mozplugger (<= 1.13.3-1ubuntu1), \
 
91
                    xine-plugin (<= 1.0.2-1ubuntu2), mozilla-virt-viewer (<= 0.0.3-6ubuntu7.xul191.1)
 
92
else
 
93
ifneq (,$(filter maverick, $(DISTRIB_CODENAME)))
 
94
PLUGIN_BREAKS := flashplugin-installer (<= 11.2.202.228ubuntu0.10.10.1), adobe-flashplugin (<= 11.1.102.63-0maverick1)
 
95
PLUGIN_CONFLICTS := gcu-plugin (<= 0.12.3-1), gecko-mediaplayer (<= 0.9.9.2-1ubuntu0.10.10.1), \
 
96
                    mozilla-gtk-vnc (<= 0.4.1-3ubuntu2), mozilla-opensc (<= 0.11.13-1ubuntu2.1), \
 
97
                    mozilla-plugin-pcmanx (<= 0.3.9-2ubuntu2), mozplugger (<= 1.14.1-2~exp3ubuntu1), \
 
98
                    xine-plugin (<= 1.0.2-2ubuntu1)
 
99
else
 
100
ifneq (,$(filter natty, $(DISTRIB_CODENAME)))
 
101
PLUGIN_BREAKS := flashplugin-installer (<= 11.2.202.233ubuntu0.11.04.2), adobe-flashplugin (<= 11.1.102.63-0natty1)
 
102
PLUGIN_CONFLICTS := gcu-plugin (<=  0.12.7-1ubuntu1)
 
103
else
 
104
ifneq (,$(filter oneiric, $(DISTRIB_CODENAME)))
 
105
PLUGIN_BREAKS := flashplugin-installer (<= 11.2.202.233ubuntu0.11.10.3), adobe-flashplugin (<= 11.1.102.63-0oneiric1)
 
106
PLUGIN_CONFLICTS := gcu-plugin (<= 0.12.8-1ubuntu3)
 
107
else
 
108
ifneq (,$(filter precise, $(DISTRIB_CODENAME)))
 
109
PLUGIN_BREAKS := flashplugin-installer (<= 11.1.102.63ubuntu1), adobe-flashplugin (<= 11.1.102.63-0precise1)
 
110
PLUGIN_CONFLICTS := gcu-plugin (<= 0.12.10-1ubuntu1)
 
111
endif
 
112
endif
 
113
endif
 
114
endif
 
115
endif
 
116
endif
 
117
 
 
118
WRITE_SUBSTVARS = $(shell echo "$(2)=$(3)" | sed -n 's/[ \t\n]\+/ /g p' >> debian/$(1).substvars)
 
119
 
 
120
ifeq (firefox, $(MOZ_PKG_NAME))
 
121
ifeq (,$(filter lucid maverick natty oneiric precise, $(DISTRIB_CODENAME)))
 
122
install/firefox::
 
123
        $(call WRITE_SUBSTVARS,firefox,transitional:Replaces,kubuntu-firefox-installer)
 
124
else
 
125
ifeq (,$(filter lucid, $(DISTRIB_CODENAME)))
 
126
FIREFOX_REPLACES = abrowser, abrowser-branding, firefox-branding, kubuntu-firefox-installer
 
127
FIREFOX_BREAKS = abrowser (<= 4.0~b11+build3+nobinonly-0ubuntu1), abrowser-branding (<= 4.0~b11+build3+nobinonly-0ubuntu1), \
 
128
                 firefox-branding (<= 4.0~b11+build3+nobinonly-0ubuntu1), $(PLUGIN_BREAKS)
 
129
install/firefox::
 
130
        $(call WRITE_SUBSTVARS,firefox,transitional:Replaces,$(FIREFOX_REPLACES))
 
131
        $(call WRITE_SUBSTVARS,firefox,transitional:Breaks,$(FIREFOX_BREAKS))
 
132
        $(call WRITE_SUBSTVARS,firefox,transitional:Conflicts,$(PLUGIN_CONFLICTS))
 
133
else
 
134
FIREFOX_PROVIDES = firefox-3.6, firefox-3.5, firefox-3.0, firefox-2, firefox-2-dom-inspector, firefox-2-libthai
 
135
FIREFOX_CONFLICTS = firefox-3.6 (<< 3.6~hg20100117r33523), firefox-3.5 (<< 3.6~hg20100117r33523), firefox-3.0 (<< 3.6~hg20100117r33523), \
 
136
                    firefox-3.6-gnome-support (<< 3.6~hg20100117r33523), firefox-2 (<< 3), firefox-2-libthai (<< 3), \
 
137
                    firefox-2-dom-inspector (<< 3), abrowser (<= 4.0~b11+build3+nobinonly-0ubuntu1), \
 
138
                    abrowser-branding (<= 4.0~b11+build3+nobinonly-0ubuntu1), firefox-branding (<= 4.0~b11+build3+nobinonly-0ubuntu1), \
 
139
                    $(PLUGIN_CONFLICTS)
 
140
FIREFOX_REPLACES = firefox-3.6, firefox-3.5, firefox-3.0, firefox-3.6-gnome-support, firefox-2, firefox-2-libthai, \
 
141
                   firefox-2-dom-inspector, abrowser, abrowser-branding, firefox-branding, kubuntu-firefox-installer
 
142
install/firefox::
 
143
        $(call WRITE_SUBSTVARS,firefox,transitional:Provides,$(FIREFOX_PROVIDES))
 
144
        $(call WRITE_SUBSTVARS,firefox,transitional:Conflicts,$(FIREFOX_CONFLICTS))
 
145
        $(call WRITE_SUBSTVARS,firefox,transitional:Replaces,$(FIREFOX_REPLACES))
 
146
        $(call WRITE_SUBSTVARS,firefox,transitional:Breaks,$(PLUGIN_BREAKS))
 
147
 
 
148
DEV_PROVIDES = firefox-3.6-dev, firefox-3.5-dev, firefox-3.0-dev, firefox-2-dev
 
149
DEV_REPLACES = firefox-3.6-dev, firefox-3.5-dev, firefox-3.0-dev, firefox-2-dev
 
150
DEV_CONFLICTS = firefox-3.6-dev (<< 3.6~hg20100117r33523+nobinonly), firefox-3.5-dev (<< 3.6~hg20100117r33523), \
 
151
                firefox-3.0-dev (<< 3.6~hg20100117r33523), firefox-2-dev (<< 3)
 
152
install/firefox-dev::
 
153
        $(call WRITE_SUBSTVARS,firefox-dev,transitional:Provides,$(DEV_PROVIDES))
 
154
        $(call WRITE_SUBSTVARS,firefox-dev,transitional:Replaces,$(DEV_REPLACES))
 
155
        $(call WRITE_SUBSTVARS,firefox-dev,transitional:Conflicts,$(DEV_CONFLICTS))
 
156
 
 
157
GS_PROVIDES = firefox-3.6-gnome-support, firefox-3.5-gnome-support, firefox-3.0-gnome-support, firefox-2
 
158
GS_REPLACES = firefox-3.6-gnome-support, firefox-3.5-gnome-support, firefox-3.0-gnome-support, firefox-2-gnome-support
 
159
GS_CONFLICTS = firefox-3.6-gnome-support (<< 3.6~hg20100117r33523+nobinonly), firefox-3.5-gnome-support (<< 3.6~hg20100117r33523), \
 
160
               firefox-3.0-gnome-support (<< 3.6~hg20100117r33523), firefox-2 (<< 3)
 
161
install/firefox-gnome-support::
 
162
        $(call WRITE_SUBSTVARS,firefox-gnome-support,transitional:Provides,$(GS_PROVIDES))
 
163
        $(call WRITE_SUBSTVARS,firefox-gnome-support,transitional:Replaces,$(GS_REPLACES))
 
164
        $(call WRITE_SUBSTVARS,firefox-gnome-support,transitional:Conflicts,$(GS_CONFLICTS))
 
165
 
 
166
DBG_PROVIDES = firefox-3.6-dbg, firefox-3.5-dbg, firefox-2-dbg
 
167
DBG_REPLACES = firefox-3.6-dbg, firefox-3.5-dbg, firefox-2-dbg
 
168
DBG_CONFLICTS = firefox-3.6-dbg (<< 3.6~hg20100117r33523+nobinonly), firefox-3.5-dbg (<< 3.6~hg20100117r33523), firefox-2-dbg (<< 3)
 
169
install/firefox-dbg::
 
170
        $(call WRITE_SUBSTVARS,firefox-dbg,transitional:Provides,$(DBG_PROVIDES))
 
171
        $(call WRITE_SUBSTVARS,firefox-dbg,transitional:Replaces,$(DBG_REPLACES))
 
172
        $(call WRITE_SUBSTVARS,firefox-dbg,transitional:Conflicts,$(DBG_CONFLICTS))
 
173
endif
 
174
endif
 
175
endif
 
176
 
 
177
$(patsubst %,binary-post-install/$(MOZ_PKG_NAME)-locale-%,$(MOZ_LANGPACK_TARGETS)):: binary-post-install/$(MOZ_PKG_NAME)-locale-%: install-webapprt-langpack-links-%
 
178
 
 
179
install-webapprt-langpack-links-%: XPIS = $(notdir $(wildcard debian/$(MOZ_PKG_NAME)-locale-$*/$(MOZ_ADDONDIR)/extensions/*.xpi))
 
180
install-webapprt-langpack-links-%:
 
181
        $(foreach xpi,$(XPIS),dh_link -p$(MOZ_PKG_NAME)-locale-$* $(MOZ_ADDONDIR)/extensions/$(xpi) $(MOZ_LIBDIR)/webapprt/extensions/$(xpi);)
 
182
 
 
183
make-langpack-preinsts::
148
184
        @while read line ; \
149
185
        do \
150
186
                line=`echo $$line | sed 's/#.*//' | sed '/^$$/d'` ; \
155
191
                fi \
156
192
        done < $(CURDIR)/debian/config/locales.shipped
157
193
 
158
 
LOCALE_PACKAGES := $(shell cat $(CURDIR)/debian/control | grep "^Package:[[:space:]]*$(MOZ_PKG_NAME)-locale\-" | sed -n -e 's/^Package\:[[:space:]]*\([^[:space:]]*\)/\1/ p')
159
 
 
160
 
common-binary-post-install-arch:: install-webapprt-langpack-links
161
 
 
162
 
install-webapprt-langpack-links: $(foreach target, $(LOCALE_PACKAGES), install-webapprt-langpack-link-$(target))
163
 
install-webapprt-langpack-link-%: XPIS = $(notdir $(wildcard debian/$*/$(MOZ_ADDONDIR)/extensions/*.xpi))
164
 
install-webapprt-langpack-link-%:
165
 
        $(foreach xpi,$(XPIS),dh_link -p$* $(MOZ_ADDONDIR)/extensions/$(xpi) $(MOZ_LIBDIR)/webapprt/extensions/$(xpi);)
166
 
 
167
 
pre-build::
 
194
pre-build:: make-langpack-preinsts
168
195
        @cp $(DEB_SRCDIR)/toolkit/content/widgets/dialog.xml $(DEB_SRCDIR)/toolkit/content/widgets/dialog-kde.xml
169
196
        @cp $(DEB_SRCDIR)/toolkit/content/widgets/preferences.xml $(DEB_SRCDIR)/toolkit/content/widgets/preferences-kde.xml
170
197
        @cp $(DEB_SRCDIR)/browser/base/content/browser.xul $(DEB_SRCDIR)/browser/base/content/browser-kde.xul
193
220
        rm -f $(DEB_SRCDIR)/toolkit/content/widgets/dialog-kde.xml
194
221
        rm -f $(DEB_SRCDIR)/toolkit/content/widgets/preferences-kde.xml
195
222
        rm -f $(DEB_SRCDIR)/browser/base/content/browser-kde.xul
 
223
 
 
224
.PHONY: make-langpack-preinsts