Bug 445918 - Setting deb package dependancy on xr version + buildid r=ted
author"Brad Lassey" <blassey@mozilla.com>
Fri, 25 Jul 2008 19:07:50 -0400
changeset 64776 d91f55c07a7384c99c197239dd11d6a1993f3ced
parent 64775 30bb7c9f5a549ad5ce8ecad66351f5dfc0082efe
child 64777 42182806fd6dafc4c5353c7d112c6737d43fb6ac
push id19389
push userffxbld
push dateWed, 06 Apr 2011 21:33:21 +0000
treeherdermozilla-central@8e9f90073a20 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs445918
Bug 445918 - Setting deb package dependancy on xr version + buildid r=ted
mobile/installer/Makefile.in
mobile/installer/debian/control.in
--- a/mobile/installer/Makefile.in
+++ b/mobile/installer/Makefile.in
@@ -37,16 +37,21 @@
 
 DEPTH     = ../..
 topsrcdir = @top_srcdir@
 srcdir    = @srcdir@
 VPATH     = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
+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) 
+
 NO_PKG_FILES = \
 	$(MOZ_APP_NAME)-config \
 	$(MOZ_APP_NAME)-bin.elf \
 	regchrome* \
 	regxpcom* \
 	xpcshell* \
 	xpidl* \
 	xpt_dump* \
@@ -63,17 +68,22 @@ ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_
 _BINPATH = /$(_APPNAME)/Contents/Resources
 endif
 
 include $(topsrcdir)/toolkit/mozapps/installer/packager.mk
 
 DEBDESTDIR=debian/$(MOZ_APP_NAME)
 
 ifeq ($(OS_TARGET),Linux)
-deb: 
+debian/control: $(srcdir)/debian/control.in $(LIBXUL_DIST)/bin/platform.ini
+	mkdir -p debian
+	$(PYTHON) $(topsrcdir)/config/Preprocessor.py \
+        $(AUTOMATION_PPARGS) $(DEFINES) $(ACDEFINES) $< > $@
+
+deb: debian/control
 	rm -rf $(DEBDESTDIR)/usr/local/*
 	$(NSINSTALL) -D $(DEBDESTDIR)/usr/local
 	cd $(DEBDESTDIR)/usr/local; cat $(DEPTH)/../../../../dist/$(PKG_BASENAME)$(PKG_SUFFIX) | $(UNMAKE_PACKAGE)  
 	rm -rf $(DEBDESTDIR)/usr/local/$(MOZ_APP_NAME)/xulrunner	
 	$(NSINSTALL)  debian/$(MOZ_APP_NAME).desktop $(DEBDESTDIR)/usr/share/applications/hildon/
 	$(NSINSTALL) -D $(DEBDESTDIR)/usr/share/dbus-1/services/
 	cp debian/$(MOZ_APP_NAME).service $(DEBDESTDIR)/usr/share/dbus-1/services/org.mozilla.$(MOZ_APP_NAME).service
 #	$(NSINSTALL) -m 755 debian/postinst debian/$(MOZ_APP_NAME)/DEBIAN
--- a/mobile/installer/debian/control.in
+++ b/mobile/installer/debian/control.in
@@ -1,18 +1,19 @@
+#filter substitution
 Source: fennec
 Section: user/internet
 Priority: extra
 Maintainer: Mozilla fennec <blassey@mozilla.com>
 Build-Depends: debhelper (>= 5)
 Standards-Version: 3.7.2
 
 Package: fennec
 Architecture: any
-Depends: ${shlibs:Depends}, xulrunner (>=1.9pre)
+Depends: ${shlibs:Depends}, xulrunner (>=@GRE_MILESTONE@-@GRE_BUILDID@)
 Description: Mozilla's mobile browser
  This browser is the full rendering engine of Mozilla Firefox combined with a user interface designed to make browsing the web on a mobile device a rich and uncompromised experience.
 XB-Maemo-Icon-26:
  MB5!.1PT*&@H````-24A$4@```!H````:"`8```"I2DS.````"7!(67,```L3
  M```+$P$`FIP8```%;$E$051(B:667XQ4U1W'/_>>>V?NG=F9V3^S_W%9<'#!
  M/Q1;NQ:EQH@:T2"EH>&A34R;]$U?Q%9-VH:41BUJFV"-B<8'^Z!-VP=E?37&
  M5=18L"SACVMVH<M.9W>8V9G9N7-G[O_3AP6$LD"$;W*3<T_R^W[.]Y=S3@Z<
  ME90H_)\DE\Y=J]3SHW_\1)6O#FV2NVD'D*\,W<T;JWK.0W>3OA[012N68]LW