maemo repacks should use dpkg-deb. bug 538699, r=pike,armenzg
authorAki Sasaki <asasaki@mozilla.com>
Wed, 03 Mar 2010 18:11:39 -0800
changeset 66030 5a3393b9a0602f70a47acf57e06a85188802070b
parent 66029 a1a55684609099a7285a60ccb2daedf8b4cd3a33
child 66031 9b5ea1de90525c6deb6ac7977bee2ac8296b4aea
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspike, armenzg
bugs538699
maemo repacks should use dpkg-deb. bug 538699, r=pike,armenzg
mobile/locales/Makefile.in
--- a/mobile/locales/Makefile.in
+++ b/mobile/locales/Makefile.in
@@ -196,32 +196,32 @@ ifndef EN_US_BINARY_URL
 endif
 ifndef DEB_PKG_NAME
 	$(error DEB_PKG_NAME not defined)
 endif
 	$(WGET) -nv -N  $(EN_US_BINARY_URL)/$(DEB_PKG_NAME)
 
 $(DATASTAGE): $(DEB_PKG_NAME)
 	$(RM) -rf $(DATASTAGE)
-	$(NSINSTALL) -D $(DATASTAGE)
+	$(NSINSTALL) -D $(DATASTAGE)/DEBIAN
 	ar -p $(DEB_PKG_NAME) data.tar.gz | $(TAR) -zx -C $(DATASTAGE)
 	$(MAKE) clobber-zip AB_CD=en-US STAGEDIST=$(DATASTAGE)/$(installdir)
+	ar -p $(DEB_PKG_NAME) control.tar.gz | $(TAR) -zx -C $(DATASTAGE)/DEBIAN
 # XXX hack around multi-locale deb right now
 	$(RM) $(DATASTAGE)/$(installdir)/chrome/??.*
 	$(RM) $(DATASTAGE)/$(installdir)/chrome/??-??.*
 
 repackage-deb: $(DATASTAGE)
 	$(RM) -rf $(AB_CD)
-	$(NSINSTALL) -D $(AB_CD)
+	$(NSINSTALL) -D $(AB_CD)/tmp
 	cd $(DIST)/xpi-stage/locale-$(AB_CD) && \
-	  tar --exclude=install.rdf --exclude=chrome.manifest --exclude=crashreporter.app $(TAR_CREATE_FLAGS) - * | ( cd $(DATASTAGE)/$(installdir) && tar -xf - )
-	$(NSINSTALL) $(DEB_PKG_NAME) $(AB_CD)
-	cd $(DATASTAGE) && $(TAR) -zcf $(CURDIR)/$(AB_CD)/data.tar.gz *
+	  $(TAR) --exclude=install.rdf --exclude=chrome.manifest --exclude=crashreporter.app $(TAR_CREATE_FLAGS) - * | ( cd $(DATASTAGE)/$(installdir) && $(TAR) -xf - )
+	cd $(DATASTAGE) && $(TAR) $(TAR_CREATE_FLAGS) - * | (cd $(CURDIR)/$(AB_CD)/tmp && $(TAR) -xf - )
 	$(MAKE) clobber-zip STAGEDIST=$(DATASTAGE)/$(installdir)
-	cd $(AB_CD) && ar -rv $(DEB_PKG_NAME) data.tar.gz
-	$(RM) $(AB_CD)/data.tar.gz
+	cd $(AB_CD) && dpkg-deb -b tmp $(DEB_PKG_NAME)
+	$(RM) -rf $(AB_CD)/tmp
 
 deb-%: AB_CD=$*
 deb-%: clobber-% langpack-%
 ifndef DEB_PKG_NAME
 	$(error DEB_PKG_NAME not defined)
 endif
 	@$(MAKE) repackage-deb AB_CD=$(AB_CD) DEB_PKG_NAME=$(DEB_PKG_NAME)