summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2023-12-31 13:23:20 +0100
committerKhem Raj <raj.khem@gmail.com>2023-12-31 08:27:49 -0800
commit69490517db12049e348fdd5960fdcad9d87eb777 (patch)
treeb1b02c04c8f7c2060297f111e82c98c2a9a6b0f2
parent51e070301e86a4f1bc48c9649e1dead1b1bc1ee2 (diff)
downloadmeta-openembedded-69490517db12049e348fdd5960fdcad9d87eb777.tar.gz
wireshark: update 4.0.10 -> 4.2.0
This resolves python 3.12 issues. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-support/wireshark/files/0001-CMake-Fix-a-try_run-test-when-cross-compiling.patch66
-rw-r--r--meta-networking/recipes-support/wireshark/files/0001-UseLemon.cmake-do-not-use-lemon-data-from-the-host.patch32
-rw-r--r--meta-networking/recipes-support/wireshark/files/0001-wireshark-src-improve-reproducibility.patch16
-rw-r--r--meta-networking/recipes-support/wireshark/files/0002-flex-Remove-line-directives.patch14
-rw-r--r--meta-networking/recipes-support/wireshark/files/0004-lemon-Remove-line-directives.patch87
-rw-r--r--meta-networking/recipes-support/wireshark/wireshark_4.2.0.bb (renamed from meta-networking/recipes-support/wireshark/wireshark_4.0.10.bb)6
6 files changed, 73 insertions, 148 deletions
diff --git a/meta-networking/recipes-support/wireshark/files/0001-CMake-Fix-a-try_run-test-when-cross-compiling.patch b/meta-networking/recipes-support/wireshark/files/0001-CMake-Fix-a-try_run-test-when-cross-compiling.patch
deleted file mode 100644
index 0d51ce1b8f..0000000000
--- a/meta-networking/recipes-support/wireshark/files/0001-CMake-Fix-a-try_run-test-when-cross-compiling.patch
+++ /dev/null
@@ -1,66 +0,0 @@
1From b4f29807225cf3744c2f4f971902fbdd7486fc19 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= <j@v6e.pt>
3Date: Fri, 26 May 2023 13:29:23 +0100
4Subject: [PATCH] CMake: Fix a try_run() test when cross-compiling
5
6Upstream-Status: Backport
7Signed-off-by: Armin Kuster <akuster808@gmail.com>
8
9---
10 ConfigureChecks.cmake | 36 ++++++++++++++++++++----------------
11 1 file changed, 20 insertions(+), 16 deletions(-)
12
13diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
14index dd8268e077..d8bca54115 100644
15--- a/ConfigureChecks.cmake
16+++ b/ConfigureChecks.cmake
17@@ -122,26 +122,30 @@ check_type_size("ssize_t" SSIZE_T)
18 # Check if the libc vsnprintf() conforms to C99. If this fails we may
19 # need to fall-back on GLib I/O.
20 #
21-check_c_source_runs("
22- #include <stdio.h>
23- int main(void)
24- {
25- /* Check that snprintf() and vsnprintf() don't return
26- * -1 if the buffer is too small. C99 says this value
27- * is the length that would be written not including
28- * the nul byte. */
29- char buf[3];
30- return snprintf(buf, sizeof(buf), \"%s\", \"ABCDEF\") > 0 ? 0 : 1;
31- }"
32- HAVE_C99_VSNPRINTF
33-)
34-if (NOT HAVE_C99_VSNPRINTF)
35- message(FATAL_ERROR
36+# If cross-compiling we can't check so just assume this requirement is met.
37+#
38+if(NOT CMAKE_CROSSCOMPILING)
39+ check_c_source_runs("
40+ #include <stdio.h>
41+ int main(void)
42+ {
43+ /* Check that snprintf() and vsnprintf() don't return
44+ * -1 if the buffer is too small. C99 says this value
45+ * is the length that would be written not including
46+ * the nul byte. */
47+ char buf[3];
48+ return snprintf(buf, sizeof(buf), \"%s\", \"ABCDEF\") > 0 ? 0 : 1;
49+ }"
50+ HAVE_C99_VSNPRINTF
51+ )
52+ if (NOT HAVE_C99_VSNPRINTF)
53+ message(FATAL_ERROR
54 "Building Wireshark requires a C99 compliant vsnprintf() and this \
55 target does not meet that requirement. Compiling for ${CMAKE_SYSTEM} \
56 using ${CMAKE_C_COMPILER_ID}. Please report this issue to the Wireshark \
57 developers at wireshark-dev@wireshark.org."
58- )
59+ )
60+ endif()
61 endif()
62
63 #
64--
652.25.1
66
diff --git a/meta-networking/recipes-support/wireshark/files/0001-UseLemon.cmake-do-not-use-lemon-data-from-the-host.patch b/meta-networking/recipes-support/wireshark/files/0001-UseLemon.cmake-do-not-use-lemon-data-from-the-host.patch
new file mode 100644
index 0000000000..1903f38f5d
--- /dev/null
+++ b/meta-networking/recipes-support/wireshark/files/0001-UseLemon.cmake-do-not-use-lemon-data-from-the-host.patch
@@ -0,0 +1,32 @@
1From 802d3cafa888b36aa72007d48232a010dbb0231d Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Wed, 27 Dec 2023 16:57:28 +0100
4Subject: [PATCH] UseLemon.cmake: do not use lemon data from the host
5
6We use native lemon, and not the host one, so
7the data should be taken from the source tree as well.
8
9Upstream-Status: Inappropriate [cross-specific]
10Signed-off-by: Alexander Kanavin <alex@linutronix.de>
11---
12 cmake/modules/UseLemon.cmake | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
14
15diff --git a/cmake/modules/UseLemon.cmake b/cmake/modules/UseLemon.cmake
16index fa4034e..83a7ca3 100644
17--- a/cmake/modules/UseLemon.cmake
18+++ b/cmake/modules/UseLemon.cmake
19@@ -13,11 +13,12 @@ if(LEMON_EXECUTABLE)
20 ${_out}.out
21 COMMAND ${LEMON_EXECUTABLE}
22 -l
23- -T/usr/share/lemon/lempar.c
24+ -T${CMAKE_SOURCE_DIR}/tools/lemon/lempar.c
25 -d.
26 ${_in}
27 DEPENDS
28 ${_in}
29+ ${CMAKE_SOURCE_DIR}/tools/lemon/lempar.c
30 )
31 endmacro()
32 add_custom_target(lemon)
diff --git a/meta-networking/recipes-support/wireshark/files/0001-wireshark-src-improve-reproducibility.patch b/meta-networking/recipes-support/wireshark/files/0001-wireshark-src-improve-reproducibility.patch
index 6ad8a62c28..202de62606 100644
--- a/meta-networking/recipes-support/wireshark/files/0001-wireshark-src-improve-reproducibility.patch
+++ b/meta-networking/recipes-support/wireshark/files/0001-wireshark-src-improve-reproducibility.patch
@@ -1,4 +1,4 @@
1From 0a9ab056ce7582033a21d6bc541ece520bf2b0b6 Mon Sep 17 00:00:00 2001 1From d9c4cdad0c48becab491ea4e80e5cd81f7d1dc97 Mon Sep 17 00:00:00 2001
2From: Oleksiy Obitotskyy <oobitots@cisco.com> 2From: Oleksiy Obitotskyy <oobitots@cisco.com>
3Date: Thu, 26 Nov 2020 05:38:31 -0800 3Date: Thu, 26 Nov 2020 05:38:31 -0800
4Subject: [PATCH] wireshark-src: improve reproducibility 4Subject: [PATCH] wireshark-src: improve reproducibility
@@ -8,15 +8,15 @@ comments.
8 8
9Upstream-Status: Pending 9Upstream-Status: Pending
10Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com> 10Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
11
11--- 12---
12 tools/make-plugin-reg.py | 2 +- 13 tools/ncp2222.py | 2 +-
13 tools/ncp2222.py | 2 +- 14 1 file changed, 1 insertion(+), 1 deletion(-)
14 2 files changed, 2 insertions(+), 2 deletions(-)
15 15
16Index: wireshark-4.0.6/tools/ncp2222.py 16diff --git a/tools/ncp2222.py b/tools/ncp2222.py
17=================================================================== 17index f14d0c5..05073b9 100755
18--- wireshark-4.0.6.orig/tools/ncp2222.py 18--- a/tools/ncp2222.py
19+++ wireshark-4.0.6/tools/ncp2222.py 19+++ b/tools/ncp2222.py
20@@ -5891,7 +5891,7 @@ def produce_code(): 20@@ -5891,7 +5891,7 @@ def produce_code():
21 21
22 print("/*") 22 print("/*")
diff --git a/meta-networking/recipes-support/wireshark/files/0002-flex-Remove-line-directives.patch b/meta-networking/recipes-support/wireshark/files/0002-flex-Remove-line-directives.patch
index 069b5793d9..0e6249c939 100644
--- a/meta-networking/recipes-support/wireshark/files/0002-flex-Remove-line-directives.patch
+++ b/meta-networking/recipes-support/wireshark/files/0002-flex-Remove-line-directives.patch
@@ -1,4 +1,4 @@
1From 3e571e24c730f747d18ed02ba7451e9e00480fc7 Mon Sep 17 00:00:00 2001 1From e4e88c2f55286cf24af230b265d0e059363baa6c Mon Sep 17 00:00:00 2001
2From: Oleksiy Obitotskyy <oobitots@cisco.com> 2From: Oleksiy Obitotskyy <oobitots@cisco.com>
3Date: Thu, 26 Nov 2020 12:00:43 -0800 3Date: Thu, 26 Nov 2020 12:00:43 -0800
4Subject: [PATCH] flex: Remove #line directives 4Subject: [PATCH] flex: Remove #line directives
@@ -8,12 +8,13 @@ generate #line directives with absolute file patch.
8 8
9Upstream-Status: Pending 9Upstream-Status: Pending
10Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com> 10Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
11
11--- 12---
12 cmake/modules/FindLEX.cmake | 18 +++++++++++++----- 13 cmake/modules/FindLEX.cmake | 18 +++++++++++++-----
13 1 file changed, 13 insertions(+), 5 deletions(-) 14 1 file changed, 13 insertions(+), 5 deletions(-)
14 15
15diff --git a/cmake/modules/FindLEX.cmake b/cmake/modules/FindLEX.cmake 16diff --git a/cmake/modules/FindLEX.cmake b/cmake/modules/FindLEX.cmake
16index 0008bc4..ec68f84 100644 17index 20caa09..174f452 100644
17--- a/cmake/modules/FindLEX.cmake 18--- a/cmake/modules/FindLEX.cmake
18+++ b/cmake/modules/FindLEX.cmake 19+++ b/cmake/modules/FindLEX.cmake
19@@ -32,11 +32,19 @@ MACRO(ADD_LEX_FILES _source _generated) 20@@ -32,11 +32,19 @@ MACRO(ADD_LEX_FILES _source _generated)
@@ -22,25 +23,22 @@ index 0008bc4..ec68f84 100644
22 23
23- ADD_CUSTOM_COMMAND( 24- ADD_CUSTOM_COMMAND(
24- OUTPUT ${_outc} ${_outh} 25- OUTPUT ${_outc} ${_outh}
25- COMMAND ${LEX_EXECUTABLE} -o${_outc} --header-file=${_outh} ${_in} 26- COMMAND ${LEX_EXECUTABLE} $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:--debug> -o${_outc} --header-file=${_outh} ${_in}
26- DEPENDS ${_in} 27- DEPENDS ${_in}
27- ) 28- )
28+ IF (DEFINED ENV{SOURCE_DATE_EPOCH}) 29+ IF (DEFINED ENV{SOURCE_DATE_EPOCH})
29+ ADD_CUSTOM_COMMAND( 30+ ADD_CUSTOM_COMMAND(
30+ OUTPUT ${_outc} ${_outh} 31+ OUTPUT ${_outc} ${_outh}
31+ COMMAND ${LEX_EXECUTABLE} --noline -o${_outc} --header-file=${_outh} ${_in} 32+ COMMAND ${LEX_EXECUTABLE} $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:--debug> --noline -o${_outc} --header-file=${_outh} ${_in}
32+ DEPENDS ${_in} 33+ DEPENDS ${_in}
33+ ) 34+ )
34+ ELSE () 35+ ELSE ()
35+ ADD_CUSTOM_COMMAND( 36+ ADD_CUSTOM_COMMAND(
36+ OUTPUT ${_outc} ${_outh} 37+ OUTPUT ${_outc} ${_outh}
37+ COMMAND ${LEX_EXECUTABLE} -o${_outc} --header-file=${_outh} ${_in} 38+ COMMAND ${LEX_EXECUTABLE} $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:--debug> -o${_outc} --header-file=${_outh} ${_in}
38+ DEPENDS ${_in} 39+ DEPENDS ${_in}
39+ ) 40+ )
40+ ENDIF () 41+ ENDIF ()
41 LIST(APPEND ${_source} ${_in}) 42 LIST(APPEND ${_source} ${_in})
42 LIST(APPEND ${_generated} ${_outc}) 43 LIST(APPEND ${_generated} ${_outc})
43 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) 44 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
44--
452.26.2.Cisco
46
diff --git a/meta-networking/recipes-support/wireshark/files/0004-lemon-Remove-line-directives.patch b/meta-networking/recipes-support/wireshark/files/0004-lemon-Remove-line-directives.patch
index 134633f668..1a6fe8d39e 100644
--- a/meta-networking/recipes-support/wireshark/files/0004-lemon-Remove-line-directives.patch
+++ b/meta-networking/recipes-support/wireshark/files/0004-lemon-Remove-line-directives.patch
@@ -1,4 +1,4 @@
1From 17f05a8d02c589e4867906f70381e63e46a67870 Mon Sep 17 00:00:00 2001 1From 94b951c0cccf67b66749cc87c473e63fa5207e83 Mon Sep 17 00:00:00 2001
2From: Oleksiy Obitotskyy <oobitots@cisco.com> 2From: Oleksiy Obitotskyy <oobitots@cisco.com>
3Date: Wed, 27 Jan 2021 06:47:13 -0800 3Date: Wed, 27 Jan 2021 06:47:13 -0800
4Subject: [PATCH] lemon: Remove #line directives 4Subject: [PATCH] lemon: Remove #line directives
@@ -8,67 +8,28 @@ directives with extra option '-l'.
8 8
9Upstream-Status: Pending 9Upstream-Status: Pending
10Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com> 10Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
11
11--- 12---
12 cmake/modules/UseLemon.cmake | 49 +++++++++++++++++++++++++----------- 13 cmake/modules/UseLemon.cmake | 2 ++
13 1 file changed, 34 insertions(+), 15 deletions(-) 14 1 file changed, 2 insertions(+)
14 15
15Index: wireshark-3.4.11/cmake/modules/UseLemon.cmake 16diff --git a/cmake/modules/UseLemon.cmake b/cmake/modules/UseLemon.cmake
16=================================================================== 17index e419de1..fa4034e 100644
17--- wireshark-3.4.11.orig/cmake/modules/UseLemon.cmake 18--- a/cmake/modules/UseLemon.cmake
18+++ wireshark-3.4.11/cmake/modules/UseLemon.cmake 19+++ b/cmake/modules/UseLemon.cmake
19@@ -7,21 +7,40 @@ MACRO(ADD_LEMON_FILES _source _generated 20@@ -12,6 +12,7 @@ if(LEMON_EXECUTABLE)
20 21 ${_out}.h
21 SET(_out ${CMAKE_CURRENT_BINARY_DIR}/${_basename}) 22 ${_out}.out
22 23 COMMAND ${LEMON_EXECUTABLE}
23- ADD_CUSTOM_COMMAND( 24+ -l
24- OUTPUT 25 -T/usr/share/lemon/lempar.c
25- ${_out}.c 26 -d.
26- # These files are generated as side-effect 27 ${_in}
27- ${_out}.h 28@@ -30,6 +31,7 @@ else()
28- ${_out}.out 29 ${_out}.h
29- COMMAND $<TARGET_FILE:lemon> 30 ${_out}.out
30- -T${_lemonpardir}/lempar.c 31 COMMAND $<TARGET_FILE:lemon>
31- -d. 32+ -l
32- ${_in} 33 -T${CMAKE_SOURCE_DIR}/tools/lemon/lempar.c
33- DEPENDS 34 -d.
34- ${_in} 35 ${_in}
35- lemon
36- ${_lemonpardir}/lempar.c
37- )
38+ IF (DEFINED ENV{SOURCE_DATE_EPOCH})
39+ ADD_CUSTOM_COMMAND(
40+ OUTPUT
41+ ${_out}.c
42+ # These files are generated as side-effect
43+ ${_out}.h
44+ ${_out}.out
45+ COMMAND lemon
46+ -l
47+ -T${_lemonpardir}/lempar.c
48+ -d.
49+ ${_in}
50+ DEPENDS
51+ ${_in}
52+ lemon
53+ ${_lemonpardir}/lempar.c
54+ )
55+ ELSE ()
56+ ADD_CUSTOM_COMMAND(
57+ OUTPUT
58+ ${_out}.c
59+ # These files are generated as side-effect
60+ ${_out}.h
61+ ${_out}.out
62+ COMMAND lemon
63+ -T${_lemonpardir}/lempar.c
64+ -d.
65+ ${_in}
66+ DEPENDS
67+ ${_in}
68+ lemon
69+ ${_lemonpardir}/lempar.c
70+ )
71+ ENDIF ()
72
73 LIST(APPEND ${_source} ${_in})
74 LIST(APPEND ${_generated} ${_out}.c)
diff --git a/meta-networking/recipes-support/wireshark/wireshark_4.0.10.bb b/meta-networking/recipes-support/wireshark/wireshark_4.2.0.bb
index 008aa8cb12..4a47680922 100644
--- a/meta-networking/recipes-support/wireshark/wireshark_4.0.10.bb
+++ b/meta-networking/recipes-support/wireshark/wireshark_4.2.0.bb
@@ -4,20 +4,20 @@ SECTION = "net"
4LICENSE = "GPL-2.0-only" 4LICENSE = "GPL-2.0-only"
5LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 5LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
6 6
7DEPENDS = "pcre2 expat glib-2.0 glib-2.0-native libgcrypt libgpg-error libxml2 bison-native c-ares" 7DEPENDS = "pcre2 expat glib-2.0 glib-2.0-native libgcrypt libgpg-error libxml2 bison-native c-ares speexdsp"
8 8
9DEPENDS:append:class-target = " wireshark-native chrpath-replacement-native " 9DEPENDS:append:class-target = " wireshark-native chrpath-replacement-native "
10 10
11SRC_URI = "https://1.eu.dl.wireshark.org/src/wireshark-${PV}.tar.xz \ 11SRC_URI = "https://1.eu.dl.wireshark.org/src/wireshark-${PV}.tar.xz \
12 file://0001-CMake-Fix-a-try_run-test-when-cross-compiling.patch \
13 file://0001-wireshark-src-improve-reproducibility.patch \ 12 file://0001-wireshark-src-improve-reproducibility.patch \
14 file://0002-flex-Remove-line-directives.patch \ 13 file://0002-flex-Remove-line-directives.patch \
15 file://0004-lemon-Remove-line-directives.patch \ 14 file://0004-lemon-Remove-line-directives.patch \
15 file://0001-UseLemon.cmake-do-not-use-lemon-data-from-the-host.patch \
16 " 16 "
17 17
18UPSTREAM_CHECK_URI = "https://1.as.dl.wireshark.org/src" 18UPSTREAM_CHECK_URI = "https://1.as.dl.wireshark.org/src"
19 19
20SRC_URI[sha256sum] = "b2e3ff03fa2be9058a9ffbedd12b0a670433bd16c8cc6c432ab48dabc2df1898" 20SRC_URI[sha256sum] = "0e428492f4c3625d61a7ccff008dc0e429d16ab8caccad4403157ea92b48a75b"
21 21
22PE = "1" 22PE = "1"
23 23