diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-01 00:11:10 +0000 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2021-03-11 05:00:02 -1000 |
commit | 6187dd2b21a9f42877e782810ef96738dbc668c1 (patch) | |
tree | b96cecf81d961f50d63c39534a2b07cdbfeaf196 /meta/recipes-devtools/swig/swig/determinism.patch | |
parent | 7529d0a5fff17e35238c0f005163360f7f903898 (diff) | |
download | openembedded-core-contrib-6187dd2b21a9f42877e782810ef96738dbc668c1.tar.gz |
swig: Fix reproducibility issue
Remove hardcoding the build configuration into the help/version output
from swig to make the binaries reproducible.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7ed28ae9717ea9dad4e131012186d5f08e8f0bec)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools/swig/swig/determinism.patch')
-rw-r--r-- | meta/recipes-devtools/swig/swig/determinism.patch | 19 |
1 files changed, 19 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 @@ +Remove the compiler commandline/platform from the compiled binary as this +breaks reproducibilty. + +Upstream-Status: Inappropriate [OE reproducibiity fix upstream unlikely to take] +RP 2021/3/1 + + +Index: swig-3.0.12/Source/Modules/main.cxx +=================================================================== +--- swig-3.0.12.orig/Source/Modules/main.cxx ++++ swig-3.0.12/Source/Modules/main.cxx +@@ -636,7 +636,6 @@ void SWIG_getoptions(int argc, char *arg + } + } else if (strcmp(argv[i], "-version") == 0) { + fprintf(stdout, "\nSWIG Version %s\n", Swig_package_version()); +- fprintf(stdout, "\nCompiled with %s [%s]\n", SWIG_CXX, SWIG_PLATFORM); + fprintf(stdout, "\nConfigured options: %cpcre\n", + #ifdef HAVE_PCRE + '+' |