summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2024-02-16 19:40:32 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-19 15:21:14 +0000
commit1e6565402f93848796cb5f19154b6eb6866d6110 (patch)
tree18cd167f8188c86d0d13ed1c597e39c003774050
parent6f32769afbc81227129912551de5d44b7bad0b35 (diff)
downloadpoky-1e6565402f93848796cb5f19154b6eb6866d6110.tar.gz
swig: upgrade 4.1.1 -> 4.2.0
(From OE-Core rev: 93cf900c697685d0749c3269806213f89fb6526e) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/swig/swig/0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.patch10
-rw-r--r--meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch6
-rw-r--r--meta/recipes-devtools/swig/swig/determinism.patch12
-rw-r--r--meta/recipes-devtools/swig/swig_4.2.0.bb (renamed from meta/recipes-devtools/swig/swig_4.1.1.bb)2
4 files changed, 21 insertions, 9 deletions
diff --git a/meta/recipes-devtools/swig/swig/0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.patch b/meta/recipes-devtools/swig/swig/0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.patch
index f27f80ea18..9c6ae389be 100644
--- a/meta/recipes-devtools/swig/swig/0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.patch
+++ b/meta/recipes-devtools/swig/swig/0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.patch
@@ -1,4 +1,4 @@
1From a4a0440a644c6c5e5da096efe3cf05ba309a284f Mon Sep 17 00:00:00 2001 1From ab0ab5e685bd9077c44fdca5c1a27b0f477444d7 Mon Sep 17 00:00:00 2001
2From: "NODA, Kai" <nodakai@gmail.com> 2From: "NODA, Kai" <nodakai@gmail.com>
3Date: Sun, 22 Apr 2012 17:01:02 +0900 3Date: Sun, 22 Apr 2012 17:01:02 +0900
4Subject: [PATCH] Use /proc/self/exe for "swig -swiglib" on non-Win32 4Subject: [PATCH] Use /proc/self/exe for "swig -swiglib" on non-Win32
@@ -10,9 +10,11 @@ Upstream-Status: Submitted
10http://sourceforge.net/mailarchive/message.php?msg_id=29179733 10http://sourceforge.net/mailarchive/message.php?msg_id=29179733
11 11
12--- 12---
13 Source/Modules/main.cxx | 24 ++++++++++++++++++++++-- 13 Source/Modules/main.cxx | 24 ++++++++++++++++++++++--
14 1 file changed, 22 insertions(+), 2 deletions(-) 14 1 file changed, 22 insertions(+), 2 deletions(-)
15 15
16diff --git a/Source/Modules/main.cxx b/Source/Modules/main.cxx
17index 8a44921..8250dee 100644
16--- a/Source/Modules/main.cxx 18--- a/Source/Modules/main.cxx
17+++ b/Source/Modules/main.cxx 19+++ b/Source/Modules/main.cxx
18@@ -25,6 +25,11 @@ 20@@ -25,6 +25,11 @@
@@ -27,7 +29,7 @@ http://sourceforge.net/mailarchive/message.php?msg_id=29179733
27 29
28 // Global variables 30 // Global variables
29 31
30@@ -934,9 +939,9 @@ int SWIG_main(int argc, char *argv[], co 32@@ -886,9 +891,9 @@ int SWIG_main(int argc, char *argv[], const TargetLanguageModule *tlm) {
31 33
32 // Check for SWIG_LIB environment variable 34 // Check for SWIG_LIB environment variable
33 if ((c = getenv("SWIG_LIB")) == (char *) 0) { 35 if ((c = getenv("SWIG_LIB")) == (char *) 0) {
@@ -38,7 +40,7 @@ http://sourceforge.net/mailarchive/message.php?msg_id=29179733
38 if (!(GetModuleFileName(0, buf, MAX_PATH) == 0 || (p = strrchr(buf, '\\')) == 0)) { 40 if (!(GetModuleFileName(0, buf, MAX_PATH) == 0 || (p = strrchr(buf, '\\')) == 0)) {
39 *(p + 1) = '\0'; 41 *(p + 1) = '\0';
40 SwigLib = NewStringf("%sLib", buf); // Native windows installation path 42 SwigLib = NewStringf("%sLib", buf); // Native windows installation path
41@@ -946,7 +951,22 @@ int SWIG_main(int argc, char *argv[], co 43@@ -898,7 +903,22 @@ int SWIG_main(int argc, char *argv[], const TargetLanguageModule *tlm) {
42 if (Len(SWIG_LIB_WIN_UNIX) > 0) 44 if (Len(SWIG_LIB_WIN_UNIX) > 0)
43 SwigLibWinUnix = NewString(SWIG_LIB_WIN_UNIX); // Unix installation path using a drive letter (for msys/mingw) 45 SwigLibWinUnix = NewString(SWIG_LIB_WIN_UNIX); // Unix installation path using a drive letter (for msys/mingw)
44 #else 46 #else
diff --git a/meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch b/meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch
index cfcbd8c73a..9e16caecca 100644
--- a/meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch
+++ b/meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch
@@ -1,4 +1,4 @@
1From ffb785ed8d3cac3c28e014b1238d93e2bc1f0c01 Mon Sep 17 00:00:00 2001 1From 57a15651b46a0f1f84a4dd15d67d104fbfbe3f6e Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen.kooi@linaro.org> 2From: Koen Kooi <koen.kooi@linaro.org>
3Date: Tue, 17 Jun 2014 08:18:17 +0200 3Date: Tue, 17 Jun 2014 08:18:17 +0200
4Subject: [PATCH] configure: use pkg-config for pcre detection 4Subject: [PATCH] configure: use pkg-config for pcre detection
@@ -11,10 +11,10 @@ Upstream-Status: Pending
11 1 file changed, 7 insertions(+), 32 deletions(-) 11 1 file changed, 7 insertions(+), 32 deletions(-)
12 12
13diff --git a/configure.ac b/configure.ac 13diff --git a/configure.ac b/configure.ac
14index f88004a..3a2b47c 100644 14index c060028..a330266 100644
15--- a/configure.ac 15--- a/configure.ac
16+++ b/configure.ac 16+++ b/configure.ac
17@@ -57,39 +57,14 @@ AC_MSG_RESULT([$with_pcre]) 17@@ -49,39 +49,14 @@ AC_MSG_RESULT([$with_pcre])
18 18
19 dnl To make configuring easier, check for a locally built PCRE using the Tools/pcre-build.sh script 19 dnl To make configuring easier, check for a locally built PCRE using the Tools/pcre-build.sh script
20 if test x"${with_pcre}" = xyes ; then 20 if test x"${with_pcre}" = xyes ; then
diff --git a/meta/recipes-devtools/swig/swig/determinism.patch b/meta/recipes-devtools/swig/swig/determinism.patch
index 84c399182a..417f0c4317 100644
--- a/meta/recipes-devtools/swig/swig/determinism.patch
+++ b/meta/recipes-devtools/swig/swig/determinism.patch
@@ -1,13 +1,23 @@
1From 25bf9893ec1f557781eb241508ea1bec959061fe Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Mon, 1 Mar 2021 00:11:10 +0000
4Subject: [PATCH] swig: Fix reproducibility issue
5
1Remove the compiler commandline/platform from the compiled binary as this 6Remove the compiler commandline/platform from the compiled binary as this
2breaks reproducibilty. 7breaks reproducibilty.
3 8
4Upstream-Status: Inappropriate [OE reproducibiity fix upstream unlikely to take] 9Upstream-Status: Inappropriate [OE reproducibiity fix upstream unlikely to take]
5RP 2021/3/1 10RP 2021/3/1
6 11
12---
13 Source/Modules/main.cxx | 1 -
14 1 file changed, 1 deletion(-)
7 15
16diff --git a/Source/Modules/main.cxx b/Source/Modules/main.cxx
17index 8250dee..415761d 100644
8--- a/Source/Modules/main.cxx 18--- a/Source/Modules/main.cxx
9+++ b/Source/Modules/main.cxx 19+++ b/Source/Modules/main.cxx
10@@ -642,7 +642,6 @@ static void getoptions(int argc, char *a 20@@ -629,7 +629,6 @@ static void getoptions(int argc, char *argv[]) {
11 } 21 }
12 } else if (strcmp(argv[i], "-version") == 0) { 22 } else if (strcmp(argv[i], "-version") == 0) {
13 fprintf(stdout, "\nSWIG Version %s\n", Swig_package_version()); 23 fprintf(stdout, "\nSWIG Version %s\n", Swig_package_version());
diff --git a/meta/recipes-devtools/swig/swig_4.1.1.bb b/meta/recipes-devtools/swig/swig_4.2.0.bb
index b9e0175299..2ab4ed006c 100644
--- a/meta/recipes-devtools/swig/swig_4.1.1.bb
+++ b/meta/recipes-devtools/swig/swig_4.2.0.bb
@@ -4,4 +4,4 @@ SRC_URI += "file://0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.pat
4 file://0001-configure-use-pkg-config-for-pcre-detection.patch \ 4 file://0001-configure-use-pkg-config-for-pcre-detection.patch \
5 file://determinism.patch \ 5 file://determinism.patch \
6 " 6 "
7SRC_URI[sha256sum] = "2af08aced8fcd65cdb5cc62426768914bedc735b1c250325203716f78e39ac9b" 7SRC_URI[sha256sum] = "261ca2d7589e260762817b912c075831572b72ff2717942f75b3e51244829c97"