diff options
author | Oleksiy Obitotskyy <oobitots@cisco.com> | 2021-02-17 06:41:21 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-02-17 09:58:35 -0800 |
commit | ac4c2dc26d935d89fa7de498ddbb1f8dee7b3718 (patch) | |
tree | 814d1827bab77f2b54d180b519b1390ce1050781 /meta-networking/recipes-support/wireshark/files/0003-bison-Remove-line-directives.patch | |
parent | 4f0166d871caf78e15c79f372abe21d9096e6edb (diff) | |
download | meta-openembedded-contrib-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/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 @@ +From 42abf1d299fed8e00a189f6f9c55fb344e5bb775 Mon Sep 17 00:00:00 2001 +From: Oleksiy Obitotskyy <oobitots@cisco.com> +Date: Wed, 27 Jan 2021 04:01:34 -0800 +Subject: [PATCH] bison: Remove #line directives + +Append --no-lines option to bison to not +generate #line directives with absolute file path. + +Upstream-Status: Pending +Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com> +--- + cmake/modules/FindYACC.cmake | 31 ++++++++++++++++++++++--------- + 1 file changed, 22 insertions(+), 9 deletions(-) + +diff --git a/cmake/modules/FindYACC.cmake b/cmake/modules/FindYACC.cmake +index c96f87b..54a73cb 100644 +--- a/cmake/modules/FindYACC.cmake ++++ b/cmake/modules/FindYACC.cmake +@@ -29,15 +29,28 @@ MACRO(ADD_YACC_FILES _source _generated) + + SET(_out ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.c) + +- ADD_CUSTOM_COMMAND( +- OUTPUT ${_out} +- COMMAND ${YACC_EXECUTABLE} +- -d +- -p ${_basename} +- -o${_out} +- ${_in} +- DEPENDS ${_in} +- ) ++ IF (DEFINED ENV{SOURCE_DATE_EPOCH}) ++ ADD_CUSTOM_COMMAND( ++ OUTPUT ${_out} ++ COMMAND ${YACC_EXECUTABLE} ++ --no-lines ++ -d ++ -p ${_basename} ++ -o${_out} ++ ${_in} ++ DEPENDS ${_in} ++ ) ++ ELSE () ++ ADD_CUSTOM_COMMAND( ++ OUTPUT ${_out} ++ COMMAND ${YACC_EXECUTABLE} ++ -d ++ -p ${_basename} ++ -o${_out} ++ ${_in} ++ DEPENDS ${_in} ++ ) ++ ENDIF () + LIST(APPEND ${_source} ${_in}) + LIST(APPEND ${_generated} ${_out}) + ENDFOREACH (_current_FILE) +-- +2.26.2.Cisco + |