forked from pool/MozillaFirefox
df4a0a1c4b
* https://www.mozilla.org/en-US/firefox/112.0/releasenotes/ MFSA 2023-13 (bsc#1210212) * CVE-2023-29531 (bmo#1794292) Out-of-bound memory access in WebGL on macOS * CVE-2023-29532 (bmo#1806394) Mozilla Maintenance Service Write-lock bypass * CVE-2023-29533 (bmo#1798219, bmo#1814597) Fullscreen notification obscured * CVE-2023-29534 (bmo#1816007, bmo#1816059, bmo#1821155, bmo#1821576, bmo#1821906, bmo#1822298, bmo#1822305) Fullscreen notification could have been obscured on Firefox for Android * MFSA-TMP-2023-0001 (bmo#1819244) Double-free in libwebp * CVE-2023-29535 (bmo#1820543) Potential Memory Corruption following Garbage Collector compaction * CVE-2023-29536 (bmo#1821959) Invalid free from JavaScript code * CVE-2023-29537 (bmo#1823365, bmo#1824200, bmo#1825569) Data Races in font initialization code * CVE-2023-29538 (bmo#1685403) Directory information could have been leaked to WebExtensions * CVE-2023-29539 (bmo#1784348) Content-Disposition filename truncation leads to Reflected File Download * CVE-2023-29540 (bmo#1790542) Iframe sandbox bypass using redirects and sourceMappingUrls * CVE-2023-29541 (bmo#1810191) Files with malicious extensions could have been downloaded OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=1051
50 lines
1.5 KiB
Diff
50 lines
1.5 KiB
Diff
Author: Bernhard M. Wiedemann <bwiedemann suse de>
|
|
Date: 2019-07-22
|
|
|
|
Allow to override build date with SOURCE_DATE_EPOCH
|
|
in order to make builds reproducible.
|
|
See https://reproducible-builds.org/ for why this is good
|
|
and https://reproducible-builds.org/specs/source-date-epoch/
|
|
for the definition of this variable.
|
|
|
|
diff --git a/python/mozbuild/mozbuild/action/langpack_manifest.py b/python/mozbuild/mozbuild/action/langpack_manifest.py
|
|
--- a/python/mozbuild/mozbuild/action/langpack_manifest.py
|
|
+++ b/python/mozbuild/mozbuild/action/langpack_manifest.py
|
|
@@ -14,16 +14,17 @@
|
|
import argparse
|
|
import datetime
|
|
import io
|
|
import json
|
|
import logging
|
|
import os
|
|
import re
|
|
import sys
|
|
+import time
|
|
|
|
import fluent.syntax.ast as FTL
|
|
import mozpack.path as mozpath
|
|
import mozversioncontrol
|
|
import requests
|
|
from fluent.syntax.parser import FluentParser
|
|
from mozpack.chrome.manifest import Manifest, ManifestLocale, parse_manifest
|
|
|
|
@@ -102,17 +103,17 @@ def get_dt_from_hg(path):
|
|
# ts == "20170914215617"
|
|
###
|
|
def get_timestamp_for_locale(path):
|
|
dt = None
|
|
if os.path.isdir(os.path.join(path, ".hg")):
|
|
dt = get_dt_from_hg(path)
|
|
|
|
if dt is None:
|
|
- dt = datetime.datetime.utcnow()
|
|
+ dt = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))
|
|
|
|
dt = dt.replace(microsecond=0)
|
|
return dt.strftime("%Y%m%d%H%M%S")
|
|
|
|
|
|
###
|
|
# Parses an FTL file into a key-value pair object.
|
|
# Does not support attributes, terms, variables, functions or selectors;
|