summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/swig/swig/determinism.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/swig/swig/determinism.patch')
-rw-r--r--meta/recipes-devtools/swig/swig/determinism.patch19
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 @@
1Remove the compiler commandline/platform from the compiled binary as this
2breaks reproducibilty.
3
4Upstream-Status: Inappropriate [OE reproducibiity fix upstream unlikely to take]
5RP 2021/3/1
6
7
8Index: 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 '+'