summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/wireshark/files/0001-wireshark-src-improve-reproducibility.patch
diff options
context:
space:
mode:
authorOleksiy Obitotskyy <oobitots@cisco.com>2021-02-17 06:41:21 -0800
committerKhem Raj <raj.khem@gmail.com>2021-02-17 09:58:35 -0800
commitac4c2dc26d935d89fa7de498ddbb1f8dee7b3718 (patch)
tree814d1827bab77f2b54d180b519b1390ce1050781 /meta-networking/recipes-support/wireshark/files/0001-wireshark-src-improve-reproducibility.patch
parent4f0166d871caf78e15c79f372abe21d9096e6edb (diff)
downloadmeta-openembedded-ac4c2dc26d935d89fa7de498ddbb1f8dee7b3718.tar.gz
wireshark-src: improve reproducibility
What was done: - add --noline option to flex, --no-line to bison and -l to lemon generators to prevent adding #line directives with absolute path. - eliminate absolute source path in python code generator and use baseline instead. Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support/wireshark/files/0001-wireshark-src-improve-reproducibility.patch')
-rw-r--r--meta-networking/recipes-support/wireshark/files/0001-wireshark-src-improve-reproducibility.patch44
1 files changed, 44 insertions, 0 deletions
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
new file mode 100644
index 0000000000..0b83ca4ae4
--- /dev/null
+++ b/meta-networking/recipes-support/wireshark/files/0001-wireshark-src-improve-reproducibility.patch
@@ -0,0 +1,44 @@
1From 0a9ab056ce7582033a21d6bc541ece520bf2b0b6 Mon Sep 17 00:00:00 2001
2From: Oleksiy Obitotskyy <oobitots@cisco.com>
3Date: Thu, 26 Nov 2020 05:38:31 -0800
4Subject: [PATCH] wireshark-src: improve reproducibility
5
6Cut absolute path for filename in generated code
7comments.
8
9Upstream-Status: Pending
10Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
11---
12 tools/make-plugin-reg.py | 2 +-
13 tools/ncp2222.py | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/tools/make-plugin-reg.py b/tools/make-plugin-reg.py
17index 66b4656..c52b3fc 100755
18--- a/tools/make-plugin-reg.py
19+++ b/tools/make-plugin-reg.py
20@@ -28,7 +28,7 @@ preamble = """\
21 *
22 * Generated automatically from %s.
23 */
24-""" % (sys.argv[0])
25+""" % (os.path.basename(sys.argv[0]))
26
27 # Create the proper list of filenames
28 filenames = []
29diff --git a/tools/ncp2222.py b/tools/ncp2222.py
30index 1dea4ec..dc376e3 100755
31--- a/tools/ncp2222.py
32+++ b/tools/ncp2222.py
33@@ -5858,7 +5858,7 @@ def produce_code():
34
35 print("/*")
36 print(" * Do not modify this file. Changes will be overwritten.")
37- print(" * Generated automatically from %s" % (sys.argv[0]))
38+ print(" * Generated automatically from %s" % (os.path.basename(sys.argv[0])))
39 print(" */\n")
40
41 print("""
42--
432.26.2.Cisco
44