summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/wireshark/files/0004-lemon-Remove-line-directives.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/wireshark/files/0004-lemon-Remove-line-directives.patch')
-rw-r--r--meta-networking/recipes-support/wireshark/files/0004-lemon-Remove-line-directives.patch77
1 files changed, 77 insertions, 0 deletions
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
new file mode 100644
index 0000000000..c1a528f90d
--- /dev/null
+++ b/meta-networking/recipes-support/wireshark/files/0004-lemon-Remove-line-directives.patch
@@ -0,0 +1,77 @@
1From 17f05a8d02c589e4867906f70381e63e46a67870 Mon Sep 17 00:00:00 2001
2From: Oleksiy Obitotskyy <oobitots@cisco.com>
3Date: Wed, 27 Jan 2021 06:47:13 -0800
4Subject: [PATCH] lemon: Remove #line directives
5
6In case of reproducible build remove #line
7directives with extra option '-l'.
8
9Upstream-Status: Pending
10Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
11---
12 cmake/modules/UseLemon.cmake | 49 +++++++++++++++++++++++++-----------
13 1 file changed, 34 insertions(+), 15 deletions(-)
14
15diff --git a/cmake/modules/UseLemon.cmake b/cmake/modules/UseLemon.cmake
16index 849ffc1..ca38ab7 100644
17--- a/cmake/modules/UseLemon.cmake
18+++ b/cmake/modules/UseLemon.cmake
19@@ -7,21 +7,40 @@ MACRO(ADD_LEMON_FILES _source _generated)
20
21 SET(_out ${CMAKE_CURRENT_BINARY_DIR}/${_basename})
22
23- ADD_CUSTOM_COMMAND(
24- OUTPUT
25- ${_out}.c
26- # These files are generated as side-effect
27- ${_out}.h
28- ${_out}.out
29- COMMAND lemon
30- -T${_lemonpardir}/lempar.c
31- -d.
32- ${_in}
33- DEPENDS
34- ${_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)
75--
762.26.2.Cisco
77