aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/wireshark/files/0001-wireshark-src-improve-reproducibility.patch
blob: 202de62606ce01e9a364a2480f37e84d0390068e (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 d9c4cdad0c48becab491ea4e80e5cd81f7d1dc97 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/ncp2222.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/ncp2222.py b/tools/ncp2222.py
index f14d0c5..05073b9 100755
--- a/tools/ncp2222.py
+++ b/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("""