diff options
Diffstat (limited to 'meta-networking/recipes-support/wireshark/files/0003-bison-Remove-line-directives.patch')
-rw-r--r-- | meta-networking/recipes-support/wireshark/files/0003-bison-Remove-line-directives.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/wireshark/files/0003-bison-Remove-line-directives.patch b/meta-networking/recipes-support/wireshark/files/0003-bison-Remove-line-directives.patch new file mode 100644 index 0000000000..824761a3dc --- /dev/null +++ b/meta-networking/recipes-support/wireshark/files/0003-bison-Remove-line-directives.patch | |||
@@ -0,0 +1,59 @@ | |||
1 | From 42abf1d299fed8e00a189f6f9c55fb344e5bb775 Mon Sep 17 00:00:00 2001 | ||
2 | From: Oleksiy Obitotskyy <oobitots@cisco.com> | ||
3 | Date: Wed, 27 Jan 2021 04:01:34 -0800 | ||
4 | Subject: [PATCH] bison: Remove #line directives | ||
5 | |||
6 | Append --no-lines option to bison to not | ||
7 | generate #line directives with absolute file path. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com> | ||
11 | --- | ||
12 | cmake/modules/FindYACC.cmake | 31 ++++++++++++++++++++++--------- | ||
13 | 1 file changed, 22 insertions(+), 9 deletions(-) | ||
14 | |||
15 | diff --git a/cmake/modules/FindYACC.cmake b/cmake/modules/FindYACC.cmake | ||
16 | index c96f87b..54a73cb 100644 | ||
17 | --- a/cmake/modules/FindYACC.cmake | ||
18 | +++ b/cmake/modules/FindYACC.cmake | ||
19 | @@ -29,15 +29,28 @@ MACRO(ADD_YACC_FILES _source _generated) | ||
20 | |||
21 | SET(_out ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.c) | ||
22 | |||
23 | - ADD_CUSTOM_COMMAND( | ||
24 | - OUTPUT ${_out} | ||
25 | - COMMAND ${YACC_EXECUTABLE} | ||
26 | - -d | ||
27 | - -p ${_basename} | ||
28 | - -o${_out} | ||
29 | - ${_in} | ||
30 | - DEPENDS ${_in} | ||
31 | - ) | ||
32 | + IF (DEFINED ENV{SOURCE_DATE_EPOCH}) | ||
33 | + ADD_CUSTOM_COMMAND( | ||
34 | + OUTPUT ${_out} | ||
35 | + COMMAND ${YACC_EXECUTABLE} | ||
36 | + --no-lines | ||
37 | + -d | ||
38 | + -p ${_basename} | ||
39 | + -o${_out} | ||
40 | + ${_in} | ||
41 | + DEPENDS ${_in} | ||
42 | + ) | ||
43 | + ELSE () | ||
44 | + ADD_CUSTOM_COMMAND( | ||
45 | + OUTPUT ${_out} | ||
46 | + COMMAND ${YACC_EXECUTABLE} | ||
47 | + -d | ||
48 | + -p ${_basename} | ||
49 | + -o${_out} | ||
50 | + ${_in} | ||
51 | + DEPENDS ${_in} | ||
52 | + ) | ||
53 | + ENDIF () | ||
54 | LIST(APPEND ${_source} ${_in}) | ||
55 | LIST(APPEND ${_generated} ${_out}) | ||
56 | ENDFOREACH (_current_FILE) | ||
57 | -- | ||
58 | 2.26.2.Cisco | ||
59 | |||