aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/wireshark/files/0001-wireshark-src-improve-reproducibility.patch
blob: 6ad8a62c28fa6e21a49781affe5061d20e376056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 0a9ab056ce7582033a21d6bc541ece520bf2b0b6 Mon Sep 17 00:00:00 2001
From: Oleksiy Obitotskyy <oobitots@cisco.com>
Date: Thu, 26 Nov 2020 05:38:31 -0800
Subject: [PATCH] wireshark-src: improve reproducibility

Cut absolute path for filename in generated code
comments.

Upstream-Status: Pending
Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
---
 tools/make-plugin-reg.py | 2 +-
 tools/ncp2222.py         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: wireshark-4.0.6/tools/ncp2222.py
===================================================================
--- wireshark-4.0.6.orig/tools/ncp2222.py
+++ wireshark-4.0.6/tools/ncp2222.py
@@ -5891,7 +5891,7 @@ def produce_code():
 
     print("/*")
     print(" * Do not modify this file. Changes will be overwritten.")
-    print(" * Generated automatically from %s" % (sys.argv[0]))
+    print(" * Generated automatically from %s" % (os.path.basename(sys.argv[0])))
     print(" */\n")
 
     print("""