~ubuntu-branches/ubuntu/quantal/firefox/quantal

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-04-23 13:13:27 UTC
  • mfrom: (1.1.81) (150.1.1 precise-security)
  • Revision ID: package-import@ubuntu.com-20120423131327-0a91tc2y99pmnnft
Tags: 12.0+build1-0ubuntu0.12.04.1
* New upstream stable release (FIREFOX_12_0_BUILD1)
  - see LP: #987262 for USN information

* Update globalmenu-extension to 3.2.3
  - Fix regression introduced by the fix for LP: #915888
* Firefox recommends libcanberra0 now that bmo: #635918 has landed
  - update debian/control{,in}
* Refresh patches
  - update debian/patches/avoid-dbus-roundtrip-for-httpchannel.patch
  - update debian/patches/no-sps-profiler-on-unsupported-archs.patch
  - update debian/patches/ubuntu-codes-google.patch
* Refresh locales
  - refresh debian/config/locales.all
  - refresh debian/control
* Make the language packs Architecture: any. Whilst they are actually
  architecture independent, we do install them in to /usr/lib (as the
  extensions location is shared with architecture-specific extensions).
  This also avoids the problem of offering incompatible language pack
  upgrades to users on architectures where Firefox fails to build
  (I'm looking at you, powerpc)
  - update debian/control.langpacks
  - update debian/control.langpacks.unavail
  - update debian/rules
  - refresh debian/control
* Disable fix-build-failure-without-yarr-jit.patch, as it needs some work.
  This means that there is currently no powerpc support

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
DEB_BUILD_GNU_TYPE      ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
61
61
DEB_HOST_ARCH           ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
62
62
DEB_HOST_GNU_CPU        ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
 
63
DEB_HOST_GNU_SYSTEM     ?= $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
63
64
# Other things which should be defined before including the CDBS rules
64
65
DEB_TAR_SRCDIR          := mozilla
65
66
 
203
204
        export MOZILLA_OFFICIAL=1
204
205
endif
205
206
 
 
207
ifeq (linux-gnu, $(DEB_HOST_GNU_SYSTEM))
 
208
LANGPACK_DIR := linux-$(DEB_HOST_GNU_CPU)/xpi
 
209
else
 
210
LANGPACK_DIR := $(DEB_HOST_GNU_SYSTEM)-$(DEB_HOST_GNU_CPU)/xpi
 
211
endif
 
212
 
206
213
ifeq ($(MOZ_APP_BASENAME), $(MOZ_APP_NAME))
207
214
ifeq (1,$(shell test "$(DISTRIB_VERSION_MAJOR)$(DISTRIB_VERSION_MINOR)" -eq "1004" && echo "1"))
208
 
PLUGIN_BREAKS := flashplugin-installer (<= 11.1.102.63ubuntu0.10.04.1), adobe-flashplugin (<= 11.1.102.63-0lucid1)
 
215
PLUGIN_BREAKS := flashplugin-installer (<= 11.2.202.233ubuntu0.10.04.1), adobe-flashplugin (<= 11.1.102.63-0lucid1)
209
216
PLUGIN_CONFLICTS := gcu-plugin (<= 0.10.12-2ubuntu1), gecko-mediaplayer (<= 0.9.9.2-1ubuntu0.10.04.1), \
210
217
                    mozilla-gtk-vnc (<= 0.3.10-2ubuntu2.1), mozilla-opensc  (<= 0.11.12-1ubuntu3.2), \
211
218
                    mozilla-plugin-pcmanx (<= 0.3.9-2ubuntu2), mozplugger (<= 1.13.3-1ubuntu1), \
212
219
                    xine-plugin (<= 1.0.2-1ubuntu2), mozilla-virt-viewer (<= 0.0.3-6ubuntu7.xul191.1)
213
220
else
214
221
ifeq (1,$(shell test "$(DISTRIB_VERSION_MAJOR)$(DISTRIB_VERSION_MINOR)" -eq "1010" && echo "1"))
215
 
PLUGIN_BREAKS := flashplugin-installer (<= 11.1.102.63ubuntu0.10.10.1), adobe-flashplugin (<= 11.1.102.63-0maverick1)
 
222
PLUGIN_BREAKS := flashplugin-installer (<= 11.2.202.228ubuntu0.10.10.1), adobe-flashplugin (<= 11.1.102.63-0maverick1)
216
223
PLUGIN_CONFLICTS := gcu-plugin (<= 0.12.3-1), gecko-mediaplayer (<= 0.9.9.2-1ubuntu0.10.10.1), \
217
224
                    mozilla-gtk-vnc (<= 0.4.1-3ubuntu2), mozilla-opensc (<= 0.11.13-1ubuntu2.1), \
218
225
                    mozilla-plugin-pcmanx (<= 0.3.9-2ubuntu2), mozplugger (<= 1.14.1-2~exp3ubuntu1), \
219
226
                    xine-plugin (<= 1.0.2-2ubuntu1)
220
227
else
221
228
ifeq (1,$(shell test "$(DISTRIB_VERSION_MAJOR)$(DISTRIB_VERSION_MINOR)" -eq "1104" && echo "1"))
222
 
PLUGIN_BREAKS := flashplugin-installer (<= 11.1.102.63ubuntu0.11.04.1), adobe-flashplugin (<= 11.1.102.63-0natty1)
 
229
PLUGIN_BREAKS := flashplugin-installer (<= 11.2.202.233ubuntu0.11.04.2), adobe-flashplugin (<= 11.1.102.63-0natty1)
223
230
PLUGIN_CONFLICTS := gcu-plugin (<=  0.12.7-1ubuntu1)
224
231
else
225
232
ifeq (1,$(shell test "$(DISTRIB_VERSION_MAJOR)$(DISTRIB_VERSION_MINOR)" -eq "1110" && echo "1"))
226
 
PLUGIN_BREAKS := flashplugin-installer (<= 11.1.102.63ubuntu0.11.10.1), adobe-flashplugin (<= 11.1.102.63-0oneiric1)
 
233
PLUGIN_BREAKS := flashplugin-installer (<= 11.2.202.233ubuntu0.11.10.3), adobe-flashplugin (<= 11.1.102.63-0oneiric1)
227
234
PLUGIN_CONFLICTS := gcu-plugin (<= 0.12.8-1ubuntu3)
228
235
else
229
236
PLUGIN_BREAKS := flashplugin-installer (<= 11.1.102.63ubuntu1), adobe-flashplugin (<= 11.1.102.63-0precise1)
246
253
                                     firefox-branding (<= 4.0~b11+build3+nobinonly-0ubuntu1), $(PLUGIN_CONFLICTS)" \
247
254
                    -Vapp:Replaces="firefox-3.6, firefox-3.5, firefox-3.0, firefox-3.6-gnome-support, firefox-2, firefox-2-libthai, \
248
255
                                    firefox-2-dom-inspector, abrowser, abrowser-branding, firefox-branding, kubuntu-firefox-installer" \
249
 
                    -Vapp:Breaks="(PLUGIN_BREAKS)"
 
256
                    -Vapp:Breaks="$(PLUGIN_BREAKS)"
250
257
DEV_CONTROL_ARGS := -Vdev:Provides="firefox-3.6-dev, firefox-3.5-dev, firefox-3.0-dev, firefox-2-dev" \
251
258
                    -Vdev:Replaces="firefox-3.6-dev, firefox-3.5-dev, firefox-3.0-dev, firefox-2-dev" \
252
259
                    -Vdev:Conflicts="firefox-3.6-dev (<< 3.6~hg20100117r33523+nobinonly), firefox-3.5-dev (<< 3.6~hg20100117r33523), \
274
281
endif
275
282
endif
276
283
DEB_DH_GENCONTROL_ARGS_$(MOZ_APP_NAME)-dev := -- -Vnspr:Depends=$(NSPR_DEPENDS) -Vnss:Depends=$(NSS_DEPENDS) -Vcairo:Depends=$(CAIRO_DEPENDS) $(DEV_CONTROL_ARGS)
277
 
ifneq (1,$(GS_CONTROL_ARGS))
278
 
DEB_DH_GENCONTROL_ARGS_$(MOZ_APP_NAME)-gnome-support := -- $(GS_CONTROL_ARGS)
 
284
# With GSettings and at-spi2 in 11.10, we no longer rely on gconf for anything
 
285
ifeq (1,$(shell test "$(DISTRIB_VERSION_MAJOR)$(DISTRIB_VERSION_MINOR)" -lt "1110" && echo "1"))
 
286
GCONF_DEPENDS := libgconf2-4
279
287
endif
 
288
DEB_DH_GENCONTROL_ARGS_$(MOZ_APP_NAME)-gnome-support := -- -Vgconf:Depends="$(GCONF_DEPENDS)" $(GS_CONTROL_ARGS)
280
289
ifneq (,$(DBG_CONTROL_ARGS))
281
290
DEB_DH_GENCONTROL_ARGS_$(MOZ_APP_NAME)-dbg := -- $(DBG_CONTROL_ARGS)
282
291
endif
483
492
 
484
493
        touch $@
485
494
 
486
 
common-build-arch:: run-tests $(pkgconfig_files)
487
 
 
488
 
common-build-indep:: make-langpack-xpis
 
495
common-build-arch:: run-tests $(pkgconfig_files) make-langpack-xpis
489
496
 
490
497
common-install-arch common-install-indep::
491
498
        $(foreach dir,$(MOZ_LIBDIR) $(MOZ_INCDIR) $(MOZ_IDLDIR) $(MOZ_SDKDIR), \
519
526
        dh_link -p$(MOZ_APP_NAME)-dev $(MOZ_INCDIR)/nspr/prcpucfg.h $(MOZ_INCDIR)/nspr/md/_linux.cfg
520
527
endif
521
528
 
522
 
common-binary-post-install-indep::
 
529
common-binary-post-install-arch::
523
530
        @echo ""
524
531
        @echo "**********************************"
525
532
        @echo "* Installing language pack xpi's *"
533
540
                then \
534
541
                        language=`echo $$line | sed 's/\([^:]*\):*\([^:]*\)/\1/'` ; \
535
542
                        pkgname=`echo $$line | sed 's/\([^:]*\):*\([^:]*\)/\2/'` ; \
536
 
                        id=`python $(CURDIR)/debian/build/get-xpi-id.py $(CURDIR)/$(MOZ_DISTDIR)/linux-$(DEB_HOST_GNU_CPU)/xpi/$(MOZ_APP_NAME)-$(MOZ_VERSION).$${language}.langpack.xpi` ; \
 
543
                        id=`python $(CURDIR)/debian/build/get-xpi-id.py $(CURDIR)/$(MOZ_DISTDIR)/$(LANGPACK_DIR)/$(MOZ_APP_NAME)-$(MOZ_VERSION).$${language}.langpack.xpi` ; \
537
544
                        [ $$? -eq 0 ] || exit 1 ; \
538
545
                        echo "Installing $(MOZ_APP_NAME)-$(MOZ_VERSION).$${language}.langpack.xpi to $${id}.xpi in $(MOZ_APP_NAME)-locale-$${pkgname}" ; \
539
546
                        dh_installdirs -p$(MOZ_APP_NAME)-locale-$${pkgname} usr/lib/$(MOZ_APP_NAME)-addons/extensions ; \
540
 
                        cp $(CURDIR)/$(MOZ_DISTDIR)/linux-$(DEB_HOST_GNU_CPU)/xpi/$(MOZ_APP_NAME)-$(MOZ_VERSION).$${language}.langpack.xpi \
 
547
                        cp $(CURDIR)/$(MOZ_DISTDIR)/$(LANGPACK_DIR)/$(MOZ_APP_NAME)-$(MOZ_VERSION).$${language}.langpack.xpi \
541
548
                          $(CURDIR)/debian/$(MOZ_APP_NAME)-locale-$${pkgname}/usr/lib/$(MOZ_APP_NAME)-addons/extensions/$${id}.xpi ; \
542
549
                        dh_installdirs -p$(MOZ_APP_NAME)-locale-$${pkgname} $(DIST_SEARCHPLUGIN_DIR)/locale/$${language} ; \
543
550
                        cp -r $(CURDIR)/$(MOZ_DISTDIR)/xpi-stage/locale-$${language}/searchplugins/*.xml \
545
552
                fi \
546
553
        done < $(CURDIR)/debian/config/locales.shipped
547
554
 
548
 
common-binary-fixup-indep::
 
555
common-binary-fixup-arch::
549
556
        @while read line ; \
550
557
        do \
551
558
                line=`echo $$line | sed 's/#.*//' | sed '/^$$/d'` ; \