Bug 1253203 - Remove everything COMM_BUILD draft
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 04 Mar 2016 17:30:19 +0900
changeset 336861 fcb4d0afaa447852d28a3165e5cbff5ed0c196b1
parent 336854 b5ca43488b99bca70c200a658496d02f23931501
child 336862 5fd98fc1c0a4c0133c7ffc1ae34273d157779e8f
push id12197
push userbmo:mh+mozilla@glandium.org
push dateFri, 04 Mar 2016 08:31:44 +0000
bugs1253203, 1040009
milestone47.0a1
Bug 1253203 - Remove everything COMM_BUILD comm-central doesn't set it since bug 1040009.
build/autoconf/config.status.m4
python/mozbuild/mozbuild/mach_commands.py
--- a/build/autoconf/config.status.m4
+++ b/build/autoconf/config.status.m4
@@ -100,18 +100,16 @@ AC_CACHE_SAVE
 
 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 : ${CONFIG_STATUS=./config.data}
 
 dnl We're going to need [ ] for python syntax.
 changequote(<<<, >>>)dnl
 echo creating $CONFIG_STATUS
 
-extra_python_path=${COMM_BUILD:+"'mozilla', "}
-
 cat > $CONFIG_STATUS <<EOF
 def unique_list(l):
     result = []
     for i in l:
         if l not in result:
             result.append(i)
     return result
 
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -1396,18 +1396,17 @@ class MachDebug(MachCommandBase):
             print('FOUND_MOZCONFIG=%s' % mozpath.normsep(self.mozconfig['path']),
                 file=out)
 
     def _environment_configure(self, out, verbose):
         if self.mozconfig['path']:
             # Replace ' with '"'"', so that shell quoting e.g.
             # a'b becomes 'a'"'"'b'.
             quote = lambda s: s.replace("'", """'"'"'""")
-            if self.mozconfig['configure_args'] and \
-                    'COMM_BUILD' not in os.environ:
+            if self.mozconfig['configure_args']:
                 print('echo Adding configure options from %s' %
                     mozpath.normsep(self.mozconfig['path']), file=out)
                 for arg in self.mozconfig['configure_args']:
                     quoted_arg = quote(arg)
                     print("echo '  %s'" % quoted_arg, file=out)
                     print("""set -- "$@" '%s'""" % quoted_arg, file=out)
             for key, value in self.mozconfig['env']['added'].items():
                 print("export %s='%s'" % (key, quote(value)), file=out)