diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-03 14:18:34 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-07 23:21:34 +0000 |
commit | 62d6e38b4946026d7d0bd4d54cb2bc1c4919fd82 (patch) | |
tree | 4e089eef8daf50fd026f85f66d579746eed9c0f8 /meta/recipes-sato/webkit | |
parent | 1c6ee8a737cf4f8679c6081858635809ae8bef88 (diff) | |
download | poky-62d6e38b4946026d7d0bd4d54cb2bc1c4919fd82.tar.gz |
webkitgtk: Add reproducibility fix
When the date rolled from one year to another this highlighted a reproducibility
issue. This could be better fixed by using SOURCE_DATE_EPOCH from the environment
but I'm not sure how you do that in ruby. Help from someone with that knowledge
to submit that upstream very welcome.
(From OE-Core rev: 922db800adf7b616592b48e5e7bd295efeb2e206)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4d561c98f4d2e68d595aae4b03df1420cb01c3f7)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato/webkit')
-rw-r--r-- | meta/recipes-sato/webkit/webkitgtk/reproducibility.patch | 22 | ||||
-rw-r--r-- | meta/recipes-sato/webkit/webkitgtk_2.30.5.bb | 1 |
2 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-sato/webkit/webkitgtk/reproducibility.patch b/meta/recipes-sato/webkit/webkitgtk/reproducibility.patch new file mode 100644 index 0000000000..e866a1a193 --- /dev/null +++ b/meta/recipes-sato/webkit/webkitgtk/reproducibility.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | Injection a year based on the current date isn't reproducible. Hack this | ||
2 | to a specific year for now for reproducibilty and to avoid autobuilder failures. | ||
3 | |||
4 | The correct fix would be to use SOURCE_DATE_EPOCH from the environment and | ||
5 | then this could be submitted upstream, sadly my ruby isn't up to that. | ||
6 | |||
7 | Upstream-Status: Pending [could be reworked] | ||
8 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
9 | |||
10 | Index: webkitgtk-2.34.2/Source/JavaScriptCore/generator/GeneratedFile.rb | ||
11 | =================================================================== | ||
12 | --- webkitgtk-2.34.2.orig/Source/JavaScriptCore/generator/GeneratedFile.rb | ||
13 | +++ webkitgtk-2.34.2/Source/JavaScriptCore/generator/GeneratedFile.rb | ||
14 | @@ -25,7 +25,7 @@ require 'date' | ||
15 | require 'digest' | ||
16 | |||
17 | $LICENSE = <<-EOF | ||
18 | -Copyright (C) #{Date.today.year} Apple Inc. All rights reserved. | ||
19 | +Copyright (C) 2021 Apple Inc. All rights reserved. | ||
20 | |||
21 | Redistribution and use in source and binary forms, with or without | ||
22 | modification, are permitted provided that the following conditions | ||
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.30.5.bb b/meta/recipes-sato/webkit/webkitgtk_2.30.5.bb index 1fefc75c49..88b5056165 100644 --- a/meta/recipes-sato/webkit/webkitgtk_2.30.5.bb +++ b/meta/recipes-sato/webkit/webkitgtk_2.30.5.bb | |||
@@ -21,6 +21,7 @@ SRC_URI = "https://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \ | |||
21 | file://0001-Extend-atomics-check-to-include-1-byte-CAS-test.patch \ | 21 | file://0001-Extend-atomics-check-to-include-1-byte-CAS-test.patch \ |
22 | file://musl-lower-stack-usage.patch \ | 22 | file://musl-lower-stack-usage.patch \ |
23 | file://0001-MiniBrowser-Fix-reproduciblity.patch \ | 23 | file://0001-MiniBrowser-Fix-reproduciblity.patch \ |
24 | file://reproducibility.patch \ | ||
24 | " | 25 | " |
25 | 26 | ||
26 | SRC_URI[sha256sum] = "7d0dab08e3c5ae07bec80b2822ef42e952765d5724cac86eb23999bfed5a7f1f" | 27 | SRC_URI[sha256sum] = "7d0dab08e3c5ae07bec80b2822ef42e952765d5724cac86eb23999bfed5a7f1f" |