File reproducible.patch of Package qt6-webengine
diff --git a/src/3rdparty/chromium/build/android/gyp/java_cpp_enum.py b/src/3rdparty/chromium/build/android/gyp/java_cpp_enum.py
index c49f01789..05c8508cd 100755
--- a/src/3rdparty/chromium/build/android/gyp/java_cpp_enum.py
+++ b/src/3rdparty/chromium/build/android/gyp/java_cpp_enum.py
@@ -350,7 +350,7 @@ def DoParseHeaderFile(path):
def GenerateOutput(source_path, enum_definition):
template = Template("""
-// Copyright ${YEAR} The Chromium Authors
+// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
diff --git a/src/3rdparty/chromium/build/android/gyp/java_cpp_enum_tests.py b/src/3rdparty/chromium/build/android/gyp/java_cpp_enum_tests.py
index 6103b5839..aa4c8b1d1 100755
--- a/src/3rdparty/chromium/build/android/gyp/java_cpp_enum_tests.py
+++ b/src/3rdparty/chromium/build/android/gyp/java_cpp_enum_tests.py
@@ -66,7 +66,7 @@ public @interface ClassName {
long_comment = ('This is a multiple line comment that is really long. '
'This is a multiple line comment that is')
self.assertEqual(
- expected % (date.today().year, java_cpp_utils.GetScriptName(),
+ expected % (2024, java_cpp_utils.GetScriptName(),
long_comment), output)
def testParseSimpleEnum(self):
diff --git a/src/3rdparty/chromium/build/config/ios/generate_umbrella_header.py b/src/3rdparty/chromium/build/config/ios/generate_umbrella_header.py
index 587ff1714..b482dbd56 100644
--- a/src/3rdparty/chromium/build/config/ios/generate_umbrella_header.py
+++ b/src/3rdparty/chromium/build/config/ios/generate_umbrella_header.py
@@ -12,7 +12,7 @@ import string
HEADER_TEMPLATE = string.Template('''\
-// Copyright $year The Chromium Authors
+// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
diff --git a/src/3rdparty/chromium/build/ios/presubmit_support_test.py b/src/3rdparty/chromium/build/ios/presubmit_support_test.py
index 6bbc6024e..d8a944256 100755
--- a/src/3rdparty/chromium/build/ios/presubmit_support_test.py
+++ b/src/3rdparty/chromium/build/ios/presubmit_support_test.py
@@ -20,7 +20,7 @@ _TEMP_FILELIST_CONTENTS = """# Copyright %d The Chromium Authors
# NOTE: this file is generated by build/ios/update_bundle_filelist.py
# If it requires updating, you should get a presubmit error with
# instructions on how to regenerate. Otherwise, do not edit.
-""" % (datetime.datetime.now().year)
+""" % (2024)
_TEMP_GLOBLIST_CONTENTS = """**
-*.globlist
diff --git a/src/3rdparty/chromium/build/ios/update_bundle_filelist.py b/src/3rdparty/chromium/build/ios/update_bundle_filelist.py
index 2e21205c3..58d526b75 100755
--- a/src/3rdparty/chromium/build/ios/update_bundle_filelist.py
+++ b/src/3rdparty/chromium/build/ios/update_bundle_filelist.py
@@ -46,7 +46,7 @@ _HEADER = """# Copyright %d The Chromium Authors
# NOTE: this file is generated by build/ios/update_bundle_filelist.py
# If it requires updating, you should get a presubmit error with
# instructions on how to regenerate. Otherwise, do not edit.
-""" % (datetime.datetime.now().year)
+""" % (2024)
_HEADER_PATTERN = re.compile(r"""# Copyright [0-9]+ The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
diff --git a/src/3rdparty/chromium/components/segmentation_platform/internal/tools/create_class.py b/src/3rdparty/chromium/components/segmentation_platform/internal/tools/create_class.py
index 7cfda2e79..31f8b483e 100644
--- a/src/3rdparty/chromium/components/segmentation_platform/internal/tools/create_class.py
+++ b/src/3rdparty/chromium/components/segmentation_platform/internal/tools/create_class.py
@@ -23,7 +23,7 @@ import logging
import os
import sys
-_HEADER_TEMPLATE = """// Copyright {year} The Chromium Authors
+_HEADER_TEMPLATE = """// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -48,7 +48,7 @@ class {clas} {{
#endif // {macro}
"""
-_CC_TEMPLATE = """// Copyright {year} The Chromium Authors
+_CC_TEMPLATE = """// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -62,7 +62,7 @@ namespace {namespace} {{
}}
"""
-_TEST_TEMPLATE = """// Copyright {year} The Chromium Authors
+_TEST_TEMPLATE = """// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -94,7 +94,7 @@ TEST_F({test_class}, Test) {{
}}
"""
-_MODEL_HEADER_TEMPLATE = """// Copyright {year} The Chromium Authors
+_MODEL_HEADER_TEMPLATE = """// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -138,7 +138,7 @@ class {clas} : public DefaultModelProvider {{
#endif // {macro}
"""
-_MODEL_CC_TEMPLATE = """// Copyright {year} The Chromium Authors
+_MODEL_CC_TEMPLATE = """// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -269,7 +269,7 @@ void {clas}::ExecuteModelWithInput(
}}
"""
-_MODEL_TEST_TEMPLATE = """// Copyright {year} The Chromium Authors
+_MODEL_TEST_TEMPLATE = """// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
diff --git a/src/3rdparty/chromium/docs/android_accessing_cpp_features_in_java.md b/src/3rdparty/chromium/docs/android_accessing_cpp_features_in_java.md
index 6ca74e9c7..31b3af40c 100644
--- a/src/3rdparty/chromium/docs/android_accessing_cpp_features_in_java.md
+++ b/src/3rdparty/chromium/docs/android_accessing_cpp_features_in_java.md
@@ -117,7 +117,7 @@ This outputs Java String constants which represent the name of the
would contain:
```java
- // Copyright $YEAR The Chromium Authors
+ // Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
diff --git a/src/3rdparty/chromium/docs/android_accessing_cpp_switches_in_java.md b/src/3rdparty/chromium/docs/android_accessing_cpp_switches_in_java.md
index 7e04289aa..7d2bda4da 100644
--- a/src/3rdparty/chromium/docs/android_accessing_cpp_switches_in_java.md
+++ b/src/3rdparty/chromium/docs/android_accessing_cpp_switches_in_java.md
@@ -65,7 +65,7 @@ template file. The template file must be specified in the GN target.
would contain:
```java
- // Copyright $YEAR The Chromium Authors
+ // Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
diff --git a/src/3rdparty/chromium/gpu/command_buffer/build_cmd_buffer_lib.py b/src/3rdparty/chromium/gpu/command_buffer/build_cmd_buffer_lib.py
index 4d36c88af..825219a17 100644
--- a/src/3rdparty/chromium/gpu/command_buffer/build_cmd_buffer_lib.py
+++ b/src/3rdparty/chromium/gpu/command_buffer/build_cmd_buffer_lib.py
@@ -812,7 +812,7 @@ class CWriter():
"""
def __init__(self, filename, year):
self.filename = filename
- self._ENTER_MSG = _LICENSE % year + _DO_NOT_EDIT_WARNING % _lower_prefix
+ self._ENTER_MSG = _LICENSE % 2024 + _DO_NOT_EDIT_WARNING % _lower_prefix
self._EXIT_MSG = ""
try:
os.makedirs(os.path.dirname(filename))
diff --git a/src/3rdparty/chromium/ppapi/generate_ppapi_size_checks.py b/src/3rdparty/chromium/ppapi/generate_ppapi_size_checks.py
index 45bb516d2..57632e28d 100755
--- a/src/3rdparty/chromium/ppapi/generate_ppapi_size_checks.py
+++ b/src/3rdparty/chromium/ppapi/generate_ppapi_size_checks.py
@@ -29,7 +29,7 @@ COPYRIGHT_STRING_C = (
* on the architecture for which they are compiled (i.e., 32-bit vs 64-bit).
*/
-""") % datetime.date.today().year
+""") % 2024
class SourceLocation(object):
diff --git a/src/3rdparty/chromium/ppapi/generators/idl_gen_wrapper.py b/src/3rdparty/chromium/ppapi/generators/idl_gen_wrapper.py
index 6b662b9ae..c9df76d9b 100644
--- a/src/3rdparty/chromium/ppapi/generators/idl_gen_wrapper.py
+++ b/src/3rdparty/chromium/ppapi/generators/idl_gen_wrapper.py
@@ -91,7 +91,7 @@ class WrapperGen(Generator):
*/
/* NOTE: this is auto-generated from IDL */
-""" % now.year
+""" % 2024
out.Write(c)
def GetWrapperMetadataName(self):
diff --git a/src/3rdparty/chromium/styleguide/c++/c++.md b/src/3rdparty/chromium/styleguide/c++/c++.md
index b76458c43..9995b60c0 100644
--- a/src/3rdparty/chromium/styleguide/c++/c++.md
+++ b/src/3rdparty/chromium/styleguide/c++/c++.md
@@ -291,7 +291,7 @@ All files in Chromium start with a common license header. That header should
look like this:
```c++
-// Copyright $YEAR The Chromium Authors
+// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
```
diff --git a/src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/macros.tmpl b/src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/macros.tmpl
index 8d0f8ac0d..de61bc44f 100644
--- a/src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/macros.tmpl
+++ b/src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/macros.tmpl
@@ -2,7 +2,7 @@
FIXME: Do we need to put license blocks in generated files?
#}
{% macro license(year=2014) %}
-// Copyright {{year}} The Chromium Authors
+// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
{%- endmacro %}
diff --git a/src/3rdparty/chromium/third_party/dav1d/generate_source.py b/src/3rdparty/chromium/third_party/dav1d/generate_source.py
index 2a2fa27df..cd544c4b9 100755
--- a/src/3rdparty/chromium/third_party/dav1d/generate_source.py
+++ b/src/3rdparty/chromium/third_party/dav1d/generate_source.py
@@ -17,8 +17,7 @@ _COPYRIGHT = """# Copyright %d The Chromium Authors
# NOTE: this file is autogenerated by dav1d/generate_sources.py - DO NOT EDIT.
-""" % (
- datetime.datetime.now().year)
+""" % (2024)
def _Glob(pattern):
diff --git a/src/3rdparty/chromium/third_party/devtools-frontend/src/front_end/Images/generate-css-vars.js b/src/3rdparty/chromium/third_party/devtools-frontend/src/front_end/Images/generate-css-vars.js
index 6d168e76f..c52b9b4dd 100644
--- a/src/3rdparty/chromium/third_party/devtools-frontend/src/front_end/Images/generate-css-vars.js
+++ b/src/3rdparty/chromium/third_party/devtools-frontend/src/front_end/Images/generate-css-vars.js
@@ -20,7 +20,7 @@ function generateCSSVariableDefinition(fileName) {
const CURRENT_YEAR = new Date(Number(buildTimestamp) * 1000).getUTCFullYear();
const newContents = `
-// Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.
+// Copyright 2024 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
const sheet = new CSSStyleSheet();
diff --git a/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/generate_aria.py b/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/generate_aria.py
index 159f12a79..fd0a73fae 100644
--- a/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/generate_aria.py
+++ b/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/generate_aria.py
@@ -28,7 +28,7 @@ def properties_from_file(file_name):
ARIA_PROPERTIES = properties_from_file(READ_LOCATION)
now = datetime.datetime.now()
with open(GENERATED_LOCATION, "w+") as f:
- f.write('// Copyright %d The Chromium Authors. All rights reserved.\n' % now.year)
+ f.write('// Copyright %d The Chromium Authors. All rights reserved.\n' % 2024)
f.write('// Use of this source code is governed by a BSD-style license that can be\n')
f.write('// found in the LICENSE file.\n')
f.write('\n')
diff --git a/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/generate_deprecations.py b/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/generate_deprecations.py
index f223a26c8..8f4f48c50 100644
--- a/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/generate_deprecations.py
+++ b/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/generate_deprecations.py
@@ -62,7 +62,7 @@ meta, ui_strings = deprecations_from_file(READ_LOCATION)
now = datetime.datetime.now()
with open(GENERATED_LOCATION, mode="w+") as f:
f.write("// Copyright %d The Chromium Authors. All rights reserved.\n" %
- now.year)
+ 2024)
f.write(
"// Use of this source code is governed by a BSD-style license that can be\n"
)
diff --git a/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/generate_supported_css.py b/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/generate_supported_css.py
index ad9249712..9a7eaead6 100755
--- a/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/generate_supported_css.py
+++ b/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/generate_supported_css.py
@@ -104,7 +104,7 @@ def properties_from_file(file_name):
properties, property_values, aliases_for = properties_from_file(READ_LOCATION)
now = datetime.datetime.now()
with open(GENERATED_LOCATION, "w+") as f:
- f.write('// Copyright %d The Chromium Authors. All rights reserved.\n' % now.year)
+ f.write('// Copyright %d The Chromium Authors. All rights reserved.\n' % 2024)
f.write('// Use of this source code is governed by a BSD-style license that can be\n')
f.write('// found in the LICENSE file.\n')
f.write('\n')
diff --git a/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/eslint_rules/lib/check_license_header.js b/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/eslint_rules/lib/check_license_header.js
index c2ccdd340..60472f417 100644
--- a/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/eslint_rules/lib/check_license_header.js
+++ b/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/eslint_rules/lib/check_license_header.js
@@ -14,7 +14,7 @@ const FRONT_END_FOLDER = path.join(__filename, '..', '..', '..', '..', 'front_en
const CURRENT_YEAR = new Date().getFullYear();
const LINE_LICENSE_HEADER = [
- `Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.`,
+ `Copyright 2024 The Chromium Authors. All rights reserved.`,
'Use of this source code is governed by a BSD-style license that can be',
'found in the LICENSE file.',
];
diff --git a/src/3rdparty/chromium/third_party/ffmpeg/chromium/scripts/generate_gn.py b/src/3rdparty/chromium/third_party/ffmpeg/chromium/scripts/generate_gn.py
index 7fd44ec47..904dae5ff 100755
--- a/src/3rdparty/chromium/third_party/ffmpeg/chromium/scripts/generate_gn.py
+++ b/src/3rdparty/chromium/third_party/ffmpeg/chromium/scripts/generate_gn.py
@@ -47,8 +47,7 @@ COPYRIGHT = """# Copyright %d The Chromium Authors. All rights reserved.
# NOTE: this file is autogenerated by ffmpeg/chromium/scripts/generate_gn.py
-""" % (
- datetime.datetime.now().year)
+""" % (2024)
GN_HEADER = """import("//build/config/arm.gni")
import("ffmpeg_options.gni")
diff --git a/src/3rdparty/chromium/third_party/sqlite/scripts/extract_sqlite_api.py b/src/3rdparty/chromium/third_party/sqlite/scripts/extract_sqlite_api.py
index ecb4281e9..e157a353f 100755
--- a/src/3rdparty/chromium/third_party/sqlite/scripts/extract_sqlite_api.py
+++ b/src/3rdparty/chromium/third_party/sqlite/scripts/extract_sqlite_api.py
@@ -349,7 +349,7 @@ header_line = '''// Copyright %s The Chromium Authors. All rights reserved.
#ifndef THIRD_PARTY_SQLITE_AMALGAMATION_RENAME_EXPORTS_H_
#define THIRD_PARTY_SQLITE_AMALGAMATION_RENAME_EXPORTS_H_
-''' % datetime.now().strftime('%Y')
+''' % "2024"
footer_line = '''
#endif // THIRD_PARTY_SQLITE_AMALGAMATION_RENAME_EXPORTS_H_
diff --git a/src/3rdparty/chromium/tools/boilerplate.py b/src/3rdparty/chromium/tools/boilerplate.py
index 626dcc802..cd3a4dac6 100755
--- a/src/3rdparty/chromium/tools/boilerplate.py
+++ b/src/3rdparty/chromium/tools/boilerplate.py
@@ -17,7 +17,7 @@ import os.path
import sys
LINES = [
- f'Copyright {date.today().year} The Chromium Authors',
+ f'Copyright 2024 The Chromium Authors',
'Use of this source code is governed by a BSD-style license that can be',
'found in the LICENSE file.'
]
diff --git a/src/3rdparty/chromium/tools/json_schema_compiler/cpp_util.py b/src/3rdparty/chromium/tools/json_schema_compiler/cpp_util.py
index b2511e0ff..82c014fc2 100644
--- a/src/3rdparty/chromium/tools/json_schema_compiler/cpp_util.py
+++ b/src/3rdparty/chromium/tools/json_schema_compiler/cpp_util.py
@@ -15,7 +15,7 @@ import re
CHROMIUM_LICENSE = (
"""// Copyright %d The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.""" % datetime.now().year
+// found in the LICENSE file.""" % 2024
)
GENERATED_FILE_MESSAGE = """// GENERATED FROM THE API DEFINITION IN
// %s
diff --git a/src/3rdparty/chromium/tools/json_schema_compiler/feature_compiler.py b/src/3rdparty/chromium/tools/json_schema_compiler/feature_compiler.py
index 988a25ced..e6a20ab93 100644
--- a/src/3rdparty/chromium/tools/json_schema_compiler/feature_compiler.py
+++ b/src/3rdparty/chromium/tools/json_schema_compiler/feature_compiler.py
@@ -17,7 +17,7 @@ import json_parse
# The template for the header file of the generated FeatureProvider.
HEADER_FILE_TEMPLATE = """
-// Copyright %(year)s The Chromium Authors
+// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -41,7 +41,7 @@ void %(method_name)s(FeatureProvider* provider);
# The beginning of the .cc file for the generated FeatureProvider.
CC_FILE_BEGIN = """
-// Copyright %(year)s The Chromium Authors
+// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
diff --git a/src/3rdparty/chromium/tools/json_schema_compiler/js_util.py b/src/3rdparty/chromium/tools/json_schema_compiler/js_util.py
index 967936f88..6ce3a3f32 100644
--- a/src/3rdparty/chromium/tools/json_schema_compiler/js_util.py
+++ b/src/3rdparty/chromium/tools/json_schema_compiler/js_util.py
@@ -24,7 +24,7 @@ class JsUtil(object):
def GetLicense(self):
"""Returns the license text for JS extern and interface files.
"""
- return (LICENSE % datetime.now().year)
+ return (LICENSE % 2024)
def GetInfo(self, tool):
"""Returns text describing how the file was generated.
diff --git a/src/3rdparty/chromium/tools/json_schema_compiler/ts_definition_generator.py b/src/3rdparty/chromium/tools/json_schema_compiler/ts_definition_generator.py
index 33086e296..98ec77849 100644
--- a/src/3rdparty/chromium/tools/json_schema_compiler/ts_definition_generator.py
+++ b/src/3rdparty/chromium/tools/json_schema_compiler/ts_definition_generator.py
@@ -65,7 +65,7 @@ class _Generator(object):
return main_code
def _AppendChromiumHeader(self, c: Code):
- c.Append(f"""// Copyright {datetime.date.today().year} The Chromium Authors
+ c.Append(f"""// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.""")
c.Append()
diff --git a/src/3rdparty/chromium/tools/json_to_struct/json_to_struct.py b/src/3rdparty/chromium/tools/json_to_struct/json_to_struct.py
index 1ca33fd41..280d07b14 100755
--- a/src/3rdparty/chromium/tools/json_to_struct/json_to_struct.py
+++ b/src/3rdparty/chromium/tools/json_to_struct/json_to_struct.py
@@ -231,7 +231,7 @@ def GenerateStruct(basepath, output_root, namespace, schema, description,
outputted files.
year: Year to display next to the copy-right in the header.
"""
- year = int(year) if year else datetime.now().year
+ year = int(year) if year else 2024
head = HEAD % (year, schema_filename, description_filename)
_GenerateH(basepath, output_root, head, namespace, schema, description)
_GenerateCC(basepath, output_root, head, namespace, schema, description)