[Bug 1830096]

Olivier Tilloy olivier.tilloy at canonical.com
Fri May 24 14:54:04 UTC 2019


I am testing this suggestion, and it appears to work as expected.
Would the following patch be acceptable?

    --- a/build/variables.py
    +++ b/build/variables.py
    @@ -13,10 +13,12 @@ SOURCESTAMP_FILENAME = 'sourcestamp.txt'
     
     
     def buildid_header(output):
    -    buildid = os.environ.get('MOZ_BUILD_DATE')
    -    if buildid and len(buildid) != 14:
    -        print('Ignoring invalid MOZ_BUILD_DATE: %s' % buildid, file=sys.stderr)
    -        buildid = None
    +    buildid = os.environ.get('MOZ_BUILDID')
    +    if buildid is None:
    +        buildid = os.environ.get('MOZ_BUILD_DATE')
    +        if buildid and len(buildid) != 14:
    +            print('Ignoring invalid MOZ_BUILD_DATE: %s' % buildid, file=sys.stderr)
    +            buildid = None
         if not buildid:
             buildid = datetime.now().strftime('%Y%m%d%H%M%S')
         output.write("#define MOZ_BUILDID %s\n" % buildid)

I.e. prioritize the `MOZ_BUILDID` environment variable over
`MOZ_BUILD_DATE`, if it is set.

-- 
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1830096

Title:
  Firefox 67 in Ubuntu 18.10 thinks it's an older version

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/1830096/+subscriptions



More information about the Ubuntu-mozillateam-bugs mailing list