diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-01 00:11:10 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-01 11:12:16 +0000 |
| commit | abfe88ca97878d6a5a363b53443392f23c0a1069 (patch) | |
| tree | 22de4dc925e10fd6b1d880212214f3907d438d41 /meta/recipes-devtools/swig | |
| parent | ab9e43134b839218c9b057c743719dfbaced4296 (diff) | |
| download | poky-abfe88ca97878d6a5a363b53443392f23c0a1069.tar.gz | |
swig: Fix reproducibility issue
Remove hardcoding the build configuration into the help/version output
from swig to make the binaries reproducible.
(From OE-Core rev: 7ed28ae9717ea9dad4e131012186d5f08e8f0bec)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/swig')
| -rw-r--r-- | meta/recipes-devtools/swig/swig/determinism.patch | 19 | ||||
| -rw-r--r-- | meta/recipes-devtools/swig/swig_3.0.12.bb | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/meta/recipes-devtools/swig/swig/determinism.patch b/meta/recipes-devtools/swig/swig/determinism.patch new file mode 100644 index 0000000000..8ffb4bce8e --- /dev/null +++ b/meta/recipes-devtools/swig/swig/determinism.patch | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Remove the compiler commandline/platform from the compiled binary as this | ||
| 2 | breaks reproducibilty. | ||
| 3 | |||
| 4 | Upstream-Status: Inappropriate [OE reproducibiity fix upstream unlikely to take] | ||
| 5 | RP 2021/3/1 | ||
| 6 | |||
| 7 | |||
| 8 | Index: swig-3.0.12/Source/Modules/main.cxx | ||
| 9 | =================================================================== | ||
| 10 | --- swig-3.0.12.orig/Source/Modules/main.cxx | ||
| 11 | +++ swig-3.0.12/Source/Modules/main.cxx | ||
| 12 | @@ -636,7 +636,6 @@ void SWIG_getoptions(int argc, char *arg | ||
| 13 | } | ||
| 14 | } else if (strcmp(argv[i], "-version") == 0) { | ||
| 15 | fprintf(stdout, "\nSWIG Version %s\n", Swig_package_version()); | ||
| 16 | - fprintf(stdout, "\nCompiled with %s [%s]\n", SWIG_CXX, SWIG_PLATFORM); | ||
| 17 | fprintf(stdout, "\nConfigured options: %cpcre\n", | ||
| 18 | #ifdef HAVE_PCRE | ||
| 19 | '+' | ||
diff --git a/meta/recipes-devtools/swig/swig_3.0.12.bb b/meta/recipes-devtools/swig/swig_3.0.12.bb index 45026c9700..090aaa8112 100644 --- a/meta/recipes-devtools/swig/swig_3.0.12.bb +++ b/meta/recipes-devtools/swig/swig_3.0.12.bb | |||
| @@ -6,6 +6,7 @@ SRC_URI += "file://0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.pat | |||
| 6 | file://swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_FixMetho.patch \ | 6 | file://swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_FixMetho.patch \ |
| 7 | file://Python-Fix-new-GCC8-warnings-in-generated-code.patch \ | 7 | file://Python-Fix-new-GCC8-warnings-in-generated-code.patch \ |
| 8 | file://0001-Fix-generated-code-for-constant-expressions-containi.patch \ | 8 | file://0001-Fix-generated-code-for-constant-expressions-containi.patch \ |
| 9 | file://determinism.patch \ | ||
| 9 | " | 10 | " |
| 10 | SRC_URI[md5sum] = "82133dfa7bba75ff9ad98a7046be687c" | 11 | SRC_URI[md5sum] = "82133dfa7bba75ff9ad98a7046be687c" |
| 11 | SRC_URI[sha256sum] = "7cf9f447ae7ed1c51722efc45e7f14418d15d7a1e143ac9f09a668999f4fc94d" | 12 | SRC_URI[sha256sum] = "7cf9f447ae7ed1c51722efc45e7f14418d15d7a1e143ac9f09a668999f4fc94d" |
