Bug 1195442 - Backed out changeset fb3167cad8da from production for build failures production-0.8 FIREFOX_41_0b9_BUILD1 FIREFOX_41_0b9_RELEASE
authorPhilipp Kewisch <mozilla@kewis.ch>
Thu, 10 Sep 2015 00:03:14 +0200 (2015-09-09)
branchproduction-0.8
changeset 4436 6ec74c0253387fb016478fb27a5a24f6c10a5d5b
parent 4434 862fe8ba30d5256f26f4669907b79049386f74f6
child 4437 5bc884df0ecc85c03c70be263c9aa9bea504f733
push id3709
push usermozilla@kewis.ch
push dateWed, 09 Sep 2015 22:08:34 +0000 (2015-09-09)
bugs1195442
Bug 1195442 - Backed out changeset fb3167cad8da from production for build failures
process/factory.py
--- a/process/factory.py
+++ b/process/factory.py
@@ -452,20 +452,16 @@ class MozillaBuildFactory(RequestSorting
         else:
             self.makeCmd = ['make']
 
         if self.signingServers and self.enableSigning:
             self.signing_command = get_signing_cmd(
                 self.signingServers, self.env.get('PYTHON26'))
             self.env['MOZ_SIGN_CMD'] = WithProperties(self.signing_command)
 
-        # Make sure the objdir is specified with an absolute path
-        if 'MOZ_OBJDIR' in self.env and not os.path.isabs(self.env['MOZ_OBJDIR']):
-            self.env['MOZ_OBJDIR'] = '%s/%s' % (self.baseWorkDir, self.env['MOZ_OBJDIR'])
-
         self.addInitialSteps()
 
     def addInitialSteps(self):
         self.addStep(SetProperty(
             name='set_basedir',
             command=['bash', '-c', 'pwd'],
             property='basedir',
             workdir='.',
@@ -2897,17 +2893,17 @@ class BaseRepackFactory(MozillaBuildFact
         self.absMozillaObjDir = '%s/%s/%s' % (
             self.baseWorkDir, self.origSrcDir, self.mozillaObjdir)
 
         self.latestDir = '/pub/mozilla.org/%s' % self.productName + \
                          '/nightly/latest-%s-l10n' % self.branchName
 
         if objdir != '':
             # L10NBASEDIR is relative to MOZ_OBJDIR
-            self.env.update({'MOZ_OBJDIR': self.absObjDir,
+            self.env.update({'MOZ_OBJDIR': objdir,
                              'L10NBASEDIR': '../../l10n'})
 
         if platform == 'macosx64':
             # use "mac" instead of "mac64" for macosx64
             self.env.update({'MOZ_PKG_PLATFORM': 'mac'})
 
         self.uploadEnv = self.env.copy(
         )  # pick up any env variables in our subclass
@@ -3688,24 +3684,19 @@ class SingleSourceFactory(ReleaseFactory
             else:
                 self.mozillaSrcDir = self.origSrcDir
 
         # self.mozillaObjdir is used in SeaMonkey's and Thunderbird's case
         self.objdir = objdir or self.origSrcDir
         self.mozillaObjdir = '%s%s' % (self.objdir, self.mozillaDir)
         self.distDir = "%s/dist" % self.mozillaObjdir
 
-        self.absSrcDir = "%s/%s" % (self.baseWorkDir,
-                                    self.origSrcDir)
-        self.absObjDir = '%s/%s' % (self.absSrcDir,
-                                    self.objdir)
-
         # Make sure MOZ_PKG_PRETTYNAMES is set so that our source package is
         # created in the expected place.
-        self.env['MOZ_OBJDIR'] = self.absObjDir
+        self.env['MOZ_OBJDIR'] = self.objdir
         self.env['MOZ_PKG_PRETTYNAMES'] = '1'
         if appVersion is None or version != appVersion or \
                 (self.branchName == 'mozilla-1.9.2' and productName == 'xulrunner'):
             self.env['MOZ_PKG_VERSION'] = version
         self.env['MOZ_PKG_APPNAME'] = productName
         self.env['no_tooltool'] = "1"
 
         # '-c' is for "release to candidates dir"